diff --git a/.github/super-linter.env b/.github/super-linter.env index e92b53a..3f242c6 100644 --- a/.github/super-linter.env +++ b/.github/super-linter.env @@ -1,3 +1,4 @@ +DEFAULT_BRANCH=main LINTER_RULES_PATH=/ VALIDATE_ALL_CODEBASE=true IGNORE_GITIGNORED_FILES=true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cca487..aab21ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: push jobs: build_acap: - name: Build ACAPs + name: Build ACAP applications runs-on: ubuntu-latest env: DEBIAN_FRONTEND: noninteractive diff --git a/LINT.md b/LINT.md index e2bc76c..3a615d4 100644 --- a/LINT.md +++ b/LINT.md @@ -22,7 +22,7 @@ docker run --rm \ -v "$PWD":/tmp/lint \ -e RUN_LOCAL=true \ --env-file .github/super-linter.env \ - ghcr.io/super-linter/super-linter:slim-v5 + ghcr.io/super-linter/super-linter:slim-v6 ``` ## Run super-linter interactively @@ -36,7 +36,7 @@ docker run -it --rm \ -w /tmp/lint \ --env-file .github/super-linter.env \ --entrypoint /bin/bash \ - ghcr.io/super-linter/super-linter:slim-v5 + ghcr.io/super-linter/super-linter:slim-v6 ``` Then from the container terminal, the following commands can lint the the code @@ -47,10 +47,10 @@ base for different file types: find "$PWD" \( -iname \*.c -or -iname \*.h \) -exec clang-format --dry-run --Werror --verbose {} + # Lint Dockerfile files -hadolint $(find -type f -name Dockerfile*) +hadolint $(find -type f -name Dockerfile\*) # Lint Dockerfile files (alternative command) -find -type f -name Dockerfile* -exec hadolint {} + +find -type f -name Dockerfile\* -exec hadolint {} + # Lint JSON files eslint --no-eslintrc -c /action/lib/.automation/.eslintrc.yml --ext .json .