From 307c7db21e7e2a2e99b5afc3652aa219d50b192b Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Thu, 7 Feb 2019 09:32:05 -0500 Subject: [PATCH] Fix rubocop setup --- bundler/.rubocop.yml | 2 +- cargo/.rubocop.yml | 2 +- common/.rubocop.yml | 62 +------------------------------------ common/config/rubocop.yml | 61 ++++++++++++++++++++++++++++++++++++ composer/.rubocop.yml | 2 +- dep/.rubocop.yml | 2 +- docker/.rubocop.yml | 2 +- elm/.rubocop.yml | 2 +- git_submodules/.rubocop.yml | 2 +- go_modules/.rubocop.yml | 2 +- gradle/.rubocop.yml | 2 +- hex/.rubocop.yml | 2 +- maven/.rubocop.yml | 2 +- npm_and_yarn/.rubocop.yml | 2 +- nuget/.rubocop.yml | 2 +- omnibus/.rubocop.yml | 2 +- python/.rubocop.yml | 2 +- terraform/.rubocop.yml | 2 +- 18 files changed, 78 insertions(+), 77 deletions(-) create mode 100644 common/config/rubocop.yml diff --git a/bundler/.rubocop.yml b/bundler/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/bundler/.rubocop.yml +++ b/bundler/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/cargo/.rubocop.yml b/cargo/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/cargo/.rubocop.yml +++ b/cargo/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/common/.rubocop.yml b/common/.rubocop.yml index 5f16563c09..4bb7b76d48 100644 --- a/common/.rubocop.yml +++ b/common/.rubocop.yml @@ -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 diff --git a/common/config/rubocop.yml b/common/config/rubocop.yml new file mode 100644 index 0000000000..5f16563c09 --- /dev/null +++ b/common/config/rubocop.yml @@ -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': () diff --git a/composer/.rubocop.yml b/composer/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/composer/.rubocop.yml +++ b/composer/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/dep/.rubocop.yml b/dep/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/dep/.rubocop.yml +++ b/dep/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/docker/.rubocop.yml b/docker/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/docker/.rubocop.yml +++ b/docker/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/elm/.rubocop.yml b/elm/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/elm/.rubocop.yml +++ b/elm/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/git_submodules/.rubocop.yml b/git_submodules/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/git_submodules/.rubocop.yml +++ b/git_submodules/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/go_modules/.rubocop.yml b/go_modules/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/go_modules/.rubocop.yml +++ b/go_modules/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/gradle/.rubocop.yml b/gradle/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/gradle/.rubocop.yml +++ b/gradle/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/hex/.rubocop.yml b/hex/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/hex/.rubocop.yml +++ b/hex/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/maven/.rubocop.yml b/maven/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/maven/.rubocop.yml +++ b/maven/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/npm_and_yarn/.rubocop.yml b/npm_and_yarn/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/npm_and_yarn/.rubocop.yml +++ b/npm_and_yarn/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/nuget/.rubocop.yml b/nuget/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/nuget/.rubocop.yml +++ b/nuget/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/omnibus/.rubocop.yml b/omnibus/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/omnibus/.rubocop.yml +++ b/omnibus/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/python/.rubocop.yml b/python/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/python/.rubocop.yml +++ b/python/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml diff --git a/terraform/.rubocop.yml b/terraform/.rubocop.yml index 6784f1bc07..9c18877124 100644 --- a/terraform/.rubocop.yml +++ b/terraform/.rubocop.yml @@ -1 +1 @@ -inherit_from: ../common/.rubocop.yml +inherit_from: ../common/config/rubocop.yml