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
(maint) update travis to not use bundle update --system
[puppet-modules/puppetlabs-apt.git]
/
.rubocop.yml
diff --git
a/.rubocop.yml
b/.rubocop.yml
index 7ed6225c7d1406fceafc68b90288f8eb93c37b1e..33688a79ec1d068a47484b3bd878a725a7bf9f93 100644
(file)
--- a/
.rubocop.yml
+++ b/
.rubocop.yml
@@
-1,5
+1,7
@@
---
---
-require: rubocop-rspec
+require:
+- rubocop-rspec
+- rubocop-i18n
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.1'
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.1'
@@
-19,6
+21,13
@@
AllCops:
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.
@@
-66,11
+75,13
@@
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/**/*
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Exclude:
- lib/puppet/parser/functions/**/*
+ - spec/**/*
Style/WordArray:
EnforcedStyle: brackets
Style/CollectionMethods:
Style/WordArray:
EnforcedStyle: brackets
Style/CollectionMethods:
@@
-79,8
+90,16
@@
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/StringMethods:
Enabled: true
Enabled: true
Style/StringMethods:
Enabled: true
+GetText/DecorateFunctionMessage:
+ Enabled: false
+GetText/DecorateStringFormattingUsingInterpolation:
+ Enabled: false
+GetText/DecorateStringFormattingUsingPercent:
+ Enabled: false
Layout/EndOfLine:
Enabled: false
Layout/EndOfLine:
Enabled: false
+Layout/IndentHeredoc:
+ Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength: