.rubocop.yml in sidekiq-prometheus-exporter-0.1.13 vs .rubocop.yml in sidekiq-prometheus-exporter-0.1.14

- old
+ new

@@ -1,10 +1,10 @@ --- require: rubocop-rspec AllCops: - TargetRubyVersion: 2.2 + TargetRubyVersion: ~ Style/Alias: EnforcedStyle: prefer_alias_method Style/AndOr: @@ -28,11 +28,11 @@ Style/Documentation: Enabled: false Style/FrozenStringLiteralComment: - EnforcedStyle: when_needed + EnforcedStyle: always SupportedStyles: # `when_needed` will add the frozen string literal comment to files # only when the `TargetRubyVersion` is set to 2.3+. - when_needed # `always` will always add the frozen string literal comment to a file @@ -87,29 +87,29 @@ - predicate - comparison # Exclude RSpec specs because assertions like `expect(1).to be > 0` cause # false positives. Exclude: - - 'spec/**/*' + - "spec/**/*" Style/MethodCalledOnDoEndBlock: - Description: 'Avoid chaining a method call on a do...end block.' - StyleGuide: '#single-line-blocks' + Description: "Avoid chaining a method call on a do...end block." + StyleGuide: "#single-line-blocks" Enabled: true Style/PercentLiteralDelimiters: PreferredDelimiters: - '%': () - '%i': () - '%I': () - '%q': () - '%Q': () - '%r': '{}' - '%s': () - '%w': () - '%W': () - '%x': '{}' + "%": () + "%i": () + "%I": () + "%q": () + "%Q": () + "%r": "{}" + "%s": () + "%w": () + "%W": () + "%x": "{}" Style/SpecialGlobalVars: EnforcedStyle: use_english_names SupportedStyles: - use_perl_names @@ -156,14 +156,14 @@ #################### Naming #################################### Naming/AccessorMethodName: Description: Check the naming of accessor methods for get_/set_. - StyleGuide: '#accessor_mutator_method_names' + StyleGuide: "#accessor_mutator_method_names" # https://rubocop.readthedocs.io/en/latest/cops_naming/#naminguncommunicativemethodparamname -Naming/UncommunicativeMethodParamName: +Naming/MethodParameterName: AllowedNames: - _ - io - id - to @@ -172,11 +172,15 @@ - in - at #################### Layout #################################### -Layout/AlignParameters: +Layout/LineLength: + # Default: 80 + Max: 120 + +Layout/ParameterAlignment: # Alignment of parameters in multi-line method calls. # # The `with_first_parameter` style aligns the following lines along the same # column as the first parameter. # @@ -192,11 +196,11 @@ SupportedStyles: - with_first_parameter - with_fixed_indentation # Checks the indentation of the first element in an array literal. -Layout/IndentArray: +Layout/FirstArrayElementIndentation: # The value `special_inside_parentheses` means that array literals with # brackets that have their opening bracket on the same line as a surrounding # opening round parenthesis, shall have their first element indented relative # to the first position inside the parenthesis. # @@ -214,11 +218,11 @@ # By default, the indentation width from Style/IndentationWidth is used # But it can be overridden by setting this parameter IndentationWidth: ~ # Checks the indentation of the first key in a hash literal. -Layout/IndentHash: +Layout/FirstHashElementIndentation: # The value `special_inside_parentheses` means that hash literals with braces # that have their opening brace on the same line as a surrounding opening # round parenthesis, shall have their first key indented relative to the # first position inside the parenthesis. # @@ -275,23 +279,19 @@ # But it can be overridden by setting this parameter IndentationWidth: ~ ##################### Metrics ################################## -Metrics/LineLength: - # Default: 80 - Max: 120 - Metrics/MethodLength: # Default: 10 Max: 15 Metrics/BlockLength: Exclude: - - 'Rakefile' - - '**/*.gemspec' - - '**/*.rake' - - 'spec/**/*.rb' + - "Rakefile" + - "**/*.gemspec" + - "**/*.rake" + - "spec/**/*.rb" ##################### Lint ################################## # https://rubocop.readthedocs.io/en/latest/cops_lint/#lintambiguousblockassociation Lint/AmbiguousBlockAssociation: