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

- old
+ new

@@ -1,25 +1,25 @@ inherit_from: .rubocop_todo.yml +require: + - rubocop-performance + - rubocop-rake + AllCops: - TargetRubyVersion: 2.6.8 + TargetRubyVersion: 2.7 NewCops: enable Exclude: - 'lib/watir/elements/html_elements.rb' - 'lib/watir/elements/svg_elements.rb' -Layout/LineLength: - Max: 120 - Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Lint/UnifiedInteger: Exclude: - 'lib/watir/locators/element/selector_builder.rb' -# Default: 17 Metrics/AbcSize: Max: 22 Exclude: - 'lib/watir/locators/element/selector_builder.rb' - 'lib/watir/locators/element/selector_builder/*.rb' @@ -31,10 +31,14 @@ - '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' @@ -45,11 +49,10 @@ - 'lib/watir/elements/element.rb' - 'lib/watir/elements/select.rb' - 'lib/watir/generator/base/spec_extractor.rb' - 'lib/watir/element_collection.rb' -# Default: 7 Metrics/CyclomaticComplexity: Max: 9 Exclude: - 'lib/watir/locators/element/selector_builder.rb' @@ -59,26 +62,30 @@ 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' -# Default: 8 Metrics/PerceivedComplexity: Max: 10 +Performance/CollectionLiteralInLoop: + MinSize: 3 + Style/BlockDelimiters: EnforcedStyle: braces_for_chaining Style/CommentedKeyword: Enabled: false +# truthy is not true Style/DoubleNegation: Enabled: false Style/GlobalVars: AllowedVariables: - $browser +# Need to add new keys into hash during iteration Style/HashEachMethods: Enabled: false Style/OptionalBooleanParameter: Enabled: false