-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously this gem only contained a rubocop config that's used in our modules. We didn't run rubocop for the ruby code in this exact gem. This is changed with this commit.
- Loading branch information
1 parent
0369193
commit cf3bc7d
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
require: | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
# this alligns with our settings in voxpupuli-rubocop | ||
# but we cannot depend on that because it pulls in newer rubocop versions, | ||
# which would break our modules on legacy puppetserver | ||
AllCops: | ||
NewCops: enable | ||
DisplayCopNames: true | ||
ExtraDetails: true | ||
DisplayStyleGuide: true | ||
|
||
# this currently doesn't work with the way we handle our secrets | ||
Gemspec/RequireMFA: | ||
Enabled: false | ||
|
||
# Vox Pupuli default is to use `add_development_dependency` in the gemspec | ||
Gemspec/DevelopmentDependencies: | ||
Enabled: false | ||
|
||
Style/TernaryParentheses: | ||
EnforcedStyle: require_parentheses_when_complex | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
Enabled: true | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: true | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrailingCommaInArguments: | ||
Enabled: true | ||
EnforcedStyleForMultiline: comma | ||
|
||
inherit_from: .rubocop_todo.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters