Vadim Zeitlin
d81d7b1563
Exclude .gitmodules from whitespace code style checks
...
This file uses TABs and can keep using them.
2021-07-17 20:41:18 +02:00
Vadim Zeitlin
4ec8f8a221
Exclude Xcode project files from whitespace style checks
...
These files contain TABs and didn't pass the check and, of course, we're
not interested in the style in which they're written anyhow.
2021-03-15 11:36:46 +01:00
Maarten Bent
36ab71301c
Add CI check for mixed line endings
...
Trigger workflow on all file changes.
Closes https://github.com/wxWidgets/wxWidgets/pull/2224
2021-02-09 22:17:13 +01:00
Vadim Zeitlin
96eb09a383
Really ignore TABs in makefiles etc in the whitespace check
...
Add missing ":" in the beginning of Git pathspecs to make the exclusions
really work.
Also add entries for Makefile.in, which is not caught by **/*akefile*,
and other files in the root directory containing hard TABs.
2020-10-06 02:14:46 +02:00
Vadim Zeitlin
5358dd7007
Add a check for trailing whitespace and TABs
...
Just use Git itself to check for it in the new files.
2020-09-28 03:24:44 +02:00
Vadim Zeitlin
90ac5eeb6a
Let shell expands $HOME in GitHub workflow
...
Apparently $HOME doesn't get expanded otherwise, resulting in "codespell
not found" error.
2020-07-18 19:49:21 +02:00
Vadim Zeitlin
e875b11f74
Run codespell from a separate script in GitHub workflow
...
This allows to give a more detailed error message in case of a problem
and also makes it simpler to run the spell check locally.
2020-07-18 19:42:48 +02:00
Vadim Zeitlin
0744cd14a1
Try using Python 3 for codespell
...
Running it using Python 2 seems to result in a problem with not matching
an exclusion line with non-ASCII character, which works fine with Python
3 locally.
2020-07-13 17:38:01 +02:00
Vadim Zeitlin
77e1e6330b
Run codespell from where it is installed by pip
...
And disable the (useful) warning about this directory not being in PATH.
2020-07-13 17:35:30 +02:00
Vadim Zeitlin
d432b1a685
Try installing codespell 1.17.1 via pip
...
The 1.16 version available in Ubuntu 20.04 doesn't work nearly as well
as the latest one.
2020-07-13 17:30:47 +02:00
Vadim Zeitlin
1fcdaa7f22
Combine all values of codespell --skip option into one
...
codespell 1.17.1 from Debian Sid accepts multiple -S options, but 1.16
in Ubuntu 20.04 doesn't seem to like them.
2020-07-13 17:25:18 +02:00
Vadim Zeitlin
e4a826d250
Add GitHub workflow checking spelling for headers and docs
...
Run codespell using GitHub Actions to flag any new spelling errors.
2020-07-13 17:19:26 +02:00