.rubocop.yml in html2rss-0.9.0 vs .rubocop.yml in html2rss-0.10.0
- old
+ new
@@ -1,164 +1,30 @@
require:
- rubocop-performance
- rubocop-rspec
+ - rubocop-md
+ - rubocop-rake
AllCops:
- TargetRubyVersion: 2.5
DisplayCopNames: true
+ NewCops: enable
+ Exclude:
+ - vendor/**/*
Metrics/BlockLength:
Exclude:
- - "**/*_spec.rb"
+ - "spec/**/*_spec.rb"
- html2rss.gemspec
-Metrics/ModuleLength:
- Exclude:
- - "**/*_spec.rb"
-
-Layout/ClassStructure:
- Enabled: true
-
-Layout/HeredocArgumentClosingParenthesis:
- Enabled: true
-
-Layout/LineLength:
- Max: 110
-
-Layout/MultilineArrayLineBreaks:
- Enabled: true
-
-Layout/MultilineHashKeyLineBreaks:
- Enabled: true
-
-Layout/SpaceInsideParens:
- Enabled: true
-
-Layout/EmptyLinesAroundAttributeAccessor:
- Enabled: true
-
-Layout/SpaceAroundMethodCallOperator:
- Enabled: true
-
-Lint/HeredocMethodCallPosition:
- Enabled: true
-
-Lint/NumberConversion:
- Enabled: false
-
-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
+RSpec/DescribeClass:
Exclude:
- - '**/*_spec.rb'
+ - spec/exe/**/*_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:
+RSpec/NamedSubject:
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
+Naming/RescuedExceptionsVariableName:
+ PreferredName: error