From 185ab697973357eae89b8979c83477ed142861df Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 5 Nov 2014 11:34:57 +0100 Subject: [PATCH] Make rubocop ignore remote repositories The introduction of rubocop (Commit 70f3919) missed blacklisting files which are not part of mediawiki/core. Developers running rubocop against their working copy would end up with errors reported against code which is out of the mediawiki/core repository. Instruct rubocop to ignore some well known paths: Place holders for additional repositories: - extensions - skins - vendor And tests/frontend/node_modules which is populated via npm install. Change-Id: I1abdaa3ef110d981e3c017667f87e698016d6805 --- .rubocop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index cc32da4b99..00479d1357 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1 +1,8 @@ inherit_from: .rubocop_todo.yml + +AllCops: + Exclude: + - 'extensions/**/*' + - 'skins/**/*' + - 'tests/frontend/node_modules/**/*' + - 'vendor/**/*' -- 2.20.1