.rubocop.yml in prolog-services-markdown_to_html-1.0.2 vs .rubocop.yml in prolog-services-markdown_to_html-1.0.3
- old
+ new
@@ -1,46 +1,24 @@
-# CodeClimate runs an older version of RuboCop, which apparently doesn't
-# understand the `AllCops` setting. So we do it The Hard Way.
-
-Metrics/LineLength:
- Exclude:
- - Rakefile
- - prolog-services-replace_content.gemspec
-
-Style/PercentLiteralDelimiters:
- Exclude:
- - prolog-services-replace_content.gemspec
-
-Style/PercentQLiterals:
- Exclude:
- - prolog-services-replace_content.gemspec
-
-Style/StringLiterals:
- Exclude:
- - Rakefile
- - prolog-services-replace_content.gemspec
- - bin/console
-
-Style/UnneededPercentQ:
- Exclude:
- - prolog-services-replace_content.gemspec
-
-Style/WordArray:
- Exclude:
- - Rakefile
-
-# 'Real' settings follow. ###################################
-
AllCops:
- TargetRubyVersion: 2.3
+ TargetRubyVersion: 2.5
-Metrics/AbcSize:
- Exclude:
- - test/prolog/use_cases/propose_edit_contribution_test.rb
+Metrics/BlockLength:
+ Max: 300
+ Include:
+ - 'spec/**/*_spec.rb'
-Metrics/MethodLength:
- Exclude:
- - test/prolog/use_cases/propose_edit_contribution_test.rb
+Metrics/ModuleLength:
+ Max: 300
+ Include:
+ - 'spec/**/*_spec.rb'
-Style/Alias:
+Style/CommentedKeyword:
Enabled: false
+
+# This silences 'Missing top-level class documentation comment.', which we
+# particularly want to do on (initially-)generated files.
+Style/Documentation:
+ Enabled: false
+ Include:
+ - 'apps/**/*.rb'
+ - 'lib/**/*.rb'