summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-19 00:49:28 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-19 00:49:28 +0000
commit8baddf11bc59d6cffc0a3119fe11b290ff714664 (patch)
tree3f309edfbfa916a65a3cf9e393dced2fac2c803e /doc
parentdd55d8f7e71620c1c8e85f765ac124d71acaed20 (diff)
downloadredmine-8baddf11bc59d6cffc0a3119fe11b290ff714664.tar.gz
redmine-8baddf11bc59d6cffc0a3119fe11b290ff714664.zip
Add RuboCop to enforce some styles (#31509).
Patch by Marius BALTEANU and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18259 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'doc')
-rw-r--r--doc/RUNNING_TESTS9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/RUNNING_TESTS b/doc/RUNNING_TESTS
index edd39be4e..12a3167c0 100644
--- a/doc/RUNNING_TESTS
+++ b/doc/RUNNING_TESTS
@@ -71,3 +71,12 @@ https://sites.google.com/a/chromium.org/chromedriver/
Capybara tests can be run with:
`rails test:system`
+
+Running RuboCop, a static code analyzer
+=======================================
+
+RuboCop allows you to find out if the code violates the Ruby Style Guide.
+Checking with RuboCop is recommended when you write patches.
+
+You can run RuboCop with:
+`bundle exec rubocop [file ...]`