Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: LLVM
IndentWidth: 2
3 changes: 3 additions & 0 deletions .github/linters/.commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
extends:
- '@commitlint/config-conventional'
7 changes: 7 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
MD007: # Unordered list indentation
indent: 2 # Consider disable MD005 if things fail on ordered list
MD013: # Line length 80 is far to short
line_length: 999 # We allow soft wrapped paragraphs and raw code outputs
MD029: false # Ordered list item prefix
MD033: false # Allow inline HTML
9 changes: 9 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: relaxed

rules:
line-length:
max: 128
indentation:
spaces: 2
indent-sequences: true
50 changes: 50 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: super-linter

on:
pull_request:
branches: [main]

permissions: {}

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Checkout with history
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Work around super-linter
shell: bash
run: |
# Work-around for config file detection
cp .github/linters/.commitlintrc.yml .commitlintrc.yml
# Work-around for SHA detection
# https://github.com/super-linter/super-linter/issues/6316#issuecomment-2510205626
if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
echo 'GITHUB_BEFORE_SHA=${{ github.event.pull_request.base.sha }}' >> "${GITHUB_ENV}"
fi

- name: Run super-linter
uses: super-linter/super-linter/slim@v7.2.0
env:
# super-linter configurations
MULTI_STATUS: false
SUPPRESS_POSSUM: true
VALIDATE_ALL_CODEBASE: false
# language configurations
VALIDATE_CLANG_FORMAT: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
# misc configurations
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
VALIDATE_GIT_COMMITLINT: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
Loading