Guidelines: Clarify rules for deprecations (#1309) #2393
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Style Checks | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Check file endings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
disallowedFiles=`find data/ -type f -not -iname "*.json" -not -iname "*.md"` | |
for f in $disallowedFiles | |
do | |
echo "::error file=$f::File $f is not a .json or .md file." | |
done | |
if [ ! -z "$disallowedFiles" ]; then exit 1; fi | |
prettier: | |
name: Check for code formatting mistakes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- run: npm clean-install | |
- run: npm run lint | |
codespell: | |
name: Check for spelling errors | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: codespell-project/actions-codespell@master | |
with: | |
check_filenames: true | |
skip: ./.git,./dist,./data/deprecated.json,./data/discarded.json | |
ignore_words_list: "auxilary,casette,cemetary,chancel,discus,extentions,faiway,generat,goverment,guerilla,guyser,kindergarden,ore,pavillion,sculpter,storys,linz,te" | |
only_warn: 1 |