.rubocop.yml in html2rss-0.8.2 vs .rubocop.yml in html2rss-0.9.0
- old
+ new
@@ -1,59 +1,164 @@
require:
- rubocop-performance
- rubocop-rspec
AllCops:
- TargetRubyVersion: 2.4
+ TargetRubyVersion: 2.5
DisplayCopNames: true
-Metrics/LineLength:
- Max: 110
-
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
- html2rss.gemspec
Metrics/ModuleLength:
Exclude:
- "**/*_spec.rb"
-Metrics/MethodLength:
- Max: 15
+Layout/ClassStructure:
+ Enabled: true
-Style/BlockDelimiters:
+Layout/HeredocArgumentClosingParenthesis:
Enabled: true
- Exclude:
- - '**/*_spec.rb'
-Style/FrozenStringLiteralComment:
- Enabled: false
+Layout/LineLength:
+ Max: 110
-Style/AsciiComments:
- Enabled: false
+Layout/MultilineArrayLineBreaks:
+ Enabled: true
-Style/BracesAroundHashParameters:
- Description: 'Enforce braces style around hash parameters.'
+Layout/MultilineHashKeyLineBreaks:
Enabled: true
-Style/HashSyntax:
+Layout/SpaceInsideParens:
Enabled: true
-Style/FormatStringToken:
+Layout/EmptyLinesAroundAttributeAccessor:
+ Enabled: true
+
+Layout/SpaceAroundMethodCallOperator:
+ Enabled: true
+
+Lint/HeredocMethodCallPosition:
+ Enabled: true
+
+Lint/NumberConversion:
Enabled: false
-Layout/SpaceInsideParens:
+Lint/DeprecatedOpenSSLConstant:
Enabled: true
+Lint/MixedRegexpCaptureTypes:
+ Enabled: true
+
+Lint/RaiseException:
+ Enabled: true
+
+Lint/StructNewOverride:
+ Enabled: true
+
+
Performance/CaseWhenSplat:
Enabled: true
Performance/ChainArrayAllocation:
Enabled: true
Performance/OpenStruct:
Enabled: true
+
RSpec/NestedGroups:
Exclude:
- spec/html2rss_spec.rb
+
+
+Style/AsciiComments:
+ Enabled: false
+
+Style/AutoResourceCleanup:
+ Enabled: true
+
+Style/BlockDelimiters:
+ Enabled: true
+ Exclude:
+ - '**/*_spec.rb'
+
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true
+
+Style/CollectionMethods:
+ Enabled: true
+
+Style/ConstantVisibility:
+ Enabled: true
+
+Style/DateTime:
+ Enabled: true
+
+Style/Documentation:
+ Exclude:
+ - lib/html2rss/version.rb
+
+Style/DocumentationMethod:
+ Enabled: false
+
+Style/FormatStringToken:
+ Enabled: false
+
+Style/FrozenStringLiteralComment:
+ Enabled: false
+
+Style/HashSyntax:
+ Enabled: true
+
+Style/InlineComment:
+ Enabled: true
+
+Style/IpAddresses:
+ Enabled: true
+
+Style/MethodCallWithArgsParentheses:
+ Enabled: false
+
+Style/MethodCalledOnDoEndBlock:
+ Enabled: true
+
+Style/MissingElse:
+ Enabled: true
+
+Style/MultilineMethodSignature:
+ Enabled: true
+
+Style/OptionHash:
+ Enabled: true
+
+Style/ReturnNil:
+ Enabled: true
+
+Style/SingleLineBlockParams:
+ Enabled: true
+
+Style/StderrPuts:
+ Enabled: true
+
+Style/StringMethods:
+ Enabled: true
+
+Style/ExponentialNotation:
+ Enabled: true
+
+Style/RedundantRegexpCharacterClass:
+ Enabled: true
+
+Style/RedundantRegexpEscape:
+ Enabled: true
+
+Style/SlicingWithRange:
+ Enabled: true