33 Commits

Author SHA1 Message Date
Denis Rouzaud
4f3a9f46d2
update Travis to build on Trusty for code layout (#10048)
* update Travis to build on Trusty for code layout

* fix shellcheck replace ! -z by -n

* shellcheck: fix  -n doesn't work with unquoted arguments

* more shellcheck fixes

* use bash instead of posix
2019-05-21 14:13:28 -05:00
Juergen E. Fischer
a823046b5f followup spelling fixes 2018-09-07 00:33:13 +02:00
Denis Rouzaud
5898854e98 copyed -> copied
also fix replacing word in interactive script
2018-07-16 07:10:36 +02:00
Nyall Dawson
e9bb1616a5 Another shellcheck fix 2018-06-21 15:33:29 +10:00
Nyall Dawson
b0aaa9d11a Fix test 2018-06-21 15:33:29 +10:00
Denis Rouzaud
395c13f1f1 fix typo 2018-05-11 10:55:34 -04:00
Denis Rouzaud
b00a60da01 spell check: add ...:…
and a few fixes :)

handle #spellok in shell or cmake files

allow to exclude scripts from search files
2017-08-12 21:13:02 +02:00
Juergen E. Fischer
e6c7421c08 refine spellcheck progress output 2017-08-10 10:16:17 +02:00
Juergen E. Fischer
03e0298f49 msvc warning fixes:
* use AUTORCC to avoid locked qrc_images.cpp during build of gui tests
* bump minimum version of cmake to 3.0.0 for AUTORCC
* suppress some warnings in sip bindings
* suppress unreachable warnings and some more
* split sip files in more parts to suppress warning BK4504
* also remove old WITH_INTERNAL_YAML from travis
2017-08-10 00:09:14 +02:00
Juergen E. Fischer
487a7a00b7 fix 'allows to/allows one to' spell errors and enhance to our spellchecker to deal with those 2017-08-06 17:34:22 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Denis Rouzaud
9accd4b814 [spell check] try do not use thread affinity in silver searcher to avoid errors on Travis 2017-05-18 16:45:10 +02:00
Denis Rouzaud
ffe5e1c255 verbose check spelling test to detect issue on Travis 2017-05-18 10:56:09 +02:00
Larry Shaffer
b3e1aba1cd Use gsed for spellchecking on macOS; ignore inline ‘replys’ spell check 2017-04-29 09:07:24 +02:00
Denis Rouzaud
e23dcc8fef [spell check] avoid multiple replace by adding prev and next char to sed replace command 2017-03-07 11:20:48 +01:00
Denis Rouzaud
e7ea37dbb6 Revert "spell check: replace only words"
This reverts commit 0d7f697572e646500e002b53053cea0a1c201fd9.
2017-03-07 09:55:13 +01:00
Juergen E. Fischer
0d7f697572 spell check: replace only words 2017-03-07 09:43:47 +01:00
Juergen E. Fischer
0d76dff305 spelling fixes 2017-03-06 11:03:28 +01:00
Denis Rouzaud
293e1ee01c fix print spell check progress on Travis to avoid timeouts (followup 6cc58f3869a7f0642a78ee8f379e0b7862292c0b) 2017-02-21 16:00:59 +01:00
Juergen E. Fischer
d766159826 spell check: fix travis condition 2017-02-21 12:44:44 +01:00
Denis Rouzaud
6cc58f3869 print spell check progress on Travis to avoid timeouts 2017-02-21 11:15:29 +01:00
Juergen E. Fischer
07aa5598f2 fix directory detection in check_spelling.sh when pre-commit hook is linked to prepare-commit.sh 2017-02-07 14:49:43 +01:00
Juergen E. Fischer
a64f909474 spelling fixes 2017-01-25 16:53:34 +01:00
Denis Rouzaud
0de00150d1 correctly exit spell check test to make Travis fail 2017-01-25 11:25:27 +01:00
Denis Rouzaud
4175c1e9d2 run spell check on edited files only 2017-01-20 17:54:01 +01:00
Denis Rouzaud
e69263ba2c [spellcheck] improved script 2017-01-20 15:06:09 +01:00
Stéphane Brunner
454383518a don't apply the spell check on all the file if no changes (#4031)
Before that:

$time git commit --amend 2> log
real    7m19.811s
user    49m14.012s
sys     0m16.668s

$ls -lh log
-rw-rw-r-- 1 sbrunner sbrunner 1,8M janv. 20 14:05 log
2017-01-20 14:52:12 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
50e5d97a17 [spellcheck] fix using whole dictionary 2017-01-16 15:12:48 +01:00
Denis Rouzaud
bf22cbfa9d [spellcheck] fix case detection + some fixes 2017-01-16 10:56:42 +01:00
Denis Rouzaud
5679fb0417 [spell check] allow global replace
also fix matching case
2017-01-16 10:30:15 +01:00
Denis Rouzaud
563de37026 [spellcheck] remove unknown split option 2017-01-13 09:07:43 +01:00
Denis Rouzaud
46f786eb52 add interactive mode to spell checking (allow direct replace or ignore) 2017-01-12 20:29:08 +01:00