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
57 changes: 33 additions & 24 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2025-12-15 17:20:38 UTC using RuboCop version 1.71.2.
# on 2026-03-17 23:06:46 UTC using RuboCop version 1.85.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# TODO - [LH] -> Feb '24 - 370 files inspected, 635 offenses detected, 166 offenses autocorrectable
# TODO - [LH] -> Jul '24 - 370 files inspected, 637 offenses detected, 97 offenses autocorrectable
# TODO - [LH] -> Jul '24 - 369 files inspected, 661 offenses detected, 98 offenses autocorrectable
# TODO - [LH] -> Jan '25 (Updated deps and v10 prep) - 369 files inspected, 704 offenses detected, 112 offenses autocorrectable
# TODO - [LH] -> Mar '25 (v10 prep) - 370 files inspected, 721 offenses detected, 116 offenses autocorrectable
# TODO - [LH] -> Dec '25 - 375 files inspected, 713 offenses detected, 109 offenses autocorrectable
# TODO - [LH] -> Dec '26 (query prep) - 378 files inspected, 729 offenses detected, 109 offenses autocorrectable
# TODO - [LH] -> Dec '25 (query prep) - 378 files inspected, 729 offenses detected, 109 offenses autocorrectable
# TODO - [LH] -> Mar '26 (v11 prep) - 378 files inspected, 732 offenses detected, 109 offenses autocorrectable

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Expand All @@ -36,14 +34,13 @@ Lint/RescueException:

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, ContextCreatingMethods, MethodCreatingMethods.
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'lib/cucumber/formatter/curl_option_parser.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessMethodDefinition:
Exclude:
- 'lib/cucumber/glue/proto_world.rb'
Expand All @@ -53,7 +50,7 @@ Lint/UselessMethodDefinition:
Metrics/AbcSize:
Max: 127

# Offense count: 1
# Offense count: 2
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Expand All @@ -64,25 +61,25 @@ Metrics/BlockLength:
Metrics/ClassLength:
Max: 516

# Offense count: 10
# Offense count: 8
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 15
Max: 12

# Offense count: 83
# Offense count: 82
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 65

# Offense count: 15
# Offense count: 14
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 804

# Offense count: 10
# Offense count: 8
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 15
Max: 13

# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
Expand Down Expand Up @@ -142,7 +139,6 @@ RSpec/ContextWording:

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
RSpec/EmptyExampleGroup:
Exclude:
- 'spec/cucumber/filters/activate_steps_spec.rb'
Expand Down Expand Up @@ -180,12 +176,12 @@ RSpec/ExpectInHook:
- 'spec/cucumber/multiline_argument/data_table_spec.rb'
- 'spec/cucumber/runtime/meta_message_builder_spec.rb'

# Offense count: 14
# Offense count: 13
RSpec/ExpectOutput:
Exclude:
- 'spec/cucumber/formatter/interceptor_spec.rb'

# Offense count: 63
# Offense count: 61
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, each, example
Expand All @@ -199,11 +195,12 @@ RSpec/IndexedLet:
- 'spec/cucumber/filters/retry_spec.rb'
- 'spec/cucumber/glue/registry_and_more_spec.rb'

# Offense count: 37
# Offense count: 52
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/cucumber/formatter/interceptor_spec.rb'
- 'spec/cucumber/formatter/json_spec.rb'
- 'spec/cucumber/formatter/query/hook_by_test_step_spec.rb'
- 'spec/support/shared_context/http_server.rb'

Expand All @@ -228,7 +225,7 @@ RSpec/MissingExampleGroupArgument:
- 'spec/cucumber/formatter/fail_fast_spec.rb'
- 'spec/cucumber/formatter/rerun_spec.rb'

# Offense count: 60
# Offense count: 58
RSpec/MultipleExpectations:
Max: 3

Expand Down Expand Up @@ -294,14 +291,13 @@ RSpec/RepeatedExample:

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/ScatteredLet:
Exclude:
- 'spec/cucumber/runtime/support_code_spec.rb'

# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
# SupportedInflectors: default, active_support
RSpec/SpecFilePathFormat:
Exclude:
- 'spec/cucumber/formatter/interceptor_spec.rb'
Expand All @@ -319,13 +315,12 @@ RSpec/SubjectDeclaration:
- 'spec/cucumber/runtime/after_hooks_spec.rb'
- 'spec/cucumber/runtime/before_hooks_spec.rb'

# Offense count: 57
# Offense count: 53
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/cucumber/cli/main_spec.rb'
- 'spec/cucumber/configuration_spec.rb'
- 'spec/cucumber/filters/activate_steps_spec.rb'
- 'spec/cucumber/filters/gated_receiver_spec.rb'
- 'spec/cucumber/filters/retry_spec.rb'
- 'spec/cucumber/filters/tag_limits/test_case_index_spec.rb'
Expand Down Expand Up @@ -366,6 +361,14 @@ Style/MutableConstant:
Exclude:
- 'lib/cucumber/formatter/unicode.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods.
# AllowedMethods: infinite?, nonzero?
Style/RedundantCondition:
Exclude:
- 'lib/cucumber/cli/options.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFreeze:
Expand All @@ -375,6 +378,12 @@ Style/RedundantFreeze:
- 'lib/cucumber/runtime.rb'
- 'lib/cucumber/term/ansicolor.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
Exclude:
- 'lib/cucumber/glue/invoke_in_world.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/StderrPuts:
Expand Down
4 changes: 2 additions & 2 deletions cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Gem::Specification.new do |s|
s.add_development_dependency 'nokogiri', '~> 1.15'
s.add_development_dependency 'rake', '~> 13.2'
s.add_development_dependency 'rspec', '~> 3.13'
s.add_development_dependency 'rubocop', '~> 1.71.0'
s.add_development_dependency 'rubocop', '~> 1.85.1'
s.add_development_dependency 'rubocop-packaging', '~> 0.5.2'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 3.4.0'
s.add_development_dependency 'rubocop-rspec', '~> 3.8.0'
s.add_development_dependency 'simplecov', '~> 0.22.0'
s.add_development_dependency 'webrick', '~> 1.8'

Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/cli/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Cli
class Configuration
include Constantize

attr_reader :out_stream
attr_reader :out_stream, :options

def initialize(out_stream = $stdout, error_stream = $stderr)
@out_stream = out_stream
Expand Down
Loading
Loading