-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
103 additions
and
66 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,28 +3,29 @@ name: Lint | |
on: [pull_request] | ||
|
||
jobs: | ||
markdownlint: | ||
name: 🧹 Markdown Lint | ||
runs-on: ubuntu-18.04 | ||
merge-conflict: | ||
name: Merge Conflict | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- run: npm install -g [email protected] | ||
- run: markdownlint '**/*.md' --ignore node_modules | ||
shellcheck: | ||
name: 🧹 Shellcheck | ||
- name: Check merge conflict | ||
run: grep "^<<<<<<< HEAD" $(git ls-files | xargs) && exit 1 || true | ||
misspell: | ||
name: Check Spelling | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@master | ||
yamllint: | ||
name: 🧹 YAML Lint | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Install | ||
run: | | ||
wget -O - -q https://git.io/misspell | sh -s -- -b . | ||
- name: Misspell | ||
run: | | ||
git ls-files --empty-directory | xargs ./misspell -error | ||
trailing-whitespace: | ||
name: Trailing whitespace | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: yaml-lint | ||
uses: ibiqlik/action-yamllint@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Check for trailing whitespace | ||
run: "! git grep -EIn $'[ \t]+$'" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Lint Code Base | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: GitHub Super Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: github/super-linter@v3 | ||
env: | ||
ERROR_ON_MISSING_EXEC_BIT: true | ||
VALIDATE_BASH: true | ||
# VALIDATE_BASH_EXEC: true | ||
# VALIDATE_EDITORCONFIG: true | ||
VALIDATE_MARKDOWN: true | ||
VALIDATE_YAML: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,43 @@ | ||
--- | ||
default_stages: [commit, push] | ||
default_language_version: | ||
# force all unspecified Python hooks to run python3 | ||
python: python3 | ||
minimum_pre_commit_version: "1.20.0" | ||
repos: | ||
- repo: local | ||
- repo: meta | ||
hooks: | ||
- id: identity | ||
- id: check-hooks-apply | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 2.1.5 | ||
hooks: | ||
- id: shellcheck | ||
# - repo: git://github.com/Lucas-C/pre-commit-hooks | ||
# rev: v1.1.9 | ||
# hooks: | ||
# - id: forbid-tabs | ||
# - id: remove-tabs | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.27.1 | ||
hooks: | ||
- id: markdownlint | ||
name: Run markdownlint | ||
description: "Checks the style of Markdown files." | ||
entry: markdownlint | ||
language: node | ||
types: [markdown] | ||
files: \.(md|mdown|markdown)$ | ||
additional_dependencies: ['markdownlint-cli'] | ||
entry: markdownlint -c .github/linters/.markdown-lint.yml . | ||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.26.1 | ||
hooks: | ||
- id: yamllint | ||
name: Check YAML files with yamllint | ||
entry: yamllint --strict -c .github/linters/.yaml-lint.yml . | ||
types: [yaml] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
theme: jekyll-theme-leap-day | ||
theme: jekyll-theme-leap-day |
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
Empty file.