Exclude plugins from RuboCop checks

Exclude plugins from RuboCop checks

Since official plugins are now in the discourse_test image, rubocop catches issues in plugins.

This is a temporary measure.

diff --git a/.rubocop.yml b/.rubocop.yml
index 5c99bdc..8f24c3f 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -7,6 +7,7 @@ AllCops:
     - 'vendor/**/*'
     - 'node_modules/**/*'
     - 'public/**/*'
+    - 'plugins/**/*'
 
 # Prefer &&/|| over and/or.
 Style/AndOr:

GitHub sha: 73bce82c

1 Like

Do you have a plan of how to re-introduce this @pmusaraj? It currently means that plugin continuous-integration skips rubocop linting.

Could we pass the exclusion as a flag specifically for the core tests in discourse_test?

2 Likes

Thanks for the reminder. I will go over the official plugins and make the necessary changes so we can just flip this back on everywhere.

2 Likes