summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-12-13 15:46:01 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2018-12-13 16:09:21 +0100
commit7c580556319658daae5a77b252e83bfc54305e64 (patch)
tree9aa96540e79e73161fc08959c9b4dfd55295bc55 /.rubocop.yml
parent81ddb69255f36bccd79c714a2c12d542cf782f8d (diff)
downloadgitlab-ce-7c580556319658daae5a77b252e83bfc54305e64.tar.gz
Added Cop for injecting EE modules
This Cop enforces the rule that injecting EE modules (using prepend, include, or extend) is done by placing the injection on the last line of a file, instead of somewhere in the middle. By placing these lines at the very end, merge conflicts will not happen.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 741403af009..004449210e5 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -174,3 +174,9 @@ GitlabSecurity/PublicSend:
- 'ee/db/**/*'
- 'ee/lib/**/*.rake'
- 'ee/spec/**/*'
+
+Cop/InjectEnterpriseEditionModule:
+ Enabled: true
+ Exclude:
+ - 'spec/**/*'
+ - 'ee/spec/**/*'