@@ -37,19 +37,16 @@ references:
3737 command : |
3838 bundle exec smtp_mock -s -i ~
3939
40- install_yamllint : &install_yamllint
40+ install_linters : &install_linters
4141 run :
42- name : Installing Yamllint
43- command : |
44- sudo apt-get update -y
45- sudo apt-get install -y yamllint
46-
47- install_lefthook : &install_lefthook
48- run :
49- name : Installing Lefthook
42+ name : Installing bunch of linters
5043 command : |
5144 curl -1sLf 'https://dl.cloudsmith.io/public/evilmartians/lefthook/setup.deb.sh' | sudo -E bash
52- sudo apt-get install -y lefthook
45+ sudo apt-get update -y
46+ sudo apt-get install -y lefthook shellcheck yamllint
47+ npm install --prefix='~/.local' --global --save-dev git+https://github.com/streetsidesoftware/cspell-cli markdownlint-cli
48+ cp .circleci/linter_configs/.fasterer.yml .fasterer.yml
49+ cp .circleci/linter_configs/.lefthook.yml lefthook.yml
5350
5451 install_codeclimate_reporter : &install_codeclimate_reporter
5552 run :
@@ -83,24 +80,24 @@ jobs:
8380 - << : *restore_bundle_cache
8481 - << : *bundle_install
8582 - << : *save_bundle_cache
86- - << : *install_yamllint
87- - << : *install_lefthook
83+ - << : *install_linters
8884
8985 - run :
9086 name : Running code style linters
9187 command : lefthook run code-style-linters
9288
9389 - run :
9490 name : Running code performance linters
95- command : |
96- cp .circleci/linter_configs/.fasterer.yml .fasterer.yml
97- lefthook run code-performance-linters
98- rm .fasterer.yml
91+ command : lefthook run code-performance-linters
9992
10093 - run :
10194 name : Running code vulnerability linters
10295 command : lefthook run code-vulnerability-linters
10396
97+ - run :
98+ name : Running code documentation linters
99+ command : lefthook run code-documentation-linters
100+
104101 tests-ruby :
105102 parameters :
106103 ruby-version :
@@ -186,7 +183,7 @@ workflows:
186183 - linters-ruby :
187184 matrix :
188185 parameters :
189- ruby-version : ["3.1"]
186+ ruby-version : ["3.1-node "]
190187 - tests-ruby :
191188 matrix :
192189 parameters :
0 commit comments