summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 16:34:45 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-23 09:32:42 -0600
commit0a5b670a9392f7f8c02e83f1c2e3ed4d2d67cfde (patch)
treeee9c8d00cbaf8920eb274abe688d4e44a4591c4e /.rubocop.yml
parent32a7041030dcb95d9476b3cbcc5d3c036aae81f3 (diff)
downloadgitlab-ce-0a5b670a9392f7f8c02e83f1c2e3ed4d2d67cfde.tar.gz
Exclude migrations from Style/MutableConstant
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 2a8c30eff3f..1850c31e344 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -354,6 +354,9 @@ Style/MultilineTernaryOperator:
# mutable literal (e.g. array or hash).
Style/MutableConstant:
Enabled: true
+ Exclude:
+ - 'db/migrate/**/*'
+ - 'db/post_migrate/**/*'
# Favor unless over if for negative conditions (or control flow or).
Style/NegatedIf: