Skip to content

Commit

Permalink
Fix rubocop setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Feb 7, 2019
1 parent fc15e4c commit 307c7db
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 77 deletions.
2 changes: 1 addition & 1 deletion bundler/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion cargo/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
62 changes: 1 addition & 61 deletions common/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5
Exclude:
- vendor/**/*
- bin/**/*
- tmp/**/*
- helpers/utils/git-credential-store-immutable
- helpers/python/**/*

Layout/DotPosition:
EnforcedStyle: trailing

Layout/RescueEnsureAlignment:
Enabled: false

Metrics/ClassLength:
Max: 250

Metrics/ModuleLength:
Max: 200

Metrics/CyclomaticComplexity:
Max: 7

Metrics/LineLength:
Max: 80

Metrics/AbcSize:
Max: 30

Metrics/MethodLength:
Max: 25

Metrics/BlockLength:
Exclude:
- Rakefile
- spec/**/*
- dependabot-*.gemspec

Metrics/ParameterLists:
CountKeywordArgs: false

Naming/FileName:
Enabled: false

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/SignalException:
EnforcedStyle: only_raise

Style/Documentation:
Enabled: false

Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%i': ()
'%I': ()
'%w': ()
'%W': ()
inherit_from: config/rubocop.yml
61 changes: 61 additions & 0 deletions common/config/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5
Exclude:
- vendor/**/*
- bin/**/*
- tmp/**/*
- helpers/utils/git-credential-store-immutable
- helpers/python/**/*

Layout/DotPosition:
EnforcedStyle: trailing

Layout/RescueEnsureAlignment:
Enabled: false

Metrics/ClassLength:
Max: 250

Metrics/ModuleLength:
Max: 200

Metrics/CyclomaticComplexity:
Max: 7

Metrics/LineLength:
Max: 80

Metrics/AbcSize:
Max: 30

Metrics/MethodLength:
Max: 25

Metrics/BlockLength:
Exclude:
- Rakefile
- spec/**/*
- dependabot-*.gemspec

Metrics/ParameterLists:
CountKeywordArgs: false

Naming/FileName:
Enabled: false

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/SignalException:
EnforcedStyle: only_raise

Style/Documentation:
Enabled: false

Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%i': ()
'%I': ()
'%w': ()
'%W': ()
2 changes: 1 addition & 1 deletion composer/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion dep/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion docker/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion elm/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion git_submodules/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion go_modules/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion gradle/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion hex/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion maven/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion npm_and_yarn/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion nuget/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion omnibus/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion python/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml
2 changes: 1 addition & 1 deletion terraform/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
inherit_from: ../common/.rubocop.yml
inherit_from: ../common/config/rubocop.yml

0 comments on commit 307c7db

Please sign in to comment.