Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ PATH
standard (1.50.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.75.5)
rubocop (~> 1.80.2)
standard-custom (~> 1.0.0)
standard-performance (~> 1.8)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
ast (2.4.3)
docile (1.4.0)
json (2.6.3)
json (2.13.2)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
logger (1.7.0)
Expand All @@ -23,29 +23,29 @@ GEM
method_source (1.0.0)
minitest (5.25.5)
mutex_m (0.3.0)
parallel (1.23.0)
parser (3.3.7.4)
parallel (1.27.0)
parser (3.3.9.0)
ast (~> 2.4.1)
racc
prism (1.4.0)
racc (1.7.1)
racc (1.8.1)
rainbow (3.1.1)
rake (13.3.0)
rbs (3.6.1)
logger
regexp_parser (2.9.3)
rubocop (1.75.5)
regexp_parser (2.11.2)
rubocop (1.80.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.44.0, < 2.0)
rubocop-ast (>= 1.46.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.44.0)
rubocop-ast (1.46.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-performance (1.25.0)
Expand All @@ -69,7 +69,9 @@ GEM
standard-performance (1.8.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.25.0)
unicode-display_width (2.5.0)
unicode-display_width (3.1.5)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)

PLATFORMS
ruby
Expand Down
29 changes: 27 additions & 2 deletions config/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Bundler/OrderedGems:
Gemspec/AddRuntimeDependency:
Enabled: false

Gemspec/AttributeAssignment:
Enabled: false

Gemspec/DependencyVersion:
Enabled: false

Expand Down Expand Up @@ -122,7 +125,7 @@ Layout/EmptyComment:
AllowMarginComment: true

Layout/EmptyLineAfterGuardClause:
Enabled: false
Enabled: true

Layout/EmptyLineAfterMagicComment:
Enabled: true
Expand All @@ -138,6 +141,9 @@ Layout/EmptyLineBetweenDefs:
Layout/EmptyLines:
Enabled: true

Layout/EmptyLinesAfterModuleInclusion:
Enabled: true

Layout/EmptyLinesAroundAccessModifier:
Enabled: true

Expand Down Expand Up @@ -867,6 +873,9 @@ Lint/UselessAssignment:
Lint/UselessConstantScoping:
Enabled: false

Lint/UselessDefaultValueArgument:
Enabled: false

Lint/UselessDefined:
Enabled: true

Expand All @@ -879,6 +888,9 @@ Lint/UselessMethodDefinition:
Lint/UselessNumericOperation:
Enabled: false

Lint/UselessOr:
Enabled: true

Lint/UselessRescue:
Enabled: true

Expand Down Expand Up @@ -975,7 +987,10 @@ Naming/MethodName:
Naming/MethodParameterName:
Enabled: false

Naming/PredicateName:
Naming/PredicateMethod:
Enabled: false

Naming/PredicatePrefix:
Enabled: false

Naming/RescuedExceptionsVariableName:
Expand Down Expand Up @@ -1102,6 +1117,9 @@ Style/CollectionCompact:
Style/CollectionMethods:
Enabled: false

Style/CollectionQuerying:
Enabled: false

Style/ColonMethodCall:
Enabled: true

Expand Down Expand Up @@ -1212,6 +1230,10 @@ Style/EmptyMethod:
Enabled: true
EnforcedStyle: expanded

Style/EmptyStringInsideInterpolation:
Enabled: true
EnforcedStyle: trailing_conditional

Style/Encoding:
Enabled: true

Expand Down Expand Up @@ -1605,6 +1627,9 @@ Style/RedundantArgument:
Style/RedundantArrayConstructor:
Enabled: true

Style/RedundantArrayFlatten:
Enabled: true

Style/RedundantAssignment:
Enabled: true

Expand Down
1 change: 1 addition & 0 deletions lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module RubyLsp
module Standard
class WrapsBuiltinLspStandardizer
include RubyLsp::Requests::Support::Formatter

def initialize
init!
end
Expand Down
1 change: 1 addition & 0 deletions lib/standard/lsp/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def puts(message)

def puts_once(message)
return if @puts_onces.include?(message)

@puts_onces << message
puts(message)
end
Expand Down
1 change: 1 addition & 0 deletions lib/standard/resolves_yaml_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def search_argv(argv, option_name)

def argv_value_for(argv, option_name)
return unless (index = argv.index(option_name))

argv[index + 1]
end
end
Expand Down
2 changes: 1 addition & 1 deletion standard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.metadata["rubygems_mfa_required"] = "true"

spec.add_dependency "rubocop", "~> 1.75.5"
spec.add_dependency "rubocop", "~> 1.80.2"

spec.add_dependency "lint_roller", "~> 1.0"
spec.add_dependency "standard-custom", "~> 1.0.0"
Expand Down