From 7c580556319658daae5a77b252e83bfc54305e64 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 13 Dec 2018 15:46:01 +0100 Subject: 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. --- .rubocop.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.rubocop.yml') 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/**/*' -- cgit v1.2.1