.rubocop.yml in url_canonicalize-0.1.15 vs .rubocop.yml in url_canonicalize-0.2.0
- old
+ new
@@ -1,59 +1,60 @@
---
AllCops:
+ DisplayStyleGuide: true
+ DisplayCopNames: true
+ TargetRubyVersion: 2.2
Exclude:
- '*.gemspec'
- - 'spec/**/*'
+ - spec/**/*
-Performance/RegexpMatch:
- Enabled: false # match? is only available in Ruby 2.4+
-Style/TrailingCommaInArguments:
- EnforcedStyleForMultiline: no_comma
+Layout/DotPosition:
+ Description: 'Checks the position of the dot in multi-line method calls.'
+ EnforcedStyle: leading
Enabled: true
-StringLiterals:
- EnforcedStyle: single_quotes
+Layout/ExtraSpacing:
+ Description: 'Do not use unnecessary spacing.'
Enabled: true
-LineLength:
- Max: 120
- Exclude:
- - 'spec/**/*'
+Lint/LiteralInInterpolation:
+ Description: 'Avoid interpolating literals in strings'
+ AutoCorrect: true
-MethodLength:
+Metrics/ClassLength:
+ CountComments: false # count full line comments?
+ Max: 200
+
+Metrics/MethodLength:
Max: 12
-DotPosition:
- Description: 'Checks the position of the dot in multi-line method calls.'
- EnforcedStyle: leading
+Metrics/LineLength:
+ Max: 120
+ Exclude:
+ - spec/**/*
+
+Naming/FileName:
+ Description: 'Use snake_case for source file names.'
Enabled: true
-ClassAndModuleChildren:
+Style/ClassAndModuleChildren:
Description: 'Checks style of children classes and modules.'
EnforcedStyle: nested
Enabled: true
-Documentation:
+Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
-FileName:
- Description: 'Use snake_case for source file names.'
+Style/StringLiterals:
+ EnforcedStyle: single_quotes
Enabled: true
Style/SymbolArray:
Description: 'Use %i or %I for arrays of symbols.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i'
Enabled: false # Only available in Ruby 2.0+
-Style/ExtraSpacing:
- Description: 'Do not use unnecessary spacing.'
+Style/TrailingCommaInArguments:
+ EnforcedStyleForMultiline: no_comma
Enabled: true
-
-Lint/LiteralInInterpolation:
- Description: 'Avoid interpolating literals in strings'
- AutoCorrect: true
-
-Metrics/ClassLength:
- CountComments: false # count full line comments?
- Max: 200