Skip to content

Commit

Permalink
Updates rubocop and standard-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
camilopayan committed Dec 10, 2024
1 parent cafe4f8 commit cd9325c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PATH
standard (1.42.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.68.0)
rubocop (~> 1.69.1)
standard-custom (~> 1.0.0)
standard-performance (~> 1.5)
standard-performance (~> 1.6)

GEM
remote: https://rubygems.org/
Expand All @@ -33,20 +33,20 @@ GEM
rake (13.0.6)
rbs (3.5.2)
logger
regexp_parser (2.8.2)
rubocop (1.68.0)
regexp_parser (2.9.3)
rubocop (1.69.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.36.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.36.2)
parser (>= 3.3.1.0)
rubocop-performance (1.22.1)
rubocop-performance (1.23.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-lsp (0.17.7)
Expand All @@ -65,9 +65,9 @@ GEM
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.5.0)
standard-performance (1.6.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.22.0)
rubocop-performance (~> 1.23.0)
unicode-display_width (2.5.0)

PLATFORMS
Expand Down
18 changes: 18 additions & 0 deletions config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ Lint/FormatParameterMismatch:
Lint/HashCompareByIdentity:
Enabled: false

Lint/HashNewWithKeywordArgumentsAsDefault:
Enabled: true

Lint/HeredocMethodCallPosition:
Enabled: false

Expand Down Expand Up @@ -653,6 +656,9 @@ Lint/NumberConversion:
Lint/NumberedParameterAssignment:
Enabled: true

Lint/NumericOperationWithConstantResult:
Enabled: false

Lint/OrAssignmentToConstant:
Enabled: true

Expand Down Expand Up @@ -837,6 +843,9 @@ Lint/UselessAccessModifier:
Lint/UselessAssignment:
Enabled: true

Lint/UselessDefined:
Enabled: true

Lint/UselessElseWithoutRescue:
Enabled: false

Expand Down Expand Up @@ -1119,6 +1128,9 @@ Style/DateTime:
Style/DefWithParentheses:
Enabled: true

Style/DigChain:
Enabled: true

Style/Dir:
Enabled: true

Expand Down Expand Up @@ -1208,9 +1220,15 @@ Style/FetchEnvVar:
Style/FileEmpty:
Enabled: false

Style/FileNull:
Enabled: true

Style/FileRead:
Enabled: true

Style/FileTouch:
Enabled: false

Style/FileWrite:
Enabled: true

Expand Down
3 changes: 3 additions & 0 deletions config/ruby-1.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ Style/HashConversion:
# Percent delimiters are not supported until Ruby 2.0
Style/PercentLiteralDelimiters:
Enabled: false

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

spec.add_dependency "rubocop", "~> 1.68.0"
spec.add_dependency "rubocop", "~> 1.69.1"

spec.add_dependency "lint_roller", "~> 1.0"
spec.add_dependency "standard-custom", "~> 1.0.0"
spec.add_dependency "standard-performance", "~> 1.5"
spec.add_dependency "standard-performance", "~> 1.6"

# not semver: first three are lsp protocol version, last is patch
spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
Expand Down

0 comments on commit cd9325c

Please sign in to comment.