diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..f4edc74b --- /dev/null +++ b/.clang-format @@ -0,0 +1,2 @@ +BasedOnStyle: LLVM +IndentWidth: 2 diff --git a/.commitlintrc.yml b/.commitlintrc.yml new file mode 100644 index 00000000..331abd4e --- /dev/null +++ b/.commitlintrc.yml @@ -0,0 +1,2 @@ +extends: + - @commitlint/config-conventional diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 00000000..f92cf260 --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,41 @@ +name: super-linter + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +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: Run super-linter + uses: super-linter/super-linter@v7.2.0 + env: + VALIDATE_ALL_CODEBASE: false # only check new or edited files + # language configurations + VALIDATE_CLANG_FORMAT: true + VALIDATE_GIT_COMMITLINT: true + VALIDATE_MARKDOWN: true + VALIDATE_YAML: true + # misc configurations + CREATE_LOG_FILE: true + ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true + VALIDATE_GITHUB_ACTIONS: true + VALIDATE_GITLEAKS: true + + - name: Upload log file + uses: actions/upload-artifact@v4 + with: + path: super-linter.log diff --git a/.markdown-lint.yml b/.markdown-lint.yml new file mode 100644 index 00000000..f956ebef --- /dev/null +++ b/.markdown-lint.yml @@ -0,0 +1,6 @@ +MD007: + indent: 2 # Unordered list indentation +MD013: + line_length: 999 # Line length 80 is far to short. We allow soft wrapped paragraphs and raw code outputs +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML diff --git a/.yaml-lint.yml b/.yaml-lint.yml new file mode 100644 index 00000000..2b8723a8 --- /dev/null +++ b/.yaml-lint.yml @@ -0,0 +1,6 @@ +extends: relaxed + +rules: + indentation: + spaces: 2 + indent-sequences: true