.rubocop.yml in watir-6.14.0 vs .rubocop.yml in watir-6.15.0

- old
+ new

@@ -51,32 +51,46 @@ - 'lib/watir/elements/svg_elements.rb' # 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' # Configuration parameters: CountComments. Metrics/ClassLength: - Max: 116 + Max: 95 Exclude: + - 'lib/watir/capabilities.rb' - 'lib/watir/locators/element/locator.rb' + - 'lib/watir/locators/element/selector_builder.rb' + - 'lib/watir/locators/element/selector_builder/xpath.rb' - 'lib/watir/browser.rb' + - 'lib/watir/window.rb' - 'lib/watir/elements/element.rb' - 'lib/watir/elements/select.rb' + - 'lib/watir/generator/base/spec_extractor.rb' Metrics/PerceivedComplexity: - Max: 9 + Max: 10 Metrics/CyclomaticComplexity: - Max: 9 + Max: 8 + Exclude: + - 'lib/watir/locators/element/selector_builder.rb' -# Offense count: 28 Metrics/AbcSize: - Max: 22 + Max: 20 Exclude: - 'lib/watir/locators/element/selector_builder.rb' + - 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb' + - 'lib/watir/locators/element/selector_builder/xpath.rb' + - 'lib/watir/locators/element/locator.rb' - 'lib/watir/generator/base/generator.rb' + - 'lib/watir/generator/base/visitor.rb' # TODO: fix with Watir 7 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: Exclude: @@ -105,10 +119,14 @@ ## Configuration parameters: AllowedVariables. Style/GlobalVars: AllowedVariables: - $browser +Style/RegexpLiteral: + Exclude: + - 'spec/watirspec/selector_builder/element_spec.rb' + ### Cop supports --auto-correct. ### Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. ## SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: @@ -122,10 +140,10 @@ ## Configuration parameters: EnforcedStyle. ## SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - 'lib/watir/browser.rb' - - 'lib/watir/locators/text_field/selector_builder.rb' + - 'lib/watir/locators/text_field/selector_builder/xpath.rb' - 'lib/watir/window.rb' Style/Documentation: Enabled: false \ No newline at end of file