Dependent blocks linter
ActionsTags
(2)GitHub Action for mennanov/blockwatch linter.
Add the following to your workflow .yml file:
jobs:
blockwatch:
runs-on: ubuntu-latest
steps:
- uses: mennanov/blockwatch-action@v1
with:
# Optional: pass extensions to blockwatch, comma-separated key=value or on new lines
extensions: "foo=bar,baz=qux"
# Optional: Validators to enable (comma separated)
enable: "keep-sorted,keep-unique"
# Optional: Validators to disable (comma separated), can't be used with "enable"
# disable: "check-ai"
# Optional: Glob patterns for files to ignore (comma separated)
ignore: "target/**,dist/**"
# Optional: Glob patterns for files to check (comma separated)
# If provided, blockwatch will run on these files in addition to the diff
globs: "**/*.md,**/*.yml"
# Optional: control git diff pathspecs, e.g. exclude .github directory
# Works like: git diff --patch ... -- ':(exclude).github/'
# You can provide multiple space-separated pathspecs/options
diff_pathspec: ":(exclude).github/ :(exclude)docs/"act -W .github/workflows/local-test.ymlDependent blocks linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.