Skip to content

Commit c67d943

Browse files
ci: introduce new linter
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
1 parent 2d192fe commit c67d943

7 files changed

Lines changed: 15 additions & 316 deletions

File tree

.github/linters/.editorconfig-checker.json renamed to .github/linter/editorconfig_checker.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"Exclude": [
88
"src/lang-rust/data/lldb_prettifier\\.py\\.txt$"
99
],
10-
"AllowedContentTypes": [],
11-
"PassedFiles": [],
1210
"Disable": {
1311
"EndOfLine": false,
1412
"Indentation": false,

.github/linters/.markdown-lint.yml

Lines changed: 0 additions & 293 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
---
2-
name: Linting
2+
name: Lint
3+
run-name: Lint
34

45
on: # yamllint disable-line rule:truthy
56
workflow_dispatch:
67
push:
78
branches: [ main ]
89
pull_request:
10+
branches: [ '**' ]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
915

1016
permissions:
1117
contents: read
12-
packages: read
13-
statuses: write
1418

1519
jobs:
16-
linting:
20+
lint:
1721
name: Lint
1822
runs-on: ubuntu-latest
1923

2024
steps:
2125
- name: Checkout
2226
uses: actions/checkout@v6
2327
with:
24-
# super-linter needs the full git history to get the
25-
# list of files that changed across commits
26-
fetch-depth: 0
2728
persist-credentials: false
2829

2930
- name: Run Linter
30-
uses: super-linter/super-linter/slim@v8
31-
env:
32-
LOG_LEVEL: NOTICE
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
SUPPRESS_POSSUM: true
35-
VALIDATE_ALL_CODEBASE: true
36-
37-
VALIDATE_EDITORCONFIG: true
38-
VALIDATE_GITHUB_ACTIONS: true
39-
VALIDATE_GITHUB_ACTIONS_ZIZMOR: true
40-
VALIDATE_MARKDOWN: true
41-
VALIDATE_YAML: true
31+
uses: georglauterbach/linter@v0.2.0
32+
with:
33+
editorconfig_checker_config: .github/linter/editorconfig_checker.json

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
name: Releasing
2+
name: Release
3+
run-name: Release
34

45
on: # yamllint disable-line rule:truthy
56
workflow_dispatch:

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
name: Testing
2+
name: Test
3+
run-name: Test
34

45
on: # yamllint disable-line rule:truthy
56
workflow_dispatch:

0 commit comments

Comments
 (0)