Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #952 from puppetlabs/pdksync_gitpod
[puppet-modules/puppetlabs-apt.git]
/
.rubocop.yml
diff --git
a/.rubocop.yml
b/.rubocop.yml
index 515ef6314c5bffe71a3e21896781d3871bd54931..b7c972b286f0bb13161f3530f66c2f794586876e 100644
(file)
--- a/
.rubocop.yml
+++ b/
.rubocop.yml
@@
-1,22
+1,33
@@
---
require:
---
require:
- - rubocop-rspec
+- rubocop-rspec
+- rubocop-i18n
AllCops:
AllCops:
+ DisplayCopNames: true
TargetRubyVersion: '2.1'
Include:
- "./**/*.rb"
Exclude:
- bin/*
- ".vendor/**/*"
TargetRubyVersion: '2.1'
Include:
- "./**/*.rb"
Exclude:
- bin/*
- ".vendor/**/*"
- -
Gemfile
- -
Rakefile
+ -
"**/Gemfile"
+ -
"**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
-inherit_from: .rubocop_todo.yml
+ - "**/Puppetfile"
+ - "**/Vagrantfile"
+ - "**/Guardfile"
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
+GetText:
+ Enabled: false
+GetText/DecorateString:
+ Description: We don't want to decorate test output.
+ Exclude:
+ - spec/**/*
+ Enabled: false
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
@@
-29,6
+40,10
@@
Style/BlockDelimiters:
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
EnforcedStyle: braces_for_chaining
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
EnforcedStyle: braces_for_chaining
+Style/BracesAroundHashParameters:
+ Description: Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
+ See https://github.com/rubocop-hq/rubocop/pull/7643
+ Enabled: false
Style/ClassAndModuleChildren:
Description: Compact style reduces the required amount of indentation.
EnforcedStyle: compact
Style/ClassAndModuleChildren:
Description: Compact style reduces the required amount of indentation.
EnforcedStyle: compact
@@
-64,12
+79,31
@@
Style/TrailingCommaInLiteral:
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
+inherit_from: ".rubocop_todo.yml"
+RSpec/MessageSpies:
+ EnforcedStyle: receive
+Style/Documentation:
+ Exclude:
+ - lib/puppet/parser/functions/**/*
+ - spec/**/*
+Style/WordArray:
+ EnforcedStyle: brackets
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
+GetText/DecorateFunctionMessage:
+ Enabled: false
+GetText/DecorateStringFormattingUsingInterpolation:
+ Enabled: false
+GetText/DecorateStringFormattingUsingPercent:
+ Enabled: false
+Layout/EndOfLine:
+ Enabled: false
+Layout/IndentHeredoc:
+ Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
@@
-88,8
+122,14
@@
Metrics/PerceivedComplexity:
Enabled: false
RSpec/DescribeClass:
Enabled: false
Enabled: false
RSpec/DescribeClass:
Enabled: false
+RSpec/ExampleLength:
+ Enabled: false
RSpec/MessageExpectation:
Enabled: false
RSpec/MessageExpectation:
Enabled: false
+RSpec/MultipleExpectations:
+ Enabled: false
+RSpec/NestedGroups:
+ Enabled: false
Style/AsciiComments:
Enabled: false
Style/IfUnlessModifier:
Style/AsciiComments:
Enabled: false
Style/IfUnlessModifier: