Skip to content

Commit

Permalink
Merge pull request #566 from standardrb/updates-06-02-2023
Browse files Browse the repository at this point in the history
Updates standard-performance to 1.1.0 and rubocop to 1.52.0
  • Loading branch information
camilopayan authored Jun 2, 2023
2 parents 537eed8 + 5cdbc5f commit 68bfb48
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2, head]
ruby-version: [2.7, '3.0', 3.1, 3.2, head]

runs-on: ${{ matrix.os }}

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

* Updates standard-performance to [1.1.0](https://github.com/standardrb/standard-performacne/releases/tag/v1.1.0)
* Updates rubocop to [1.52.0](https://github.com/rubocop/rubocop/releases/tag/v1.52.0)
* Enables Style/ExactRegexpMatch, Style/RedundantArrayConstructor, Style/RedundantFilterChain, Style/RedundantRegexpConstructor

## 1.28.5

* Make LSP behave more nicely with nvim-lspconfig [#564](https://github.com/standardrb/standard/pull/564)
Expand Down
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PATH
standard (1.28.5)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50.2)
rubocop (~> 1.52.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.0.1)
standard-performance (~> 1.1.0)

GEM
remote: https://rubygems.org/
Expand All @@ -29,7 +29,7 @@ GEM
rake (13.0.6)
regexp_parser (2.8.0)
rexml (3.2.5)
rubocop (1.50.2)
rubocop (1.52.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.2.0.0)
Expand All @@ -39,9 +39,9 @@ GEM
rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.1)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-performance (1.16.0)
rubocop-performance (1.18.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.13.0)
Expand All @@ -53,9 +53,9 @@ GEM
simplecov_json_formatter (0.1.4)
standard-custom (1.0.0)
lint_roller (~> 1.0)
standard-performance (1.0.1)
standard-performance (1.1.0)
lint_roller (~> 1.0)
rubocop-performance (~> 1.16.0)
rubocop-performance (~> 1.18.0)
unicode-display_width (2.4.2)

PLATFORMS
Expand Down
11 changes: 11 additions & 0 deletions config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,8 @@ Style/EvalWithLocation:
Style/EvenOdd:
Enabled: false

Style/ExactRegexpMatch:
Enabled: true
Style/ExpandPathArguments:
Enabled: false

Expand Down Expand Up @@ -1498,6 +1500,9 @@ Style/RandomWithOffset:
Style/RedundantArgument:
Enabled: false

Style/RedundantArrayConstructor:
Enabled: true

Style/RedundantAssignment:
Enabled: true

Expand Down Expand Up @@ -1531,6 +1536,9 @@ Style/RedundantFetchBlock:
Style/RedundantFileExtensionInRequire:
Enabled: true

Style/RedundantFilterChain:
Enabled: false

Style/RedundantFreeze:
Enabled: true

Expand All @@ -1555,6 +1563,9 @@ Style/RedundantPercentQ:
Style/RedundantRegexpCharacterClass:
Enabled: true

Style/RedundantRegexpConstructor:
Enabled: true

Style/RedundantRegexpEscape:
Enabled: true

Expand Down
4 changes: 2 additions & 2 deletions standard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.metadata["rubygems_mfa_required"] = "true"

spec.add_dependency "rubocop", "~> 1.50.2"
spec.add_dependency "rubocop", "~> 1.52.0"

spec.add_dependency "lint_roller", "~> 1.0"
spec.add_dependency "standard-custom", "~> 1.0.0"
spec.add_dependency "standard-performance", "~> 1.0.1"
spec.add_dependency "standard-performance", "~> 1.1.0"

# not semver: first three are lsp protocol version, last is patch
spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
Expand Down
2 changes: 2 additions & 0 deletions test/standardrb_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def test_project_a_failure_output
lib/foo/do_lint.rb:1:1: Lint/UselessAssignment: Useless assignment to variable - `useless_assignment`.
lib/foo/meh/do_lint.rb:1:1: Lint/UselessAssignment: Useless assignment to variable - `useless_assignment`.
lib/do_lint.rb:1:1: Lint/UselessAssignment: Useless assignment to variable - `useless_assignment`.
standard: Run `standardrb --fix` to fix up to 3 problems.
MSG
end

Expand All @@ -29,6 +30,7 @@ def test_project_with_cwd_in_nested_path
#{standard_greeting}
do_lint.rb:1:1: Lint/UselessAssignment: Useless assignment to variable - `useless_assignment`.
meh/do_lint.rb:1:1: Lint/UselessAssignment: Useless assignment to variable - `useless_assignment`.
standard: Run `standardrb --fix` to fix up to 2 problems.
MSG
end

Expand Down

0 comments on commit 68bfb48

Please sign in to comment.