Make rubocop ignore remote repositories
authorAntoine Musso <hashar@free.fr>
Wed, 5 Nov 2014 10:34:57 +0000 (11:34 +0100)
committerAntoine Musso <hashar@free.fr>
Wed, 5 Nov 2014 10:34:57 +0000 (11:34 +0100)
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

index cc32da4..00479d1 100644 (file)
@@ -1 +1,8 @@
 inherit_from: .rubocop_todo.yml
+
+AllCops:
+    Exclude:
+        - 'extensions/**/*'
+        - 'skins/**/*'
+        - 'tests/frontend/node_modules/**/*'
+        - 'vendor/**/*'