Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Nov 11, 2024
1 parent df42de7 commit 452a330
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['3.1.4', '3.2.3', '3.3.0']
ruby: ['3.1.6', '3.2.5', '3.3.6']

name: Ruby ${{ matrix.ruby }}
steps:
Expand Down
75 changes: 69 additions & 6 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,21 @@ Lint/MixedCaseRange:
Lint/RedundantRegexpQuantifiers:
Enabled: true

Lint/DuplicateSetElement:
Enabled: true

Lint/ItWithoutArgumentsInBlock:
Enabled: true

Lint/LiteralAssignmentInCondition:
Enabled: true

Lint/UnescapedBracketInRegexp:
Enabled: true

Lint/UselessNumericOperation:
Enabled: true

Naming/BlockForwarding:
Enabled: true

Expand All @@ -409,6 +424,9 @@ Gemspec/DeprecatedAttributeAssignment:
Gemspec/DevelopmentDependencies:
Enabled: true

Gemspec/AddRuntimeDependency:
Enabled: true

Layout/LineContinuationLeadingSpace:
Enabled: true

Expand Down Expand Up @@ -478,6 +496,39 @@ Style/ReturnNilInPredicateMethodDefinition:
Style/YAMLFileRead:
Enabled: true

Style/AmbiguousEndlessMethodDefinition:
Enabled: true

Style/BitwisePredicate:
Enabled: true

Style/CombinableDefined:
Enabled: true

Style/KeywordArgumentsMerging:
Enabled: true

Style/MapIntoArray:
Enabled: true

Style/RedundantInterpolationUnfreeze:
Enabled: true

Style/SafeNavigationChainLength:
Enabled: true

Style/SendWithLiteralMethodName:
Enabled: true

Style/SingleLineDoEndBlock:
Enabled: true

Style/SuperArguments:
Enabled: true

Style/SuperWithArgsParentheses:
Enabled: true

RSpec/ExampleLength:
Enabled: false

Expand Down Expand Up @@ -529,13 +580,13 @@ RSpec/VerifiedDoubleReference:
RSpec/ExpectInLet:
Enabled: false

RSpec/Rails/AvoidSetupHook:
RSpecRails/AvoidSetupHook:
Enabled: true

RSpec/Rails/HaveHttpStatus:
RSpecRails/HaveHttpStatus:
Enabled: true

RSpec/Rails/InferredSpecType:
RSpecRails/InferredSpecType:
Enabled: false

RSpec/DuplicatedMetadata:
Expand All @@ -550,10 +601,10 @@ RSpec/RedundantAround:
RSpec/SkipBlockInsideExample:
Enabled: true

RSpec/Rails/MinitestAssertions:
RSpecRails/MinitestAssertions:
Enabled: true

RSpec/Rails/TravelAround:
RSpecRails/TravelAround:
Enabled: true

RSpec/BeEmpty:
Expand Down Expand Up @@ -586,7 +637,10 @@ RSpec/SpecFilePathFormat:
RSpec/SpecFilePathSuffix:
Enabled: true

RSpec/Rails/NegationBeValid:
RSpecRails/NegationBeValid:
Enabled: true

RSpec/StringAsInstanceDoubleConstant:
Enabled: true

Capybara/NegationMatcher:
Expand All @@ -613,6 +667,9 @@ Capybara/RSpec/HaveSelector:
Capybara/RSpec/PredicateMatcher:
Enabled: true

Capybara/RedundantWithinFind:
Enabled: true

FactoryBot/ConsistentParenthesesStyle:
Enabled: true

Expand All @@ -633,3 +690,9 @@ FactoryBot/IdSequence:

FactoryBot/RedundantFactoryOption:
Enabled: true

FactoryBot/CreateList:
Enabled: true

FactoryBot/ExcessiveCreateList:
Enabled: true
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gem 'rubocop-rspec'
gem 'rubocop-rspec_rails'
gem 'sidekiq', '>= 3.0'
gem 'spork'
gem 'sqlite3', '~> 1.3'
gem 'sqlite3', '>= 2.1'
gem 'timecop'
gem 'webmock'

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gem 'rubocop'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rake'
gem 'rubocop-rspec'
gem 'rubocop-rspec's
gem 'rubocop-rspec_rails'
gem 'sidekiq', '>= 3.0'
gem 'spork'
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Configuration < Base::Configuration
attr_accessor :queue_size

def initialize(provider)
super(provider)
super

@queue_size = DEFAULT_QUEUES_SIZE
end
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/file_absence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Configuration < Base::Configuration
attr_accessor :filename

def initialize(provider)
super(provider)
super

@filename = DEFAULT_FILENAME
end
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Configuration < Base::Configuration
attr_accessor :url, :connection, :max_used_memory

def initialize(provider)
super(provider)
super

@url = DEFAULT_URL
end
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Configuration < Base::Configuration
attr_reader :queues

def initialize(provider)
super(provider)
super

@maximum_amount_of_retries = DEFAULT_RETRY_CHECK

Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/solr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Configuration < Base::Configuration
attr_accessor :url, :collection

def initialize(provider)
super(provider)
super

@url = DEFAULT_URL
@collection = DEFAULT_COLLECTION
Expand Down

0 comments on commit 452a330

Please sign in to comment.