New line method updated #30
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: Lint code | |
on: | |
push: | |
branches-ignore: [master] | |
pull_request: | |
branches-ignore: [master] | |
jobs: | |
build: | |
name: Lint Code Base | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check source code files for Unicode and CRLF | |
run: | | |
set -e | |
find . -type f -size +0c -regex '.*\.\(py\|yaml\|yml\|txt\|h\|c\|sh\)' -print0 | xargs -0 file | grep -P '^(?!.*ASCII)|CRLF' || exit 0 | |
exit 1 | |
- name: Check shell scripts for x-bit | |
run: | | |
set -e | |
find . -type f -name \*.sh \! -perm -1 -print0 | xargs -0 grep . || exit 0 | |
exit 1 | |
- name: Lint code | |
uses: super-linter/super-linter/slim@v5 | |
env: | |
VALIDATE_ALL_CODEBASE: true | |
DEFAULT_BRANCH: develop | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_ANSIBLE: false | |
VALIDATE_EDITORCONFIG: false | |
VALIDATE_PYTHON_BLACK: false | |
VALIDATE_JSCPD: false | |
VALIDATE_CPP: false | |
VALIDATE_NATURAL_LANGUAGE: false | |
VALIDATE_CLANG_FORMAT: false | |
VALIDATE_GITHUB_ACTIONS: false | |
FILTER_REGEX_EXCLUDE: (attic/.*|\.github/workflows/.*\.yml|assets/vscode/\.vscode/.*\.json) | |
- name: Install codespell | |
run: pip install codespell tomli | |
- name: Run codespell | |
run: codespell | |
# - name: Install markdown-lint-check | |
# run: npm install -g markdown-link-check | |
# | |
# - name: Run markdown-lint-check | |
# run: find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -a 0 -p -v -r |