From: Antoine Musso Date: Wed, 5 Nov 2014 10:34:57 +0000 (+0100) Subject: Make rubocop ignore remote repositories X-Git-Tag: 1.31.0-rc.0~13382 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=185ab697973357eae89b8979c83477ed142861df 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 --- 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/**/*'