.rubocop.yml in watir-7.2.0 vs .rubocop.yml in watir-7.2.1

- old
+ new

@@ -1,10 +1,11 @@ inherit_from: .rubocop_todo.yml require: - rubocop-performance - rubocop-rake + - rubocop-rspec AllCops: TargetRubyVersion: 2.7 NewCops: enable Exclude: @@ -12,33 +13,24 @@ - 'lib/watir/elements/svg_elements.rb' Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space -Lint/UnifiedInteger: - Exclude: - - 'lib/watir/locators/element/selector_builder.rb' - Metrics/AbcSize: Max: 22 Exclude: - 'lib/watir/locators/element/selector_builder.rb' - 'lib/watir/locators/element/selector_builder/*.rb' - 'lib/watir/generator/base/generator.rb' - 'spec/locator_spec_helper.rb' Metrics/BlockLength: Exclude: - - 'spec/**/*' - 'support/doctest_helper.rb' - 'watir.gemspec' - 'Rakefile' -Metrics/ModuleLength: - Exclude: - - 'spec/**/*' - Metrics/ClassLength: Max: 93 Exclude: - 'lib/watir/capabilities.rb' - 'lib/watir/locators/element/matcher.rb' @@ -48,10 +40,11 @@ - 'lib/watir/window.rb' - 'lib/watir/elements/element.rb' - 'lib/watir/elements/select.rb' - 'lib/watir/generator/base/spec_extractor.rb' - 'lib/watir/element_collection.rb' + - 'spec/**/*_spec.rb' Metrics/CyclomaticComplexity: Max: 9 Exclude: - 'lib/watir/locators/element/selector_builder.rb' @@ -59,17 +52,37 @@ # Configuration parameters: CountComments. Metrics/MethodLength: Max: 18 Exclude: - 'lib/watir/locators/element/selector_builder.rb' - - 'lib/watir/locators/element/selector_builder/xpath.rb' - 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb' +Metrics/ModuleLength: + Exclude: + - 'spec/**/*' + Metrics/PerceivedComplexity: Max: 10 -Performance/CollectionLiteralInLoop: - MinSize: 3 +RSpec/AnyInstance: + Enabled: false + +RSpec/BeforeAfterAll: + Enabled: false + +RSpec/ExampleLength: + Enabled: false + +RSpec/MultipleExpectations: + Enabled: false + +RSpec/MultipleMemoizedHelpers: + Exclude: + - 'spec/watirspec/capabilities_spec.rb' + +RSpec/NoExpectationExample: + Exclude: + - 'spec/watirspec/cookies_spec.rb' Style/BlockDelimiters: EnforcedStyle: braces_for_chaining Style/CommentedKeyword: