blockwatch-cli 0.19.2__tar.gz → 0.20.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/rust.yml +19 -2
- blockwatch_cli-0.20.0/AGENTS.md +104 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/CHANGELOG.md +34 -0
- blockwatch_cli-0.20.0/CLAUDE.md +104 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/Cargo.lock +1 -1
- blockwatch_cli-0.20.0/Cargo.toml +178 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/PKG-INFO +1 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/README.md +9 -11
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/blockwatch.toml +6 -1
- blockwatch_cli-0.20.0/clippy.toml +15 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/agents.md +7 -9
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/ci.md +3 -3
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/cli.md +12 -11
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/symbols.md +1 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/README.md +1 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/check-lua.md +5 -5
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/setup.py +1 -1
- blockwatch_cli-0.20.0/src/attributes/keyword.rs +26 -0
- blockwatch_cli-0.20.0/src/attributes/line_count.rs +166 -0
- blockwatch_cli-0.20.0/src/attributes/mod.rs +1131 -0
- blockwatch_cli-0.20.0/src/attributes/number.rs +86 -0
- blockwatch_cli-0.20.0/src/attributes/same_as.rs +297 -0
- blockwatch_cli-0.20.0/src/attributes/severity.rs +68 -0
- blockwatch_cli-0.20.0/src/attributes/sort.rs +46 -0
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/attributes}/target_reference.rs +61 -47
- blockwatch_cli-0.20.0/src/blocks/address.rs +82 -0
- blockwatch_cli-0.19.2/src/block_parser.rs → blockwatch_cli-0.20.0/src/blocks/from_comments.rs +281 -251
- blockwatch_cli-0.20.0/src/blocks/mod.rs +753 -0
- blockwatch_cli-0.19.2/src/tag_parser.rs → blockwatch_cli-0.20.0/src/blocks/tags.rs +8 -8
- blockwatch_cli-0.19.2/src/virtual_blocks.rs → blockwatch_cli-0.20.0/src/blocks/virtual_block.rs +78 -47
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/cli}/flags.rs +19 -12
- blockwatch_cli-0.19.2/src/cli.rs → blockwatch_cli-0.20.0/src/cli/mod.rs +39 -74
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/cli}/path_arguments.rs +1 -2
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/config.rs +108 -84
- blockwatch_cli-0.20.0/src/diff/mod.rs +295 -0
- blockwatch_cli-0.20.0/src/diff/target_path.rs +382 -0
- blockwatch_cli-0.19.2/src/diff_parser.rs → blockwatch_cli-0.20.0/src/diff/unified.rs +67 -294
- blockwatch_cli-0.19.2/src/paths_glob.rs → blockwatch_cli-0.20.0/src/fs/glob.rs +1 -0
- blockwatch_cli-0.19.2/src/fs.rs → blockwatch_cli-0.20.0/src/fs/mod.rs +14 -70
- blockwatch_cli-0.20.0/src/fs/path_filter.rs +71 -0
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/bash.rs +16 -18
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/c.rs +26 -31
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/c_sharp.rs +40 -41
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/cmake.rs +5 -7
- blockwatch_cli-0.19.2/src/symbols/code.rs → blockwatch_cli-0.20.0/src/languages/code_symbols.rs +47 -24
- blockwatch_cli-0.20.0/src/languages/comments.rs +499 -0
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/cpp.rs +6 -12
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/css.rs +32 -34
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/dart.rs +57 -57
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/dockerfile.rs +48 -74
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/elixir.rs +5 -7
- blockwatch_cli-0.19.2/src/language_resolver.rs → blockwatch_cli-0.20.0/src/languages/file_names.rs +12 -58
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/go.rs +30 -36
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/graphql.rs +11 -26
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/groovy.rs +8 -10
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/hcl.rs +24 -24
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/html.rs +6 -10
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/java.rs +35 -44
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/javascript.rs +10 -14
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/json.rs +29 -56
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/kotlin.rs +29 -29
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/lean.rs +10 -6
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/lua.rs +5 -7
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/makefile.rs +15 -6
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/markdown.rs +173 -427
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/mdx.rs +20 -32
- blockwatch_cli-0.20.0/src/languages/mod.rs +221 -0
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/nix.rs +5 -7
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/ocaml.rs +5 -11
- blockwatch_cli-0.20.0/src/languages/parsers.rs +800 -0
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/php.rs +60 -69
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/proto.rs +20 -28
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/python.rs +15 -16
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/ruby.rs +6 -10
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/rust.rs +10 -12
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/scala.rs +24 -29
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/sql.rs +5 -7
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/starlark.rs +5 -7
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/swift.rs +33 -33
- blockwatch_cli-0.20.0/src/languages/syntax_tree.rs +168 -0
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/toml.rs +13 -23
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/tsx.rs +9 -11
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/typescript.rs +16 -20
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/xml.rs +15 -17
- {blockwatch_cli-0.19.2/src/language_parsers → blockwatch_cli-0.20.0/src/languages}/yaml.rs +18 -25
- blockwatch_cli-0.20.0/src/lib.rs +75 -0
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/output}/explain.rs +4 -4
- blockwatch_cli-0.20.0/src/output/listing.rs +236 -0
- blockwatch_cli-0.20.0/src/output/mod.rs +64 -0
- blockwatch_cli-0.19.2/src/report.rs → blockwatch_cli-0.20.0/src/output/run_report.rs +9 -9
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/output}/sarif.rs +22 -27
- blockwatch_cli-0.20.0/src/position.rs +93 -0
- blockwatch_cli-0.20.0/src/repo_path.rs +180 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/scan.rs +199 -569
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/settings.rs +30 -80
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/skill.md +1 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/symbols/mod.rs +69 -179
- blockwatch_cli-0.19.2/src/symbol_path.rs → blockwatch_cli-0.20.0/src/symbols/path.rs +2 -2
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/affects.rs +27 -69
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/check_ai.rs +36 -98
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/check_lua.rs +76 -246
- blockwatch_cli-0.20.0/src/validators/context.rs +418 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/keep_sorted.rs +100 -289
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/keep_unique.rs +79 -121
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/line_count.rs +25 -206
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/line_pattern.rs +28 -108
- blockwatch_cli-0.20.0/src/validators/log.rs +122 -0
- blockwatch_cli-0.20.0/src/validators/mod.rs +85 -0
- blockwatch_cli-0.20.0/src/validators/pattern_values.rs +81 -0
- blockwatch_cli-0.20.0/src/validators/run.rs +656 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/validators/same_as.rs +113 -451
- blockwatch_cli-0.20.0/src/validators/targets.rs +167 -0
- blockwatch_cli-0.20.0/src/validators/validator.rs +235 -0
- blockwatch_cli-0.20.0/src/validators/violation.rs +181 -0
- {blockwatch_cli-0.19.2/src → blockwatch_cli-0.20.0/src/validators}/violation_address.rs +20 -10
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/affects.rs +6 -6
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/check_lua.rs +4 -4
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/common/mod.rs +16 -8
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/config.rs +7 -5
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/explain.rs +33 -6
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/general.rs +78 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/keep_sorted.rs +2 -2
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/keep_unique.rs +2 -2
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/list.rs +30 -1
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/path_arguments.rs +2 -2
- blockwatch_cli-0.19.2/AGENTS.md +0 -330
- blockwatch_cli-0.19.2/CLAUDE.md +0 -330
- blockwatch_cli-0.19.2/Cargo.toml +0 -102
- blockwatch_cli-0.19.2/clippy.toml +0 -11
- blockwatch_cli-0.19.2/src/blocks.rs +0 -1395
- blockwatch_cli-0.19.2/src/language_parsers/mod.rs +0 -948
- blockwatch_cli-0.19.2/src/lib.rs +0 -308
- blockwatch_cli-0.19.2/src/repo_path.rs +0 -544
- blockwatch_cli-0.19.2/src/validators/mod.rs +0 -2072
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.agents/.claude-plugin/plugin.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.agents/skills/blockwatch/SKILL.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.claude-plugin/marketplace.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/FUNDING.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/dependabot.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/actions.lock +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/blockwatch.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/codeql.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/lockfile.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/markdownlint.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/pypi.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/release.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/sign-archives.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/site.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/workflows/trusted-checks.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.github/zizmor.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.gitignore +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.markdownlint-cli2.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.pre-commit-config.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/.pre-commit-hooks.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/LICENSE +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/SECURITY.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/codecov.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/demo.gif +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/dist-workspace.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/affects.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/check-ai.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/keep-sorted.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/keep-unique.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/line-count.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/line-pattern.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/docs/validators/same-as.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/pypi/pyproject.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/pyproject.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/release.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/scripts/check_language_count.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/scripts/check_latest_gpt_nano_model.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/src/main.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/check_ai.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/common/empty.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/encoding.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/line_count.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/line_pattern.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/repository_root.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/same_as.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/sarif.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/skill.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/suppressions.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/symbol_references.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/cross_file_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/cross_file_target.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/dangling.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/missing_symbol.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/more_added_than_deleted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/multiline_tag_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/multiline_tag_target.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/nested_mapping_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/nested_mapping_target.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/sibling.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/symbol_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/symbol_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/table_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/table_target.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/tag_and_content_source.ts +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/tag_and_content_target.ts +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/whole_file_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/affects/whole_file_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_ai/two_blocks.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/affects.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/affects.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/affects_drift.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/blocking_io.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/blocking_io.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/echo.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/fail.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/mode.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/os.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/pathfmt/report_path.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/pathfmt/source.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/pattern.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/pattern_many_matches.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/pattern_no_match.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/success.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/check_lua/success_and_failure.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/glob_target/config.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/glob_target/package.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/glob_target/plugins/blue/package.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/glob_target/plugins/green/package.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/glob_target/plugins/red/package.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/target_if_patterns/config.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/target_if_patterns/services/a/.env +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/target_if_patterns/services/b/.env +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/target_if_symbol_change/a.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/config/target_if_symbol_change/config.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/explain/a.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/explain/check.lua +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/block_selection.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/custom_file_extension.javascript +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/custom_file_extension.python +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/disable_enable.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/paths/invalid.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/paths/subdir/nested_invalid.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/paths/valid.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/general/severity.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/hidden/.github/workflows/ci.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/keep_sorted/orderings.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/keep_unique/basic_and_pattern.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/line_count/equality_and_greater_than.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/line_pattern/forbidden_text.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/line_pattern/hex_and_word_patterns.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/list/.hg/.gitkeep +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/list/a.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/list/b.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/positions/unicode_columns.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/package.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/paths/alpha/item.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/paths/beta/item.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/paths_and_block_source.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/paths_source.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/sibling.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/split_table_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/split_table_target.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/symbol_mismatch_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/symbol_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/target.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/whole_file_mismatch_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/whole_file_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/same_as/whole_file_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/sarif/advisory.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/sarif/clean.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/sarif/sorted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/sarif/unnamed.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg_gone_a.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg_gone_b.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg_lowercase_trailer.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg_malformed.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/commit_msg_with_noise.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/dangling.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/sorted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/symbol.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/symbol_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/two_rules.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/suppressions/unnamed.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/Dockerfile +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/Makefile +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/bzl_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/bzl_target.bzl +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/c_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/c_target.c +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/cpp_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/cpp_target.cpp +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/cs_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/cs_target.cs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/csproj_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/csproj_target.csproj +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/css_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/css_target.css +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/dart_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/dart_target.dart +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/dockerfile_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/escapes_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/escapes_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/filter_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/filter_target.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/go_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/go_target.go +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/h_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/h_target.h +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/hcl_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/hcl_target.hcl +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/java_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/java_target.java +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/js_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/js_target.js +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/json_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/json_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/jsonc_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/jsonc_target.jsonc +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/kt_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/kt_target.kt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/kts_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/kts_target.kts +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/makefile_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/markdown_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/markdown_target.markdown +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/md_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/md_target.md +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/mdx_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/mdx_target.mdx +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/mixed_list_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/mixed_list_target.json +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/nomad_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/nomad_target.nomad +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/php_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/php_target.php +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/phtml_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/phtml_target.phtml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/proto_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/proto_target.proto +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/py_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/py_target.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/rs_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/rs_target.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/sh_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/sh_target.sh +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/swift_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/swift_target.swift +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tf_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tf_target.tf +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tfvars_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tfvars_target.tfvars +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tofu_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tofu_target.tofu +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/toml_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/toml_target.toml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/ts_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/ts_target.ts +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tsx_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/tsx_target.tsx +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/xml_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/xml_target.xml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/yaml_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/yaml_target.yaml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/yml_source.rs +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/symbol_references/yml_target.yml +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/affects/pair.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/clean/counted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/clean/noop.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/clean/notes.txt +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/clean/sorted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/diff/two_blocks.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/failing/unsorted.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/testdata/verbosity/mixed/both_kinds.py +0 -0
- {blockwatch_cli-0.19.2 → blockwatch_cli-0.20.0}/tests/verbosity.rs +0 -0
|
@@ -2,8 +2,6 @@ name: Rust
|
|
|
2
2
|
|
|
3
3
|
permissions:
|
|
4
4
|
contents: read
|
|
5
|
-
id-token: write
|
|
6
|
-
pull-requests: write
|
|
7
5
|
|
|
8
6
|
on:
|
|
9
7
|
push:
|
|
@@ -53,3 +51,22 @@ jobs:
|
|
|
53
51
|
files: coverage.lcov
|
|
54
52
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
55
53
|
fail_ci_if_error: true
|
|
54
|
+
|
|
55
|
+
# rustc and clippy check std functions against `rust-version` in Cargo.toml, but not language features. Only a build
|
|
56
|
+
# on that Rust shows that it still works.
|
|
57
|
+
oldest-rust:
|
|
58
|
+
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v7.0.1
|
|
63
|
+
with:
|
|
64
|
+
persist-credentials: false
|
|
65
|
+
- name: Install the oldest supported Rust
|
|
66
|
+
uses: dtolnay/rust-toolchain@v1
|
|
67
|
+
with:
|
|
68
|
+
toolchain: '1.98'
|
|
69
|
+
- name: Cache cargo
|
|
70
|
+
uses: Swatinem/rust-cache@v2.9.3
|
|
71
|
+
- name: Build on the oldest supported Rust
|
|
72
|
+
run: cargo check --all-targets --locked
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
blockwatch is a linter written in Rust. It works with any language. Rules are `<block ...>` tags inside code comments.
|
|
4
|
+
`CLAUDE.md` is a symlink to this file, because Claude Code only reads `CLAUDE.md`.
|
|
5
|
+
|
|
6
|
+
Every rule below says why it exists. Use the reason to decide the cases the rule doesn't cover. When a rule gets in
|
|
7
|
+
your way, ask the human. Don't work around it.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
pre-commit run --all-files # fmt, clippy, docs, tests, markdownlint, and this repository's own blocks
|
|
13
|
+
cargo llvm-cov # tests with coverage
|
|
14
|
+
cargo run # check this repository's own blocks
|
|
15
|
+
cargo run -- list '<path or glob>' # print the blocks parsed from matching files, as JSON
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Ask the human
|
|
19
|
+
|
|
20
|
+
- Ask when the task is unclear, and before a change that affects UX, security or performance. Describe the problem,
|
|
21
|
+
list the options, and let the human choose. These are the human's decisions.
|
|
22
|
+
- Stop and ask as soon as a fix starts to look complicated. A complicated workaround usually means the plan is wrong.
|
|
23
|
+
- Never commit on your own. A human reviews every change first. When asked to commit, commit on the current branch.
|
|
24
|
+
Write a title and one to three sentences. Don't list what the diff changed. The diff already shows that.
|
|
25
|
+
|
|
26
|
+
## Design
|
|
27
|
+
|
|
28
|
+
- Write the simplest code that does the job. Don't add a helper, an accessor, a type alias or a test whose only payoff
|
|
29
|
+
is slightly nicer output or a rare edge case. Reword the message to fit the simple code instead. For example, join a
|
|
30
|
+
list with `", "` rather than write a helper that prints "a, b or c". Every extra line is code someone must read and
|
|
31
|
+
keep working.
|
|
32
|
+
- Make failures loud. When a value can't be computed, or an input can't be handled as asked, return an error that says
|
|
33
|
+
the cause and, where possible, the fix. Never fall back to a default, and never skip a bad input with only a
|
|
34
|
+
warning. Users don't notice warnings, so a silent fallback gives a wrong result that looks right. Output may be empty
|
|
35
|
+
or zero when that is the true result.
|
|
36
|
+
- Handle an enum with an exhaustive `match`, never with `let ... else`, `if let` or `matches!`. Then the compiler
|
|
37
|
+
makes you decide what each new variant does. Clippy's `wildcard_enum_match_arm` fails a `_` arm, but it doesn't
|
|
38
|
+
see these three. `Option` and `Result` can't get new variants, so they are fine.
|
|
39
|
+
- A `match` on another crate's enum may end with `_` when no new variant could need another arm. Say why in an
|
|
40
|
+
`#[expect(clippy::wildcard_enum_match_arm, reason = "...")]` on the function or statement that holds the `match`.
|
|
41
|
+
Clippy ignores one on the arm.
|
|
42
|
+
- Never add a dependency loop, between the modules in `src/` or between the files of one module. If `a` uses `b`, then
|
|
43
|
+
`b` must not use `a`, directly or through other files. Tests count too: a test may use only what its file's code may
|
|
44
|
+
use. A `mod.rs` doesn't use an item it only re-exports. To break a loop, move the item that both sides need into its
|
|
45
|
+
own file. A test stays next to the code it tests, though. If a test can't avoid the loop by calling its own file's
|
|
46
|
+
code directly, leave the loop. A test far from its code is worse.
|
|
47
|
+
- Give each item the narrowest visibility that compiles: private, then `pub(super)`, then `pub(crate)`. blockwatch is
|
|
48
|
+
a program, not a library.
|
|
49
|
+
- Rename or move Rust symbols with a tool that understands Rust, such as rust-analyzer. Never use `sed`, `perl` or a
|
|
50
|
+
bulk find-and-replace. Text replacement misses references and changes unrelated text.
|
|
51
|
+
|
|
52
|
+
## Tests
|
|
53
|
+
|
|
54
|
+
The goal is a test suite that fails when behavior changes. Running every line is not the goal.
|
|
55
|
+
|
|
56
|
+
- Write a failing test first. Check that it fails for the reason you expect.
|
|
57
|
+
- Find the inputs whose result your change changes, and test the edges of that group. A change can be right for the
|
|
58
|
+
obvious input and wrong just next to it.
|
|
59
|
+
- Mutation-test each new test: flip each comparison or boundary the change touched, and check that a test fails. Do it
|
|
60
|
+
in a scratch copy with its own `target/`, and delete both right after. A `target/` takes gigabytes.
|
|
61
|
+
- Read the coverage report as questions. An uncovered branch is either a case worth testing or code worth deleting.
|
|
62
|
+
Never add a test only to cover a line.
|
|
63
|
+
- Name tests `state_action_expected_result`. Put the most important tests first.
|
|
64
|
+
- Integration tests run the binary on `tests/testdata/`. Follow `tests/<validator>.rs`, and build the command with
|
|
65
|
+
`common::cargo_bin_cmd!`. It passes an empty config, because `blockwatch.toml` skips `tests/testdata/`.
|
|
66
|
+
|
|
67
|
+
## Comments
|
|
68
|
+
|
|
69
|
+
- Explain why the code is written this way. Never describe what it does. The code shows that.
|
|
70
|
+
- Write for a reader who doesn't know today's task. Never refer to a plan, a stage or an issue.
|
|
71
|
+
- A doc comment says what the symbol is, what it takes and returns, the order of results, when a value can be missing,
|
|
72
|
+
and when it errors or panics. It doesn't say how callers use it. Implementation details go in the body, next to the
|
|
73
|
+
code.
|
|
74
|
+
|
|
75
|
+
## Writing style
|
|
76
|
+
|
|
77
|
+
This applies to everything you write: comments, `--help`, error messages, docs, `CHANGELOG.md`, commit messages and
|
|
78
|
+
chat.
|
|
79
|
+
|
|
80
|
+
- Use short sentences, one idea each, and everyday words. Each sentence must make sense on the first read.
|
|
81
|
+
- Say the concrete thing: the file, flag or value. Say what passes or fails, not a property like "order-insensitive".
|
|
82
|
+
- No jargon or formal framing, such as "hold for", "as opposed to" or "govern".
|
|
83
|
+
- Use an example or a table when it is shorter than the explanation.
|
|
84
|
+
|
|
85
|
+
| Hard to follow | Easy to follow |
|
|
86
|
+
|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
|
87
|
+
| A file whose extension is a key is parsed as if its extension were the value. | Maps an extension to a supported one. For example, `cu` to `cpp` makes `.cu` files parse as C++. |
|
|
88
|
+
| Validates the arguments that describe one run, as opposed to the project-wide settings. | Validates the flags that are not settings, such as `--format` and `--suppress`. |
|
|
89
|
+
|
|
90
|
+
## Traps in this repository
|
|
91
|
+
|
|
92
|
+
- **The repository lints itself.** Tag text in a source comment becomes a block, or fails the run as a malformed tag,
|
|
93
|
+
even inside backticks. Describe a tag in words instead, such as "the start tag". Tag text is safe in a Rust string
|
|
94
|
+
literal, and in Markdown outside `<!-- -->` and `[//]: #` comments. `cargo test` doesn't check these blocks, so run
|
|
95
|
+
`cargo run`. When the commit hook fails, read the violation. It is usually a rule your change broke.
|
|
96
|
+
- **A block counts as changed only when the diff touches its content or its start tag.** If a rule such as `affects`
|
|
97
|
+
didn't fire, check that first.
|
|
98
|
+
- **`src/skill.md`, `.agents/skills/blockwatch/SKILL.md` and `.claude-plugin/` ship to users.** They are not guidance
|
|
99
|
+
for working here. `src/skill.md` must not hold block tags, because each project that saves the skill would parse
|
|
100
|
+
them. Point a block at its headings instead, such as `src/skill.md#/blockwatch/Validator reference`.
|
|
101
|
+
- **A user-facing change gets a `CHANGELOG.md` entry** under `## [Unreleased]`, in the same commit. It becomes the
|
|
102
|
+
release notes. Refactors, tests and CI changes get no entry.
|
|
103
|
+
- **`.github/workflows/release.yml` is generated.** Change `dist-workspace.toml`, then run `dist generate`. After
|
|
104
|
+
changing any workflow, run `gh actions-lock`, or GitHub refuses to start it.
|
|
@@ -12,6 +12,40 @@ Releases up to and including v0.3.11 predate this file. Their notes live on the
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased] - ReleaseDate
|
|
14
14
|
|
|
15
|
+
## [0.20.0] - 2026-11-21
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Breaking:** `blockwatch list`, `blockwatch explain`, `--verbosity full`, and `ctx.attrs` in `check-lua` now output
|
|
20
|
+
normalized attribute values (for example, `"asc"` for a bare `keep-sorted`, `"info"` for `severity="InFo"`, and
|
|
21
|
+
`"<=50"` for `line-count="<= 50"`). `affects` and `same-as` are now always arrays of strings, whether written in a tag
|
|
22
|
+
or as a TOML list. A Lua script that reads a value as it was written, such as `ctx.attrs["affects"]` as a string, must
|
|
23
|
+
be updated.
|
|
24
|
+
- Invalid attribute values (such as a bad `line-count`, a bad or empty required regex, a blank `check-ai`, `check-lua`,
|
|
25
|
+
or `same-as-paths`, or an unknown `keep-sorted`, `same-as-mode`, `same-as-format`, or `severity` value) now fail as
|
|
26
|
+
soon as the block or `[[block]]` entry is read, rather than only when a validator runs. As a result, `blockwatch list`,
|
|
27
|
+
`blockwatch explain`, runs with `--disable` or `skip-blocks`, untouched blocks under `--only-changed`, and target-only
|
|
28
|
+
files read for `affects` or `same-as` now fail on bad attribute values too. Every such error names the attribute, as
|
|
29
|
+
in ``invalid `line-count` ``.
|
|
30
|
+
- An empty `keep-sorted-pattern` is now an error. Before, `keep-sorted-pattern=""` meant no pattern.
|
|
31
|
+
- Spaces around the value of `keep-sorted`, `keep-sorted-format`, `same-as-format`, `same-as-mode`, `same-as-paths` and
|
|
32
|
+
`severity` are now ignored. Before, `keep-sorted=" desc "` was an error.
|
|
33
|
+
- Building blockwatch from source, as with `cargo install blockwatch`, now needs Rust 1.98 or newer. On an older Rust,
|
|
34
|
+
`cargo` now stops at the start and says which version is needed.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- A `same-as-format` that lists a group twice, such as `value:numeric, value:flat`, is now an error. Before, the last
|
|
39
|
+
entry was used and the first was ignored.
|
|
40
|
+
- With `--only-changed` and several files that fail to parse, the error now always shows the file with the lowest
|
|
41
|
+
path. Before, the file shown could change from run to run.
|
|
42
|
+
- An invalid number in `line-count` now says why it is invalid, as in `invalid number: number too large to fit in
|
|
43
|
+
target type`. Before, the error said only `invalid number`.
|
|
44
|
+
- With `--diff`, a source path in a `---` line that is quoted badly, such as `"a/x\9.py"`, is now an error. Before, it
|
|
45
|
+
was read as `/dev/null`, so the file could resolve to the wrong path.
|
|
46
|
+
- When a filter in a symbol path matches no item, `did you mean` now lists only paths that exist. Before, it also listed
|
|
47
|
+
items that lack the rest of the path, such as `steps/~[uses=actions~1checkout@v7]/with/toolchain`.
|
|
48
|
+
|
|
15
49
|
## [0.19.2] - 2026-11-14
|
|
16
50
|
|
|
17
51
|
### Added
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
blockwatch is a linter written in Rust. It works with any language. Rules are `<block ...>` tags inside code comments.
|
|
4
|
+
`CLAUDE.md` is a symlink to this file, because Claude Code only reads `CLAUDE.md`.
|
|
5
|
+
|
|
6
|
+
Every rule below says why it exists. Use the reason to decide the cases the rule doesn't cover. When a rule gets in
|
|
7
|
+
your way, ask the human. Don't work around it.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
pre-commit run --all-files # fmt, clippy, docs, tests, markdownlint, and this repository's own blocks
|
|
13
|
+
cargo llvm-cov # tests with coverage
|
|
14
|
+
cargo run # check this repository's own blocks
|
|
15
|
+
cargo run -- list '<path or glob>' # print the blocks parsed from matching files, as JSON
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Ask the human
|
|
19
|
+
|
|
20
|
+
- Ask when the task is unclear, and before a change that affects UX, security or performance. Describe the problem,
|
|
21
|
+
list the options, and let the human choose. These are the human's decisions.
|
|
22
|
+
- Stop and ask as soon as a fix starts to look complicated. A complicated workaround usually means the plan is wrong.
|
|
23
|
+
- Never commit on your own. A human reviews every change first. When asked to commit, commit on the current branch.
|
|
24
|
+
Write a title and one to three sentences. Don't list what the diff changed. The diff already shows that.
|
|
25
|
+
|
|
26
|
+
## Design
|
|
27
|
+
|
|
28
|
+
- Write the simplest code that does the job. Don't add a helper, an accessor, a type alias or a test whose only payoff
|
|
29
|
+
is slightly nicer output or a rare edge case. Reword the message to fit the simple code instead. For example, join a
|
|
30
|
+
list with `", "` rather than write a helper that prints "a, b or c". Every extra line is code someone must read and
|
|
31
|
+
keep working.
|
|
32
|
+
- Make failures loud. When a value can't be computed, or an input can't be handled as asked, return an error that says
|
|
33
|
+
the cause and, where possible, the fix. Never fall back to a default, and never skip a bad input with only a
|
|
34
|
+
warning. Users don't notice warnings, so a silent fallback gives a wrong result that looks right. Output may be empty
|
|
35
|
+
or zero when that is the true result.
|
|
36
|
+
- Handle an enum with an exhaustive `match`, never with `let ... else`, `if let` or `matches!`. Then the compiler
|
|
37
|
+
makes you decide what each new variant does. Clippy's `wildcard_enum_match_arm` fails a `_` arm, but it doesn't
|
|
38
|
+
see these three. `Option` and `Result` can't get new variants, so they are fine.
|
|
39
|
+
- A `match` on another crate's enum may end with `_` when no new variant could need another arm. Say why in an
|
|
40
|
+
`#[expect(clippy::wildcard_enum_match_arm, reason = "...")]` on the function or statement that holds the `match`.
|
|
41
|
+
Clippy ignores one on the arm.
|
|
42
|
+
- Never add a dependency loop, between the modules in `src/` or between the files of one module. If `a` uses `b`, then
|
|
43
|
+
`b` must not use `a`, directly or through other files. Tests count too: a test may use only what its file's code may
|
|
44
|
+
use. A `mod.rs` doesn't use an item it only re-exports. To break a loop, move the item that both sides need into its
|
|
45
|
+
own file. A test stays next to the code it tests, though. If a test can't avoid the loop by calling its own file's
|
|
46
|
+
code directly, leave the loop. A test far from its code is worse.
|
|
47
|
+
- Give each item the narrowest visibility that compiles: private, then `pub(super)`, then `pub(crate)`. blockwatch is
|
|
48
|
+
a program, not a library.
|
|
49
|
+
- Rename or move Rust symbols with a tool that understands Rust, such as rust-analyzer. Never use `sed`, `perl` or a
|
|
50
|
+
bulk find-and-replace. Text replacement misses references and changes unrelated text.
|
|
51
|
+
|
|
52
|
+
## Tests
|
|
53
|
+
|
|
54
|
+
The goal is a test suite that fails when behavior changes. Running every line is not the goal.
|
|
55
|
+
|
|
56
|
+
- Write a failing test first. Check that it fails for the reason you expect.
|
|
57
|
+
- Find the inputs whose result your change changes, and test the edges of that group. A change can be right for the
|
|
58
|
+
obvious input and wrong just next to it.
|
|
59
|
+
- Mutation-test each new test: flip each comparison or boundary the change touched, and check that a test fails. Do it
|
|
60
|
+
in a scratch copy with its own `target/`, and delete both right after. A `target/` takes gigabytes.
|
|
61
|
+
- Read the coverage report as questions. An uncovered branch is either a case worth testing or code worth deleting.
|
|
62
|
+
Never add a test only to cover a line.
|
|
63
|
+
- Name tests `state_action_expected_result`. Put the most important tests first.
|
|
64
|
+
- Integration tests run the binary on `tests/testdata/`. Follow `tests/<validator>.rs`, and build the command with
|
|
65
|
+
`common::cargo_bin_cmd!`. It passes an empty config, because `blockwatch.toml` skips `tests/testdata/`.
|
|
66
|
+
|
|
67
|
+
## Comments
|
|
68
|
+
|
|
69
|
+
- Explain why the code is written this way. Never describe what it does. The code shows that.
|
|
70
|
+
- Write for a reader who doesn't know today's task. Never refer to a plan, a stage or an issue.
|
|
71
|
+
- A doc comment says what the symbol is, what it takes and returns, the order of results, when a value can be missing,
|
|
72
|
+
and when it errors or panics. It doesn't say how callers use it. Implementation details go in the body, next to the
|
|
73
|
+
code.
|
|
74
|
+
|
|
75
|
+
## Writing style
|
|
76
|
+
|
|
77
|
+
This applies to everything you write: comments, `--help`, error messages, docs, `CHANGELOG.md`, commit messages and
|
|
78
|
+
chat.
|
|
79
|
+
|
|
80
|
+
- Use short sentences, one idea each, and everyday words. Each sentence must make sense on the first read.
|
|
81
|
+
- Say the concrete thing: the file, flag or value. Say what passes or fails, not a property like "order-insensitive".
|
|
82
|
+
- No jargon or formal framing, such as "hold for", "as opposed to" or "govern".
|
|
83
|
+
- Use an example or a table when it is shorter than the explanation.
|
|
84
|
+
|
|
85
|
+
| Hard to follow | Easy to follow |
|
|
86
|
+
|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
|
87
|
+
| A file whose extension is a key is parsed as if its extension were the value. | Maps an extension to a supported one. For example, `cu` to `cpp` makes `.cu` files parse as C++. |
|
|
88
|
+
| Validates the arguments that describe one run, as opposed to the project-wide settings. | Validates the flags that are not settings, such as `--format` and `--suppress`. |
|
|
89
|
+
|
|
90
|
+
## Traps in this repository
|
|
91
|
+
|
|
92
|
+
- **The repository lints itself.** Tag text in a source comment becomes a block, or fails the run as a malformed tag,
|
|
93
|
+
even inside backticks. Describe a tag in words instead, such as "the start tag". Tag text is safe in a Rust string
|
|
94
|
+
literal, and in Markdown outside `<!-- -->` and `[//]: #` comments. `cargo test` doesn't check these blocks, so run
|
|
95
|
+
`cargo run`. When the commit hook fails, read the violation. It is usually a rule your change broke.
|
|
96
|
+
- **A block counts as changed only when the diff touches its content or its start tag.** If a rule such as `affects`
|
|
97
|
+
didn't fire, check that first.
|
|
98
|
+
- **`src/skill.md`, `.agents/skills/blockwatch/SKILL.md` and `.claude-plugin/` ship to users.** They are not guidance
|
|
99
|
+
for working here. `src/skill.md` must not hold block tags, because each project that saves the skill would parse
|
|
100
|
+
them. Point a block at its headings instead, such as `src/skill.md#/blockwatch/Validator reference`.
|
|
101
|
+
- **A user-facing change gets a `CHANGELOG.md` entry** under `## [Unreleased]`, in the same commit. It becomes the
|
|
102
|
+
release notes. Refactors, tests and CI changes get no entry.
|
|
103
|
+
- **`.github/workflows/release.yml` is generated.** Change `dist-workspace.toml`, then run `dist generate`. After
|
|
104
|
+
changing any workflow, run `gh actions-lock`, or GitHub refuses to start it.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "blockwatch"
|
|
3
|
+
version = "0.20.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
rust-version = "1.98"
|
|
6
|
+
repository = "https://github.com/mennanov/blockwatch"
|
|
7
|
+
description = "Language agnostic linter that keeps your code and documentation in sync and valid"
|
|
8
|
+
homepage = "https://blockwatch.sh"
|
|
9
|
+
license = "MIT"
|
|
10
|
+
keywords = ["linter", "sync", "drift", "comments", "agents"]
|
|
11
|
+
categories = ["development-tools", "command-line-utilities"]
|
|
12
|
+
# The website is built and hosted on its own; the crate doesn't need it.
|
|
13
|
+
exclude = ["site/"]
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
|
|
16
|
+
# `cargo binstall` checks each release archive against this key. The release workflow signs the archives with the
|
|
17
|
+
# secret half. A version published with a key that didn't sign its archives can't be installed with binstall.
|
|
18
|
+
[package.metadata.binstall.signing]
|
|
19
|
+
algorithm = "minisign"
|
|
20
|
+
pubkey = "RWQAy2A3WWnUR2c5oDQ343TyWusiMS1fWYC5G6bufHV7GbByRW0DQf9i"
|
|
21
|
+
|
|
22
|
+
[workspace]
|
|
23
|
+
|
|
24
|
+
[dependencies]
|
|
25
|
+
anyhow = "1.0"
|
|
26
|
+
async-openai = { version = "0.43.0", features = [
|
|
27
|
+
"completion-types",
|
|
28
|
+
"chat-completion",
|
|
29
|
+
] }
|
|
30
|
+
async-trait = "0.1"
|
|
31
|
+
bigdecimal = "0.4"
|
|
32
|
+
clap = { version = "4.6", features = ["cargo", "derive"] }
|
|
33
|
+
cssparser = "0.38.0"
|
|
34
|
+
fnv = "1.0"
|
|
35
|
+
globset = "0.4.18"
|
|
36
|
+
heck = "0.5"
|
|
37
|
+
ignore = "0.4"
|
|
38
|
+
# Pinned exactly: a new version can change which symbols and comments a Makefile has.
|
|
39
|
+
makefile-lossless = "=0.4.8"
|
|
40
|
+
markdown = "1.0.0"
|
|
41
|
+
mlua = { version = "0.12.0", features = ["lua54", "vendored", "async", "send"] }
|
|
42
|
+
percent-encoding = "2.3"
|
|
43
|
+
regex = "1.12"
|
|
44
|
+
secrecy = "0.10"
|
|
45
|
+
serde = { version = "1.0.228", features = ["derive"] }
|
|
46
|
+
serde_json = "1.0"
|
|
47
|
+
serde_repr = "0.1"
|
|
48
|
+
serde_spanned = "1.1"
|
|
49
|
+
similar = { version = "3.1" }
|
|
50
|
+
strsim = "0.11"
|
|
51
|
+
strum = "0.28"
|
|
52
|
+
strum_macros = "0.28"
|
|
53
|
+
tokio = { version = "1.52", features = ["full"] }
|
|
54
|
+
toml_edit = { version = "0.25", default-features = false, features = ["parse", "serde"] }
|
|
55
|
+
# The grammar crates the language parsers are built from.
|
|
56
|
+
tree-sitter = "0.27.0"
|
|
57
|
+
tree-sitter-bash = "0.25"
|
|
58
|
+
tree-sitter-c = "0.24"
|
|
59
|
+
tree-sitter-c-sharp = "0.23"
|
|
60
|
+
tree-sitter-cmake = "0.7.4"
|
|
61
|
+
tree-sitter-containerfile = "0.9"
|
|
62
|
+
tree-sitter-cpp = "0.23"
|
|
63
|
+
tree-sitter-dart = "0.3"
|
|
64
|
+
tree-sitter-elixir = "0.3"
|
|
65
|
+
tree-sitter-go = "0.25"
|
|
66
|
+
tree-sitter-graphql = "0.3.0"
|
|
67
|
+
tree-sitter-groovy = "0.1"
|
|
68
|
+
tree-sitter-hcl = "1.1"
|
|
69
|
+
tree-sitter-html = "0.23"
|
|
70
|
+
tree-sitter-java = "0.23"
|
|
71
|
+
tree-sitter-javascript = "0.25"
|
|
72
|
+
tree-sitter-json = "0.24.8"
|
|
73
|
+
tree-sitter-kotlin-ng = "1.1"
|
|
74
|
+
tree-sitter-lua = "0.5"
|
|
75
|
+
tree-sitter-nix = "0.3.0"
|
|
76
|
+
tree-sitter-ocaml = "0.26"
|
|
77
|
+
tree-sitter-php = "0.25"
|
|
78
|
+
tree-sitter-proto = "0.6.0"
|
|
79
|
+
tree-sitter-python = "0.25"
|
|
80
|
+
tree-sitter-ruby = "0.23"
|
|
81
|
+
tree-sitter-rust = "0.24"
|
|
82
|
+
tree-sitter-scala = "0.26"
|
|
83
|
+
tree-sitter-sequel = "0.3"
|
|
84
|
+
tree-sitter-starlark = "1.3.0"
|
|
85
|
+
tree-sitter-swift = "0.7"
|
|
86
|
+
tree-sitter-toml-ng = "0.7"
|
|
87
|
+
tree-sitter-typescript = "0.23"
|
|
88
|
+
tree-sitter-xml = "0.7"
|
|
89
|
+
tree-sitter-yaml = "0.7"
|
|
90
|
+
unidiff = "0.4.1"
|
|
91
|
+
winnow = "1.0"
|
|
92
|
+
|
|
93
|
+
[dev-dependencies]
|
|
94
|
+
assert-json-diff = "2.0.2"
|
|
95
|
+
assert_cmd = "2.2"
|
|
96
|
+
axum = "0.8"
|
|
97
|
+
libc = "0.2"
|
|
98
|
+
predicates = "3.1"
|
|
99
|
+
tempfile = "3.27.0"
|
|
100
|
+
|
|
101
|
+
[lints.clippy]
|
|
102
|
+
pedantic = { level = "warn", priority = -1 }
|
|
103
|
+
cargo = { level = "warn", priority = -1 }
|
|
104
|
+
# A match on an enum must list every variant (AGENTS.md). These two turn such a match into `if let` or let-else.
|
|
105
|
+
single_match_else = "allow"
|
|
106
|
+
manual_let_else = "allow"
|
|
107
|
+
# Comes from dependencies, which pull in two versions of some crates.
|
|
108
|
+
multiple_crate_versions = "allow"
|
|
109
|
+
# The symbol tests put every shape in one fixture on purpose, so they are long.
|
|
110
|
+
too_many_lines = "allow"
|
|
111
|
+
# Flags pairs such as `block` and `blocks`. Renaming them would make the names worse.
|
|
112
|
+
similar_names = "allow"
|
|
113
|
+
# Flags fields such as `open_blocks` in `Blocks`. Each name says what the field holds. Without the struct's name, it
|
|
114
|
+
# would say less.
|
|
115
|
+
struct_field_names = "allow"
|
|
116
|
+
# A module with child modules keeps its own code in `mod.rs`, inside its folder, so each such module looks the same.
|
|
117
|
+
self_named_module_files = "warn"
|
|
118
|
+
# A `_` arm gives a variant added later whatever that arm does, without anyone deciding it. So each `_` on an enum
|
|
119
|
+
# needs an `expect` that says why no new variant could need another arm.
|
|
120
|
+
wildcard_enum_match_arm = "warn"
|
|
121
|
+
# Restriction lints, one by one. The whole group doesn't fit.
|
|
122
|
+
# AGENTS.md asks for a reason on each `expect`.
|
|
123
|
+
allow_attributes_without_reason = "warn"
|
|
124
|
+
# `#[expect]` fails once its lint stops firing. `#[allow]` goes stale without a word.
|
|
125
|
+
allow_attributes = "warn"
|
|
126
|
+
# stdout carries the JSON and SARIF output. A stray `println!` breaks it.
|
|
127
|
+
print_stdout = "warn"
|
|
128
|
+
print_stderr = "warn"
|
|
129
|
+
# Leftovers from debugging.
|
|
130
|
+
dbg_macro = "warn"
|
|
131
|
+
todo = "warn"
|
|
132
|
+
# `process::exit` skips destructors and buffered writes.
|
|
133
|
+
exit = "warn"
|
|
134
|
+
# Test names follow `state_action_expected_result`, with no `test_` prefix.
|
|
135
|
+
redundant_test_prefix = "warn"
|
|
136
|
+
# Tests must run the code that ships.
|
|
137
|
+
cfg_not_test = "warn"
|
|
138
|
+
# Each panic must say why it can't happen. `allow-unwrap-in-tests` in `clippy.toml` lets tests unwrap.
|
|
139
|
+
unwrap_used = "warn"
|
|
140
|
+
# Hash order changes between runs. Output must not.
|
|
141
|
+
iter_over_hash_type = "warn"
|
|
142
|
+
# `|_|` drops the cause of the error.
|
|
143
|
+
map_err_ignore = "warn"
|
|
144
|
+
# An `unsafe` block says why it is sound.
|
|
145
|
+
undocumented_unsafe_blocks = "warn"
|
|
146
|
+
# An ignored `Result` must be on purpose.
|
|
147
|
+
let_underscore_must_use = "warn"
|
|
148
|
+
# `.ok()` hides that a `Result` is thrown away.
|
|
149
|
+
unused_result_ok = "warn"
|
|
150
|
+
# A failed assert says what broke.
|
|
151
|
+
missing_assert_message = "warn"
|
|
152
|
+
# One way to join strings.
|
|
153
|
+
string_add = "warn"
|
|
154
|
+
# Keeps `pub(super)` and never `pub(in super)`.
|
|
155
|
+
pub_without_shorthand = "warn"
|
|
156
|
+
# Nursery lints, one by one. The group has wrong hits, and lints that go against AGENTS.md.
|
|
157
|
+
# `peekable` with no `peek` is dead code.
|
|
158
|
+
unused_peekable = "warn"
|
|
159
|
+
# Threads share the parsers behind a `Mutex`. Holding a lock longer than needed makes them wait.
|
|
160
|
+
significant_drop_in_scrutinee = "warn"
|
|
161
|
+
significant_drop_tightening = "warn"
|
|
162
|
+
# Pushing an absolute path onto a `PathBuf` replaces the whole path.
|
|
163
|
+
path_buf_push_overwrite = "warn"
|
|
164
|
+
# These catch dead code, or code that asks for more than it needs.
|
|
165
|
+
collection_is_never_read = "warn"
|
|
166
|
+
needless_pass_by_ref_mut = "warn"
|
|
167
|
+
derive_partial_eq_without_eq = "warn"
|
|
168
|
+
trait_duplication_in_bounds = "warn"
|
|
169
|
+
# `unwrap_or(f())` runs `f` even when the value is there.
|
|
170
|
+
or_fun_call = "warn"
|
|
171
|
+
# AGENTS.md asks for short sentences.
|
|
172
|
+
too_long_first_doc_paragraph = "warn"
|
|
173
|
+
# One name for the type inside its own `impl`.
|
|
174
|
+
use_self = "warn"
|
|
175
|
+
|
|
176
|
+
[profile.dist]
|
|
177
|
+
inherits = "release"
|
|
178
|
+
lto = "thin"
|
|
@@ -29,16 +29,15 @@ Then paste this prompt into your AI coding agent:
|
|
|
29
29
|
<!-- <block name="agent-prompt"> -->
|
|
30
30
|
|
|
31
31
|
```text
|
|
32
|
-
Run `blockwatch skill` and
|
|
33
|
-
|
|
34
|
-
catches.
|
|
32
|
+
Run `blockwatch skill` and follow it to add `<block>` tags, plus `blockwatch.toml` if needed.
|
|
33
|
+
Verify your blocks with `blockwatch`, then list each block you added and the mistake it catches.
|
|
35
34
|
```
|
|
36
35
|
|
|
37
36
|
<!-- </block> -->
|
|
38
37
|
|
|
39
|
-
Review the
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
Review the blocks it adds and commit them. To check every future change, add blockwatch to your
|
|
39
|
+
[pre-commit hook or CI](#ci-integration). You can also [install the skill](#ai-agents) so future agent runs know the
|
|
40
|
+
rules too.
|
|
42
41
|
|
|
43
42
|
## How it works
|
|
44
43
|
|
|
@@ -109,7 +108,7 @@ file (see [Symbols](docs/symbols.md)). The other validators check a single block
|
|
|
109
108
|
otherwise have to nitpick in code review.
|
|
110
109
|
|
|
111
110
|
<!-- <block name="available-validators"
|
|
112
|
-
same-as="src/validators/
|
|
111
|
+
same-as="src/validators/validator.rs:validator-registry, docs/validators/README.md:validators-index"
|
|
113
112
|
same-as-format="identifier"
|
|
114
113
|
same-as-pattern='^\|\s*\[`(?P<value>[a-z-]+)`\]'> -->
|
|
115
114
|
|
|
@@ -160,8 +159,7 @@ See [Verifying a Download](SECURITY.md#verifying-a-download).
|
|
|
160
159
|
## AI Agents
|
|
161
160
|
|
|
162
161
|
The [skill](src/skill.md) tells an agent where blocks make sense, how to format them, and how to check its own work.
|
|
163
|
-
`blockwatch skill` prints it.
|
|
164
|
-
globally for every project in Claude Code instead:
|
|
162
|
+
`blockwatch skill` prints it. To install it globally for every project in Claude Code:
|
|
165
163
|
|
|
166
164
|
<!-- <block name="plugin-install"> -->
|
|
167
165
|
|
|
@@ -172,7 +170,7 @@ globally for every project in Claude Code instead:
|
|
|
172
170
|
|
|
173
171
|
<!-- </block> -->
|
|
174
172
|
|
|
175
|
-
See [docs/agents.md](docs/agents.md) for Cursor, Copilot, Codex, and other
|
|
173
|
+
See [docs/agents.md](docs/agents.md) to set up the skill per project or for Cursor, Copilot, Codex, and other tools.
|
|
176
174
|
|
|
177
175
|
## Usage
|
|
178
176
|
|
|
@@ -243,7 +241,7 @@ exclusions, and custom extension mappings.
|
|
|
243
241
|
|
|
244
242
|
```yaml
|
|
245
243
|
- repo: https://github.com/mennanov/blockwatch
|
|
246
|
-
rev: v0.
|
|
244
|
+
rev: v0.20.0 # Use latest release
|
|
247
245
|
hooks:
|
|
248
246
|
- id: blockwatch
|
|
249
247
|
```
|
|
@@ -102,7 +102,7 @@ same-as-pattern = '[\w#]+'
|
|
|
102
102
|
[[block]]
|
|
103
103
|
target = 'src/skill.md#/blockwatch/Where blocks add value'
|
|
104
104
|
name = 'where-blocks-add-value'
|
|
105
|
-
same-as = 'src/validators/
|
|
105
|
+
same-as = 'src/validators/validator.rs:validator-registry'
|
|
106
106
|
same-as-format = 'identifier'
|
|
107
107
|
same-as-pattern = '^\|\s*[^|]+\|\s*`(?P<value>[a-z-]+)`\s*\|'
|
|
108
108
|
|
|
@@ -122,3 +122,8 @@ name = 'skill-config-keys'
|
|
|
122
122
|
same-as = 'src/config.rs:config-keys'
|
|
123
123
|
same-as-format = 'identifier'
|
|
124
124
|
same-as-pattern = '^\|\s*`(?P<value>[a-z-]+)`'
|
|
125
|
+
|
|
126
|
+
# CI builds blockwatch on the oldest Rust that Cargo.toml allows, so both must be the same version.
|
|
127
|
+
[[block]]
|
|
128
|
+
target = 'Cargo.toml#/package/rust-version'
|
|
129
|
+
same-as = '.github/workflows/rust.yml#/jobs/oldest-rust/steps/~[name=Install the oldest supported Rust]/with/toolchain'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# The integration tests run inside this repository, so a run would read its blockwatch.toml, which
|
|
2
|
+
# skips tests/testdata.
|
|
3
|
+
disallowed-macros = [
|
|
4
|
+
{ path = "assert_cmd::cargo_bin_cmd", reason = "use common::cargo_bin_cmd!, which passes an empty config" },
|
|
5
|
+
]
|
|
6
|
+
# globset drops an empty alternative in braces by default, so `{,sub/}a.yml` would not match
|
|
7
|
+
# `a.yml`.
|
|
8
|
+
disallowed-methods = [
|
|
9
|
+
{ path = "globset::Glob::new", reason = "use fs::glob::glob_builder, which keeps an empty alternative" },
|
|
10
|
+
{ path = "globset::GlobBuilder::new", reason = "use fs::glob::glob_builder, which keeps an empty alternative" },
|
|
11
|
+
]
|
|
12
|
+
# `unwrap_used` is for the code that ships. A test that unwraps a bad value fails, which is what it should do.
|
|
13
|
+
allow-unwrap-in-tests = true
|
|
14
|
+
# `doc_markdown` would want backticks around these. The `".."` keeps clippy's own list.
|
|
15
|
+
doc-valid-idents = ["CMake", "CommonMark", "MakeMaker", "OpenAI", ".."]
|
|
@@ -15,29 +15,27 @@ See [Installation](../README.md#installation).
|
|
|
15
15
|
|
|
16
16
|
## 2. Run the Agent
|
|
17
17
|
|
|
18
|
-
Paste this prompt into your agent. The agent
|
|
18
|
+
Paste this prompt into your agent. The agent reads the skill and adds blocks to your project:
|
|
19
19
|
|
|
20
20
|
<!-- <block same-as="README.md:agent-prompt"> -->
|
|
21
21
|
|
|
22
22
|
```text
|
|
23
|
-
Run `blockwatch skill` and
|
|
24
|
-
|
|
25
|
-
catches.
|
|
23
|
+
Run `blockwatch skill` and follow it to add `<block>` tags, plus `blockwatch.toml` if needed.
|
|
24
|
+
Verify your blocks with `blockwatch`, then list each block you added and the mistake it catches.
|
|
26
25
|
```
|
|
27
26
|
|
|
28
27
|
<!-- </block> -->
|
|
29
28
|
|
|
30
|
-
The agent
|
|
31
|
-
|
|
32
|
-
inspect the generated diff before committing to ensure the added blocks are necessary and accurate.
|
|
29
|
+
The agent does not install the skill or edit your hooks or CI. Inspect the generated diff before committing to make
|
|
30
|
+
sure every added block is necessary and accurate.
|
|
33
31
|
|
|
34
32
|
## 3. Enable Automated Checks
|
|
35
33
|
|
|
36
34
|
Set up pre-commit hooks or CI workflows to enforce rules on future changes. See [CI Integration](ci.md).
|
|
37
35
|
|
|
38
|
-
##
|
|
36
|
+
## Installing the Skill for Future Runs
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
To make agents follow blockwatch rules in future sessions without pasting the prompt again, install the skill once:
|
|
41
39
|
|
|
42
40
|
### Claude Code
|
|
43
41
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CI & Git Hooks Integration
|
|
2
2
|
|
|
3
|
-
<!-- <block affects="src/flags.rs:help-text"> -->
|
|
3
|
+
<!-- <block affects="src/cli/flags.rs:help-text"> -->
|
|
4
4
|
|
|
5
5
|
The hooks and the GitHub Action check every block in the repository. They pass the diff with `--diff`, so that the rules
|
|
6
6
|
about changes, such as [`affects`](validators/affects.md), can fire. A change can break a block in a file it never
|
|
@@ -19,7 +19,7 @@ To use [pre-commit](https://pre-commit.com), add the hook to `.pre-commit-config
|
|
|
19
19
|
|
|
20
20
|
```yaml
|
|
21
21
|
- repo: https://github.com/mennanov/blockwatch
|
|
22
|
-
rev: v0.
|
|
22
|
+
rev: v0.20.0 # Use latest release
|
|
23
23
|
hooks:
|
|
24
24
|
- id: blockwatch
|
|
25
25
|
```
|
|
@@ -59,7 +59,7 @@ The `blockwatch` hook runs before the commit message exists, so it cannot see a
|
|
|
59
59
|
|
|
60
60
|
```yaml
|
|
61
61
|
- repo: https://github.com/mennanov/blockwatch
|
|
62
|
-
rev: v0.
|
|
62
|
+
rev: v0.20.0 # Use latest release
|
|
63
63
|
hooks:
|
|
64
64
|
- id: blockwatch-commit-msg
|
|
65
65
|
```
|