Skip to content

Commit

Permalink
chore: try super-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Dec 7, 2023
1 parent 4f91b6a commit 11fe8f1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 15 deletions.
10 changes: 8 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ indent_size = 4
[*.{yaml,yml}]
trim_trailing_whitespace = false

[helm/api-platform/**.yaml]
[.hadolint.yaml]
indent_size = 2

[.github/workflows/*.yml]
[.markdown-lint.yaml]
indent_size = 2

[helm/api-platform/**.{yaml,yml}]
indent_size = 2

[.github/**.{yaml,yml}]
indent_size = 2

[.gitmodules]
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,3 @@ jobs:
with:
name: playwright-screenshots
path: pwa/test-results

lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Lint Dockerfiles
uses: hadolint/[email protected]
with:
recursive: true
30 changes: 30 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint Code Base
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MARKDOWN_CONFIG_FILE: .markdown-lint.yaml
6 changes: 6 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
ignored:
- DL3006
- DL3008
- DL3018
- DL3022
4 changes: 4 additions & 0 deletions .markdown-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
no-hard-tabs: false
MD013: false
MD033: false

0 comments on commit 11fe8f1

Please sign in to comment.