diff --git a/.envrc b/.envrc index aef1a86..72c9bb4 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 +# shellcheck shell=bash # Activate development environment # Install direnv: https://direnv.net/ diff --git a/.machine_readable/scripts/maintenance/maint-assault.sh b/.machine_readable/scripts/maintenance/maint-assault.sh index f170cab..0d76c5c 100644 --- a/.machine_readable/scripts/maintenance/maint-assault.sh +++ b/.machine_readable/scripts/maintenance/maint-assault.sh @@ -31,10 +31,10 @@ fi echo "Initiating full assault on $BINARY_NAME..." mkdir -p "$(dirname "$REPORT_PATH")" -"$PA_BIN" assault "target/release/$BINARY_NAME" - --source . - --intensity medium - --duration 10 +"$PA_BIN" assault "target/release/$BINARY_NAME" \ + --source . \ + --intensity medium \ + --duration 10 \ --output "$REPORT_PATH" echo "" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66bce51..f2901d2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,26 +11,31 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml + # devcontainer.json is JSONC by specification, not strict JSON. + # Separate JSONC-aware validation is required for this path. - id: check-json + exclude: '^\.devcontainer/devcontainer\.json$' - id: check-toml - id: check-merge-conflict - id: detect-private-key - id: check-added-large-files args: ['--maxkb=1024'] - # --- A2ML manifest validation --- - - repo: https://github.com/hyperpolymath/a2ml-pre-commit - rev: main + # Use the checked-in validators also run by the Dogfood Gate. + - repo: local hooks: - id: validate-a2ml name: Validate A2ML manifests - - # --- K9 contract validation --- - - repo: https://github.com/hyperpolymath/k9-pre-commit - rev: main - hooks: + entry: bash .githooks/validate-a2ml.sh + language: system + pass_filenames: false + files: '\.a2ml$' - id: validate-k9 name: Validate K9 contracts + entry: bash .githooks/validate-k9.sh + language: system + pass_filenames: false + files: '\.k9(\.ncl)?$' # --- Shell linting --- - repo: https://github.com/shellcheck-py/shellcheck-py