Skip to content

Commit

Permalink
ci(lint): use super-linter
Browse files Browse the repository at this point in the history
Replace all other linters with super-linter
  • Loading branch information
ttshivers committed Oct 22, 2020
1 parent 6902c4c commit 6c21201
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 53 deletions.
18 changes: 18 additions & 0 deletions .github/markdownlint-problem-matcher.json
@@ -0,0 +1,18 @@

{
"problemMatcher": [
{
"owner": "markdownlint",
"pattern": [
{
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
}
]
}
14 changes: 0 additions & 14 deletions .github/workflows/eclint.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/linter.yml
@@ -0,0 +1,40 @@
name: Lint
on:
pull_request:

jobs:
super-linter:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
- name: Add matchers
run: |
echo "::add-matcher::.github/markdownlint-problem-matcher.json"
- name: Lint Code Base
uses: github/super-linter@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: .*.template

markdownlint:
name: Markdownlint
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1

- name: Run Markdownlint
run: |
echo "::add-matcher::.github/markdownlint-problem-matcher.json"
npm i -g markdownlint-cli
markdownlint "**/*.md"
19 changes: 0 additions & 19 deletions .github/workflows/markdown-link-check.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/shfmt.yml

This file was deleted.

0 comments on commit 6c21201

Please sign in to comment.