File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 - << : *bundle_install
7373 - << : *install_linters
7474
75+ - run :
76+ name : Running commit linters
77+ command : lefthook run commit-linters
78+
7579 - run :
7680 name : Running code style linters
7781 command : lefthook run code-style-linters
Original file line number Diff line number Diff line change 1+ ---
2+
3+ enableGlobDot : true
4+
5+ patterns :
6+ - name : GithubUser
7+ pattern : /\[@.+\]/gmx
8+
9+ languageSettings :
10+ - languageId : markdown
11+ ignoreRegExpList :
12+ - Email
13+ - GithubUser
14+
15+ words :
16+ - bagage
17+ - bagages
18+ - bestwebua
19+ - changeloglint
20+ - codebases
21+ - codeclimate
22+ - commitspell
23+ - ffaker
24+ - gemspecs
25+ - hostnames
26+ - lefthook
27+ - markdownlint
28+ - mocktools
29+ - mdlrc
30+ - punycode
31+ - rubocop
32+ - representer
33+ - rset
34+ - shortcuting
35+ - simplecov
36+ - simpleidn
37+ - stdlib
38+ - smtpmock
39+ - yamlint
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ no_tty: true
44skip_output :
55 - meta
66
7+ commit-linters :
8+ commands :
9+ commitspell :
10+ run : .circleci/scripts/commitspell.sh -c '.circleci/linter_configs/.commitspell.yml'
11+
712code-style-linters :
813 commands :
914 reek :
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ configuration=$( if [ " $2 " = " " ]; then echo " $2 " ; else echo " $1 $2 " ; fi)
5+ latest_commit=$( git rev-parse HEAD)
6+
7+ spellcheck_info () {
8+ echo " Checking the spelling of the latest commit ($latest_commit ) message..."
9+ }
10+
11+ compose_cspell_command () {
12+ echo " cspell-cli lint stdin$configuration "
13+ }
14+
15+ cspell=" $( compose_cspell_command) "
16+
17+ spellcheck_latest_commit () {
18+ git log -1 --pretty=%B | $cspell
19+ }
20+
21+ spellcheck_info
22+ spellcheck_latest_commit
You can’t perform that action at this time.
0 commit comments