Skip to content

Commit

Permalink
rubocop & rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek committed Jan 22, 2024
1 parent acefa29 commit 0c98b42
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
fail-fast: true
matrix:
include:
- { ruby: 2.7, c-o-e: false }
- { ruby: '3.0', c-o-e: false }
- { ruby: 3.1, c-o-e: false }
- { ruby: 3.2, c-o-e: false }
Expand Down
42 changes: 42 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,48 @@ Style/RedundantStringEscape: # new in 1.37
Enabled: true
Style/SelectByRegexp: # new in 1.22
Enabled: true
Lint/DuplicateMatchPattern: # new in 1.50
Enabled: true
Lint/ItWithoutArgumentsInBlock: # new in 1.59
Enabled: true
Lint/LiteralAssignmentInCondition: # new in 1.58
Enabled: true
Lint/MixedCaseRange: # new in 1.53
Enabled: true
Lint/RedundantRegexpQuantifiers: # new in 1.53
Enabled: true
Metrics/CollectionLiteralLength: # new in 1.47
Enabled: true
Style/DataInheritance: # new in 1.49
Enabled: true
Style/DirEmpty: # new in 1.48
Enabled: true
Style/ExactRegexpMatch: # new in 1.51
Enabled: true
Style/FileEmpty: # new in 1.48
Enabled: true
Style/RedundantArrayConstructor: # new in 1.52
Enabled: true
Style/RedundantCurrentDirectoryInPath: # new in 1.53
Enabled: true
Style/RedundantFilterChain: # new in 1.52
Enabled: true
Style/RedundantLineContinuation: # new in 1.49
Enabled: true
Style/RedundantRegexpArgument: # new in 1.53
Enabled: true
Style/RedundantRegexpConstructor: # new in 1.52
Enabled: true
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
Enabled: true
Style/SingleLineDoEndBlock: # new in 1.57
Enabled: true
Style/SuperWithArgsParentheses: # new in 1.58
Enabled: true
Style/YAMLFileRead: # new in 1.53
Enabled: true
Performance/MapMethodChain: # new in 1.19
Enabled: true

Performance/AncestorsInclude:
Enabled: true
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
## 1.2.0 (22 January 2024)
- update TerserJS to [5.27.0]
- remove sourcemap patches
- `pure_new` option added
- EOL rubies are no longer tested
- update rubocop

## 1.1.20 (27 November 2023)
- update TerserJS to [5.24.0]
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ source "https://rubygems.org"

gemspec

unless RUBY_VERSION < '2.6'
unless RUBY_VERSION < '2.7'
group :development do
gem 'rubocop', '~> 1.46.0'
gem 'rubocop-performance', '~> 1.16.0', :require => false
gem 'rubocop', '~> 1.60.1'
gem 'rubocop-performance', '~> 1.20.2', :require => false
end
end

0 comments on commit 0c98b42

Please sign in to comment.