summaryrefslogtreecommitdiffstats
path: root/doc/RUNNING_TESTS
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-04-29 04:17:01 +0000
committerGo MAEDA <maeda@farend.jp>2020-04-29 04:17:01 +0000
commit9f1b772f3f53be2a31901036661fa06c4cf72d6d (patch)
treee77cdc87a21a278151bbec0d95483c6d0f1bddab /doc/RUNNING_TESTS
parent3986b6e3b95e3be673735c81ecb996c4c67686fc (diff)
downloadredmine-9f1b772f3f53be2a31901036661fa06c4cf72d6d.tar.gz
redmine-9f1b772f3f53be2a31901036661fa06c4cf72d6d.zip
Adds Stylelint to lint CSS files (#32888).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'doc/RUNNING_TESTS')
-rw-r--r--doc/RUNNING_TESTS13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/RUNNING_TESTS b/doc/RUNNING_TESTS
index 12a3167c0..983b79107 100644
--- a/doc/RUNNING_TESTS
+++ b/doc/RUNNING_TESTS
@@ -80,3 +80,16 @@ Checking with RuboCop is recommended when you write patches.
You can run RuboCop with:
`bundle exec rubocop [file ...]`
+
+Running Stylelint, a static code analyzer for CSS files
+=======================================
+
+You need to have NodeJS and Yarn installed and available in your PATH:
+https://nodejs.org/en/download/package-manager/
+https://legacy.yarnpkg.com/lang/en/docs/install/#mac-stable
+
+Install Stylelint:
+`yarn install`
+
+You can run Stylelint with:
+`node_modules/.bin/stylelint "public/stylesheets/**/*.css"`