diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-04-01 18:55:46 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-04-01 18:55:46 +0300 |
commit | 700e8d1917462f509e430f78f7effca8df56bdba (patch) | |
tree | e1589388079b1a7f6b3302171edbc9c767730abc /.rubocop.yml | |
parent | f87ff7af538a6ac559217a4c7cfa0fd75f247fd6 (diff) | |
parent | 98a5976b787fad0797bc5e3231c48ab3f400bce6 (diff) |
Merge branch 'enable-rubocop-application-record' into 'master'
Document ApplicationRecord / pluck_primary_key
Closes #59690
See merge request gitlab-org/gitlab-ce!26764
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 9143966b864..648d59e8062 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -146,6 +146,20 @@ Naming/FileName: - XSS - GRPC +Rails/ApplicationRecord: + Enabled: true + Exclude: + # Models in database migrations should not subclass from ApplicationRecord + # as they need to be as decoupled from application code as possible + - db/**/*.rb + - lib/gitlab/background_migration/**/*.rb + - lib/gitlab/database/**/*.rb + - spec/**/*.rb + - ee/db/**/*.rb + - ee/lib/gitlab/background_migration/**/*.rb + - ee/lib/ee/gitlab/background_migration/**/*.rb + - ee/spec/**/*.rb + # GitLab ################################################################### Gitlab/ModuleWithInstanceVariables: |