diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /.rubocop.yml | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index f3a264d1f2f..47dc85a79f0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -60,6 +60,9 @@ Style/MutableConstant: Style/SafeNavigation: Enabled: false +Style/AccessModifierDeclarations: + AllowModifiersOnSymbols: true + # Frozen String Literal Style/FrozenStringLiteralComment: Enabled: true @@ -243,6 +246,13 @@ Gitlab/Json: - 'lib/quality/**/*' - 'lib/gitlab/danger/**/*' +Gitlab/AvoidUploadedFileFromParams: + Enabled: true + Exclude: + - 'lib/gitlab/middleware/multipart.rb' + - 'spec/**/*' + - 'ee/spec/**/*' + GitlabSecurity/PublicSend: Enabled: true Exclude: @@ -282,6 +292,14 @@ Cop/ActiveRecordAssociationReload: Gitlab/AvoidFeatureGet: Enabled: true +RSpec/TimecopFreeze: + Enabled: false + AutoCorrect: true + Include: + - 'spec/**/*.rb' + - 'ee/spec/**/*.rb' + - 'qa/spec/**/*.rb' + Naming/PredicateName: Enabled: true Exclude: @@ -509,3 +527,24 @@ Cop/PutGroupRoutesUnderScope: Include: - 'config/routes/group.rb' - 'ee/config/routes/group.rb' + +Migration/ComplexIndexesRequireName: + Exclude: + - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/ + - !ruby/regexp /\Adb\/(post_)?migrate\/20200[1-7].*\.rb\z/ + +Migration/ReferToIndexByName: + Exclude: + - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/ + - !ruby/regexp /\Adb\/(post_)?migrate\/20200[1-7].*\.rb\z/ + - !ruby/regexp /\Aee\/db\/geo\/(post_)?migrate\/201.*\.rb\z/ + +Migration/CreateTableWithForeignKeys: + # Disable this cop for all the existing migrations + Exclude: + - !ruby/regexp /\Adb\/(?:post_)?migrate\/(?:201[0-9]\d+|20200[0-8][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])_.+\.rb\z/ + +Gitlab/RailsLogger: + Exclude: + - 'spec/**/*.rb' + - 'ee/spec/**/*.rb' |