blockwatch-cli 0.21.0__tar.gz → 0.22.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.21.0 → blockwatch_cli-0.22.0}/CHANGELOG.md +33 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/Cargo.lock +12 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/Cargo.toml +2 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/PKG-INFO +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/README.md +7 -5
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/ci.md +2 -2
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/cli.md +10 -8
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/symbols.md +234 -41
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/affects.md +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/same-as.md +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/setup.py +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/target_reference.rs +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/c_sharp.rs +1 -2
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/code_symbols.rs +110 -34
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/dart.rs +1 -2
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/dockerfile.rs +590 -98
- blockwatch_cli-0.22.0/src/languages/dotenv.rs +890 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/file_names.rs +72 -9
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/hcl.rs +1 -1
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/java.rs +1 -2
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/kotlin.rs +2 -3
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/mod.rs +4 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/parsers.rs +28 -4
- blockwatch_cli-0.22.0/src/languages/prisma.rs +568 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/python.rs +576 -65
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/swift.rs +1 -1
- blockwatch_cli-0.22.0/src/languages/typescript.rs +1765 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/skill.md +8 -8
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/symbol_references.rs +21 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/.env.example +4 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/.env.local +2 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/Dockerfile +4 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/dockerfile_source.rs +15 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/dotenv_source.rs +29 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/dotenv_target.env +10 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/prisma_source.rs +15 -0
- blockwatch_cli-0.22.0/tests/testdata/symbol_references/prisma_target.prisma +13 -0
- blockwatch_cli-0.21.0/src/languages/typescript.rs +0 -701
- blockwatch_cli-0.21.0/tests/testdata/symbol_references/Dockerfile +0 -1
- blockwatch_cli-0.21.0/tests/testdata/symbol_references/dockerfile_source.rs +0 -3
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.agents/.claude-plugin/plugin.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.agents/skills/blockwatch/SKILL.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.claude-plugin/marketplace.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/FUNDING.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/dependabot.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/actions.lock +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/blockwatch.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/codeql.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/lockfile.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/markdownlint.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/pypi.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/release.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/rust.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/sign-archives.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/site.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/workflows/trusted-checks.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.github/zizmor.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.gitignore +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.markdownlint-cli2.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.pre-commit-config.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/.pre-commit-hooks.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/AGENTS.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/CLAUDE.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/LICENSE +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/SECURITY.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/blockwatch.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/clippy.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/codecov.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/demo.gif +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/dist-workspace.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/agents.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/README.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/check-ai.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/check-lua.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/keep-sorted.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/keep-unique.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/line-count.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/docs/validators/line-pattern.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/pypi/pyproject.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/pyproject.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/release.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/rust-toolchain.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/scripts/check_language_count.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/scripts/check_latest_gpt_nano_model.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/keyword.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/line_count.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/number.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/same_as.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/severity.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/attributes/sort.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/blocks/address.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/blocks/from_comments.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/blocks/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/blocks/tags.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/blocks/virtual_block.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/cli/flags.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/cli/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/cli/path_arguments.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/config.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/diff/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/diff/target_path.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/diff/unified.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/fs/glob.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/fs/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/fs/path_filter.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/bash.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/c.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/cmake.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/comments.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/cpp.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/css.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/elixir.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/go.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/graphql.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/groovy.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/html.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/javascript.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/json.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/lean.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/lua.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/makefile.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/markdown.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/mdx.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/nix.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/ocaml.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/php.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/proto.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/ruby.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/rust.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/scala.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/sql.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/starlark.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/syntax_tree.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/toml.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/tsx.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/xml.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/languages/yaml.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/lib.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/main.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/output/explain.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/output/listing.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/output/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/output/run_report.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/output/sarif.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/position.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/repo_path.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/scan.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/settings.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/symbols/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/symbols/path.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/affects.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/check_ai.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/check_lua.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/context.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/keep_sorted.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/keep_unique.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/line_count.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/line_pattern.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/log.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/pattern_values.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/run.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/same_as.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/targets.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/validator.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/violation.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/src/validators/violation_address.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/affects.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/check_ai.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/check_lua.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/common/empty.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/common/mod.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/config.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/encoding.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/explain.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/general.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/keep_sorted.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/keep_unique.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/line_count.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/line_pattern.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/list.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/path_arguments.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/repository_root.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/same_as.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/sarif.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/skill.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/suppressions.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/cross_file_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/cross_file_target.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/dangling.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/missing_symbol.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/more_added_than_deleted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/multiline_tag_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/multiline_tag_target.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/nested_mapping_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/nested_mapping_target.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/sibling.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/symbol_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/symbol_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/table_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/table_target.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/tag_and_content_source.ts +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/tag_and_content_target.ts +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/whole_file_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/affects/whole_file_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_ai/two_blocks.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/affects.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/affects.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/affects_drift.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/blocking_io.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/blocking_io.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/echo.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/fail.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/mode.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/os.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/pathfmt/report_path.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/pathfmt/source.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/pattern.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/pattern_many_matches.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/pattern_no_match.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/success.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/check_lua/success_and_failure.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/glob_target/config.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/glob_target/package.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/glob_target/plugins/blue/package.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/glob_target/plugins/green/package.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/glob_target/plugins/red/package.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/target_if_patterns/config.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/target_if_patterns/services/a/.env +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/target_if_patterns/services/b/.env +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/target_if_symbol_change/a.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/config/target_if_symbol_change/config.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/explain/a.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/explain/check.lua +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/block_selection.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/custom_file_extension.javascript +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/custom_file_extension.python +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/disable_enable.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/paths/invalid.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/paths/subdir/nested_invalid.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/paths/valid.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/general/severity.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/hidden/.github/workflows/ci.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/keep_sorted/orderings.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/keep_unique/basic_and_pattern.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/line_count/equality_and_greater_than.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/line_pattern/forbidden_text.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/line_pattern/hex_and_word_patterns.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/list/.hg/.gitkeep +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/list/a.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/list/b.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/positions/unicode_columns.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/package.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/paths/alpha/item.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/paths/beta/item.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/paths_and_block_source.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/paths_source.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/sibling.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/split_table_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/split_table_target.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/symbol_mismatch_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/symbol_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/target.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/whole_file_mismatch_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/whole_file_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/same_as/whole_file_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/sarif/advisory.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/sarif/clean.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/sarif/sorted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/sarif/unnamed.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg_gone_a.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg_gone_b.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg_lowercase_trailer.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg_malformed.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/commit_msg_with_noise.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/dangling.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/sorted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/symbol.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/symbol_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/two_rules.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/suppressions/unnamed.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/Makefile +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/bzl_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/bzl_target.bzl +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/c_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/c_target.c +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/cpp_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/cpp_target.cpp +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/cs_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/cs_target.cs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/csproj_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/csproj_target.csproj +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/css_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/css_target.css +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/dart_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/dart_target.dart +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/escapes_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/escapes_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/filter_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/filter_target.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/go_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/go_target.go +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/h_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/h_target.h +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/hcl_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/hcl_target.hcl +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/java_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/java_target.java +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/js_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/js_target.js +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/json_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/json_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/jsonc_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/jsonc_target.jsonc +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/kt_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/kt_target.kt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/kts_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/kts_target.kts +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/makefile_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/markdown_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/markdown_target.markdown +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/md_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/md_target.md +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/mdx_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/mdx_target.mdx +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/mixed_list_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/mixed_list_target.json +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/multi_doc_yaml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/multi_doc_yaml_target.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/nomad_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/nomad_target.nomad +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/php_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/php_target.php +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/phtml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/phtml_target.phtml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/proto_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/proto_target.proto +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/py_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/py_target.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/rs_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/rs_target.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/sh_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/sh_target.sh +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/swift_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/swift_target.swift +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tf_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tf_target.tf +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tfvars_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tfvars_target.tfvars +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tofu_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tofu_target.tofu +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/toml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/toml_target.toml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/ts_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/ts_target.ts +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tsx_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/tsx_target.tsx +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/xml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/xml_target.xml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/yaml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/yaml_target.yaml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/yml_source.rs +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/symbol_references/yml_target.yml +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/affects/pair.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/clean/counted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/clean/noop.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/clean/notes.txt +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/clean/sorted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/diff/two_blocks.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/failing/unsorted.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/testdata/verbosity/mixed/both_kinds.py +0 -0
- {blockwatch_cli-0.21.0 → blockwatch_cli-0.22.0}/tests/verbosity.rs +0 -0
|
@@ -12,6 +12,39 @@ 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.22.0] - 2026-11-26
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Support for dotenv files (`.env`, `*.env`, `.env.*`, `.env-*`, `.env_*`, and copy suffixes such as `.env.example`),
|
|
20
|
+
with `#` comment parsing for `<block>` tags and `KEY=VALUE` symbols (including optional `export` prefix, unquoted
|
|
21
|
+
values with spaces or `<`/`>`, and single/double/backtick-quoted values). See [Dotenv](docs/symbols.md#dotenv)
|
|
22
|
+
([#186](https://github.com/mennanov/blockwatch/issues/186)).
|
|
23
|
+
- TypeScript, TSX, and JavaScript now expose nested symbols at any depth. Object literal properties (including
|
|
24
|
+
through `as const`, `satisfies`, and `<T>` assertions) are symbols, such as `#/STRING_LIMITS/SLUG` and
|
|
25
|
+
`#/brand/iconPlate`. Class members (`#/Config/MAX_RETRIES`), enum members (`#/Status/OPEN`), interface members, and
|
|
26
|
+
namespace members (`#/Api/VERSION`) are symbols too. See
|
|
27
|
+
[TypeScript and JavaScript](docs/symbols.md#typescript-and-javascript)
|
|
28
|
+
([#187](https://github.com/mennanov/blockwatch/issues/187)).
|
|
29
|
+
- Python class members and dict string keys are now symbols, at any depth: class attributes, annotated fields, `Enum` /
|
|
30
|
+
`StrEnum` members, methods, type aliases, nested classes (`#/Color/RED`, `#/Point/x`, `#/Point/move`), and string
|
|
31
|
+
keys of dict literals on top-level or class assignments (`#/PRESETS/fast-mode`), in both Python and Starlark. See
|
|
32
|
+
[Python and Starlark](docs/symbols.md#python-and-starlark) ([#188](https://github.com/mennanov/blockwatch/issues/188)).
|
|
33
|
+
- Support for Prisma schema files (`*.prisma`), with `//`, `///` and `/* */` comment parsing for `<block>` tags and
|
|
34
|
+
symbols for `datasource`, `generator`, `model`, `view`, `type` and `enum` blocks and their members (`#/Color`,
|
|
35
|
+
`#/Color/RED`, `#/Item/name`, `#/db/provider`, `#/client/provider`). See [Prisma](docs/symbols.md#prisma)
|
|
36
|
+
([#185](https://github.com/mennanov/blockwatch/issues/185)).
|
|
37
|
+
- Dockerfile (and Containerfile) `FROM` stages now have 0-based positional symbols (`#/0`, `#/1`, ...), matching
|
|
38
|
+
Docker's `COPY --from=0`. Unnamed stages can now be referenced directly (for example `apps/*/Dockerfile#/0`), while
|
|
39
|
+
named stages keep their `#/<name>` symbols and unnamed-stage `ARG`, `ENV`, and `LABEL` names stay at the top level. A
|
|
40
|
+
top-level name matching a stage index (such as `LABEL 0=...`) now reports an ambiguous symbol.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- Files ending in `.env` now resolve as Dotenv ahead of prefix variants, so `Makefile.env`, `Dockerfile.env`, and
|
|
45
|
+
`Jenkinsfile.env` are read as Dotenv rather than Makefile, Dockerfile, or Groovy. Use `-E Makefile.env=makefile`
|
|
46
|
+
(or `extensions` in `blockwatch.toml`) if a project keeps Makefile syntax in `Makefile.env`.
|
|
47
|
+
|
|
15
48
|
## [0.21.0] - 2026-11-25
|
|
16
49
|
|
|
17
50
|
### Added
|
|
@@ -274,7 +274,7 @@ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
|
274
274
|
|
|
275
275
|
[[package]]
|
|
276
276
|
name = "blockwatch"
|
|
277
|
-
version = "0.
|
|
277
|
+
version = "0.22.0"
|
|
278
278
|
dependencies = [
|
|
279
279
|
"anyhow",
|
|
280
280
|
"assert-json-diff",
|
|
@@ -330,6 +330,7 @@ dependencies = [
|
|
|
330
330
|
"tree-sitter-nix",
|
|
331
331
|
"tree-sitter-ocaml",
|
|
332
332
|
"tree-sitter-php",
|
|
333
|
+
"tree-sitter-prisma",
|
|
333
334
|
"tree-sitter-proto",
|
|
334
335
|
"tree-sitter-python",
|
|
335
336
|
"tree-sitter-ruby",
|
|
@@ -2754,6 +2755,16 @@ dependencies = [
|
|
|
2754
2755
|
"tree-sitter-language",
|
|
2755
2756
|
]
|
|
2756
2757
|
|
|
2758
|
+
[[package]]
|
|
2759
|
+
name = "tree-sitter-prisma"
|
|
2760
|
+
version = "0.2.2"
|
|
2761
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2762
|
+
checksum = "751183e2375a42865b07e3ea8a3be68c07cfb7fd4a7a3019946b323bd2bc2691"
|
|
2763
|
+
dependencies = [
|
|
2764
|
+
"cc",
|
|
2765
|
+
"tree-sitter-language",
|
|
2766
|
+
]
|
|
2767
|
+
|
|
2757
2768
|
[[package]]
|
|
2758
2769
|
name = "tree-sitter-proto"
|
|
2759
2770
|
version = "0.6.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "blockwatch"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.22.0"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
rust-version = "1.98"
|
|
6
6
|
repository = "https://github.com/mennanov/blockwatch"
|
|
@@ -75,6 +75,7 @@ tree-sitter-lua = "0.5"
|
|
|
75
75
|
tree-sitter-nix = "0.3.0"
|
|
76
76
|
tree-sitter-ocaml = "0.26"
|
|
77
77
|
tree-sitter-php = "0.25"
|
|
78
|
+
tree-sitter-prisma = "0.2.2"
|
|
78
79
|
tree-sitter-proto = "0.6.0"
|
|
79
80
|
tree-sitter-python = "0.25"
|
|
80
81
|
tree-sitter-ruby = "0.23"
|
|
@@ -10,7 +10,7 @@ Some parts of a codebase have to change together: a function and its docs, or a
|
|
|
10
10
|
blockwatch lets you write those rules in comments, right next to the code, or in `blockwatch.toml`. If they fall out of
|
|
11
11
|
sync, your pre-commit hook or CI run fails.
|
|
12
12
|
|
|
13
|
-
Supports [
|
|
13
|
+
Supports [39 languages](#supported-languages).
|
|
14
14
|
|
|
15
15
|
[//]: # (</block>)
|
|
16
16
|
|
|
@@ -103,9 +103,9 @@ Two validators work across files:
|
|
|
103
103
|
Both can point to a block, a whole file, a specific value in a file like `package.json#/version`, a section of a
|
|
104
104
|
Markdown file, an element or attribute in an XML file such as `pom.xml` or a `.csproj`, a declaration in a CSS file,
|
|
105
105
|
a constant in a Go, C, C++, Python, Rust, TypeScript, JavaScript, Java, C#, Kotlin, Swift, PHP or Dart file, a
|
|
106
|
-
variable in a shell script or
|
|
107
|
-
file (see [Symbols](docs/symbols.md)). The other validators check a single block on their own:
|
|
108
|
-
otherwise have to nitpick in code review.
|
|
106
|
+
variable in a `.env` file, shell script or Makefile, a field in a Protocol Buffers or Prisma file, or a value in a
|
|
107
|
+
Terraform or other HCL file (see [Symbols](docs/symbols.md)). The other validators check a single block on their own:
|
|
108
|
+
the things you'd otherwise have to nitpick in code review.
|
|
109
109
|
|
|
110
110
|
<!-- <block name="available-validators"
|
|
111
111
|
same-as="src/validators/validator.rs:validator-registry, docs/validators/README.md:validators-index"
|
|
@@ -241,7 +241,7 @@ exclusions, and custom extension mappings.
|
|
|
241
241
|
|
|
242
242
|
```yaml
|
|
243
243
|
- repo: https://github.com/mennanov/blockwatch
|
|
244
|
-
rev: v0.
|
|
244
|
+
rev: v0.22.0 # Use latest release
|
|
245
245
|
hooks:
|
|
246
246
|
- id: blockwatch
|
|
247
247
|
```
|
|
@@ -283,6 +283,7 @@ of each, such as `Gemfile` for Ruby. It also says how variants such as `Dockerfi
|
|
|
283
283
|
- CSS
|
|
284
284
|
- Dart
|
|
285
285
|
- Dockerfile
|
|
286
|
+
- Dotenv
|
|
286
287
|
- Elixir
|
|
287
288
|
- Go
|
|
288
289
|
- GraphQL
|
|
@@ -301,6 +302,7 @@ of each, such as `Gemfile` for Ruby. It also says how variants such as `Dockerfi
|
|
|
301
302
|
- Nix
|
|
302
303
|
- OCaml
|
|
303
304
|
- PHP (comments inside `<script>` and `<style>` are not read)
|
|
305
|
+
- Prisma
|
|
304
306
|
- Protocol Buffers
|
|
305
307
|
- Python
|
|
306
308
|
- Ruby
|
|
@@ -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.22.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.22.0 # Use latest release
|
|
63
63
|
hooks:
|
|
64
64
|
- id: blockwatch-commit-msg
|
|
65
65
|
```
|
|
@@ -201,10 +201,10 @@ blockwatch picks a file's language by its name, never by its content. The first
|
|
|
201
201
|
2. **A copy.** A name that ends in `.example`, `.sample`, `.dist`, `.template` or `.in` is a copy of another file,
|
|
202
202
|
and is read by the rest of its name: `config.toml.example` is TOML, and `config.h.in` is C++. Template languages,
|
|
203
203
|
such as `.j2` and `.tmpl`, are not stripped.
|
|
204
|
-
3. **A variant.** `Dockerfile`, `dockerfile`, `Containerfile`, `containerfile`, `Jenkinsfile`, `jenkinsfile`,
|
|
205
|
-
`Makefile`, `makefile` and `GNUmakefile` can be followed by `.`, `-` or `_` and more:
|
|
206
|
-
`Dockerfile-dev` and `Makefile.am` keep the name's language. After `-` or `_`, no `.` may follow,
|
|
207
|
-
`Dockerfile-logo.png` is not a Dockerfile. Some variants are other kinds of files and are skipped:
|
|
204
|
+
3. **A variant.** `.env`, `Dockerfile`, `dockerfile`, `Containerfile`, `containerfile`, `Jenkinsfile`, `jenkinsfile`,
|
|
205
|
+
`Makefile`, `makefile` and `GNUmakefile` can be followed by `.`, `-` or `_` and more: `.env.local`,
|
|
206
|
+
`Dockerfile.ci`, `Dockerfile-dev` and `Makefile.am` keep the name's language. After `-` or `_`, no `.` may follow,
|
|
207
|
+
so `Dockerfile-logo.png` is not a Dockerfile. Some variants are other kinds of files and are skipped:
|
|
208
208
|
- a Dockerfile variant with the part `dockerignore`, such as `Dockerfile.dockerignore`;
|
|
209
209
|
- a Makefile variant with the part `PL`, `SH`, `bat` or `cmd`, such as `Makefile.PL`.
|
|
210
210
|
|
|
@@ -228,6 +228,7 @@ without `*`, such as `.babelrc` or `Cargo.lock`, is a whole file name.
|
|
|
228
228
|
| CSS | `*.css` |
|
|
229
229
|
| Dart | `*.dart` |
|
|
230
230
|
| Dockerfile | `Containerfile`, `Dockerfile`, `*.containerfile`, `*.dockerfile` |
|
|
231
|
+
| Dotenv | `*.env` |
|
|
231
232
|
| Elixir | `mix.lock`, `*.ex`, `*.exs` |
|
|
232
233
|
| Go | `*.go` |
|
|
233
234
|
| Go modules | `go.mod`, `go.sum`, `go.work`, `go.work.sum` |
|
|
@@ -247,6 +248,7 @@ without `*`, such as `.babelrc` or `Cargo.lock`, is a whole file name.
|
|
|
247
248
|
| Nix | `*.nix` |
|
|
248
249
|
| OCaml | `*.eliom`, `*.eliomi`, `*.ml`, `*.ml4`, `*.mli` |
|
|
249
250
|
| PHP | `.php_cs`, `.php_cs.dist`, `Phakefile`, `*.aw`, `*.ctp`, `*.php`, `*.php3`, `*.php4`, `*.php5`, `*.phps`, `*.phpt`, `*.phtml` |
|
|
251
|
+
| Prisma | `*.prisma` |
|
|
250
252
|
| Protocol Buffers | `*.proto` |
|
|
251
253
|
| Python | `.gclient`, `DEPS`, `SConscript`, `SConstruct`, `wscript`, `*.gyp`, `*.gypi`, `*.lmi`, `*.py`, `*.py3`, `*.pyde`, `*.pyi`, `*.pyp`, `*.pyt`, `*.pyw`, `*.tac`, `*.vpy`, `*.wsgi`, `*.xpy` |
|
|
252
254
|
| Ruby | `.irbrc`, `.pryrc`, `.simplecov`, `Appraisals`, `Berksfile`, `Brewfile`, `Buildfile`, `Capfile`, `Dangerfile`, `Deliverfile`, `Fastfile`, `Gemfile`, `Guardfile`, `Jarfile`, `Mavenfile`, `Podfile`, `Puppetfile`, `Rakefile`, `Snapfile`, `Steepfile`, `Thorfile`, `Vagrantfile`, `buildfile`, `*.builder`, `*.eye`, `*.gemspec`, `*.god`, `*.jbuilder`, `*.mspec`, `*.podspec`, `*.prawn`, `*.rabl`, `*.rake`, `*.rb`, `*.rbi`, `*.rbuild`, `*.rbw`, `*.rbx`, `*.ru`, `*.ruby`, `*.thor`, `*.watchr` |
|
|
@@ -488,7 +490,7 @@ same-as-pattern = 'os\.environ\["(?P<value>[A-Z_]+)"\]'
|
|
|
488
490
|
A virtual block is a block of the file it wraps:
|
|
489
491
|
|
|
490
492
|
- **Any text file can hold a pattern or a whole-file block**, even one that blockwatch has no grammar for, such as
|
|
491
|
-
`.txt` or `.
|
|
493
|
+
`.txt` or `.csv`. Such a file has no tags, only the blocks that the config file declares. A symbol needs a file with
|
|
492
494
|
[symbols](symbols.md).
|
|
493
495
|
- **A symlink stands for the file it points at.** When `package.json` is a symlink to `base.json`, the target
|
|
494
496
|
`package.json#/version` wraps `base.json#/version`, and its violations are reported in `base.json`.
|
|
@@ -683,15 +685,15 @@ Nothing else about the run changes: the same violations are found, and the exit
|
|
|
683
685
|
"tool": {
|
|
684
686
|
"driver": {
|
|
685
687
|
"name": "blockwatch",
|
|
686
|
-
"version": "0.
|
|
687
|
-
"semanticVersion": "0.
|
|
688
|
+
"version": "0.22.0",
|
|
689
|
+
"semanticVersion": "0.22.0",
|
|
688
690
|
"informationUri": "https://github.com/mennanov/blockwatch",
|
|
689
691
|
"rules": [
|
|
690
692
|
{
|
|
691
693
|
"id": "keep-sorted",
|
|
692
694
|
"name": "keep-sorted",
|
|
693
695
|
"shortDescription": { "text": "Requires the lines of a block to stay in order." },
|
|
694
|
-
"helpUri": "https://github.com/mennanov/blockwatch/blob/v0.
|
|
696
|
+
"helpUri": "https://github.com/mennanov/blockwatch/blob/v0.22.0/docs/validators/keep-sorted.md"
|
|
695
697
|
}
|
|
696
698
|
]
|
|
697
699
|
}
|
|
@@ -52,6 +52,8 @@ declares, instead of tags in a comment.
|
|
|
52
52
|
| Makefile | `Makefile`, `GNUmakefile`, `*.makefile`, `*.mk`, `*.mak` | [Makefile](#makefile) |
|
|
53
53
|
| Dart | `*.dart` | [Dart](#dart) |
|
|
54
54
|
| Dockerfile | `Dockerfile`, `Containerfile`, `*.dockerfile` | [Dockerfile](#dockerfile) |
|
|
55
|
+
| Prisma | `*.prisma` | [Prisma](#prisma) |
|
|
56
|
+
| Dotenv | `.env`, `*.env`, `.env.*`, `.env-*`, `.env_*` | [Dotenv](#dotenv) |
|
|
55
57
|
|
|
56
58
|
<!-- </block> -->
|
|
57
59
|
|
|
@@ -445,7 +447,8 @@ h1, h2 { margin: 0; }
|
|
|
445
447
|
In a code file, each top-level name is a symbol: a constant, a variable, a type, a function or a macro. Its path is
|
|
446
448
|
`#/NAME`.
|
|
447
449
|
With `const MaxPorts = 8` in `consts.go`, `consts.go#/MaxPorts` points at `8`. In Java, C#, Kotlin, Swift, Protocol
|
|
448
|
-
Buffers, PHP and
|
|
450
|
+
Buffers, PHP, Dart, Prisma, Python, TypeScript and JavaScript, the members of a type are symbols too, under the type's
|
|
451
|
+
name: `Config.java#/Config/MAX_PORTS`.
|
|
449
452
|
In HCL, each block, attribute and object key is a symbol: `main.tf#/variable/region/default`.
|
|
450
453
|
|
|
451
454
|
- **A value is the initializer as written.** blockwatch never works it out: `20 * 1024 * 1024` stays as it is, and so
|
|
@@ -461,7 +464,7 @@ In HCL, each block, attribute and object key is a symbol: `main.tf#/variable/reg
|
|
|
461
464
|
where the error is.
|
|
462
465
|
- **A path to a string that blockwatch can't decode stops the run.** Other paths in the file still resolve.
|
|
463
466
|
- **Members are not symbols yet**, such as a method or a field, except in Java, C#, Kotlin, Swift, Protocol Buffers,
|
|
464
|
-
HCL, PHP and
|
|
467
|
+
HCL, PHP, Dart, Prisma, Python, TypeScript and JavaScript.
|
|
465
468
|
|
|
466
469
|
<!-- </block> -->
|
|
467
470
|
|
|
@@ -561,37 +564,64 @@ if TYPE_CHECKING:
|
|
|
561
564
|
else:
|
|
562
565
|
MODE = "run"
|
|
563
566
|
|
|
567
|
+
class Color(StrEnum):
|
|
568
|
+
RED = "red"
|
|
569
|
+
|
|
564
570
|
@dataclass
|
|
565
571
|
class Point:
|
|
572
|
+
label: str
|
|
566
573
|
x: int = 0
|
|
567
574
|
|
|
575
|
+
def move(self):
|
|
576
|
+
pass
|
|
577
|
+
|
|
578
|
+
PRESETS: dict[str, str] = {
|
|
579
|
+
"fast-mode": "fast",
|
|
580
|
+
}
|
|
581
|
+
|
|
568
582
|
def load(path):
|
|
569
583
|
return path
|
|
570
584
|
```
|
|
571
585
|
|
|
572
|
-
| Path
|
|
573
|
-
|
|
574
|
-
| `#/PYTHON_VERSION`
|
|
575
|
-
| `#/TIMEOUT`
|
|
576
|
-
| `#/B`
|
|
577
|
-
| `#/MODE`
|
|
578
|
-
| `#/
|
|
579
|
-
| `#/
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
586
|
+
| Path | Points at |
|
|
587
|
+
|-------------------------|-----------------------------------------|
|
|
588
|
+
| `#/PYTHON_VERSION` | `3.12` |
|
|
589
|
+
| `#/TIMEOUT` | `30` |
|
|
590
|
+
| `#/B` | `5`, as does `#/A` |
|
|
591
|
+
| `#/MODE` | a violation, as `MODE` is defined twice |
|
|
592
|
+
| `#/Color/RED` | `red` |
|
|
593
|
+
| `#/Point` | the whole class, `@dataclass` included |
|
|
594
|
+
| `#/Point/label` | `label: str`, as it has no default |
|
|
595
|
+
| `#/Point/x` | `0` |
|
|
596
|
+
| `#/Point/move` | the whole method |
|
|
597
|
+
| `#/PRESETS` | the whole dict, as written |
|
|
598
|
+
| `#/PRESETS/fast-mode` | `fast` |
|
|
599
|
+
| `#/load` | the whole function |
|
|
600
|
+
|
|
601
|
+
- **Class members are symbols too**, at any depth: class attributes, annotated fields, `Enum` members, methods, type
|
|
602
|
+
aliases and nested classes. A path goes from the outer class down: `#/Outer/Inner/X`. Local names and `self.x = 1`
|
|
603
|
+
inside a method are not symbols.
|
|
604
|
+
- **String keys of a dict literal are symbols**, at any depth, for top-level dicts and dicts on class attributes:
|
|
605
|
+
`#/PRESETS/fast-mode` or `#/CONFIG/db/host`. Each key decodes like a string value, so `"a\"b"` is `a"b` and
|
|
606
|
+
`"a" "b"` is `ab`. Escape keys as in [Writing a path](#writing-a-path) (`/` as `~1`, `~` as `~0`, `,` as `%2C`,
|
|
607
|
+
`%` as `%25`). Bytes, f-strings with fields, undecodable escapes, non-string keys (such as numbers or names) and
|
|
608
|
+
`**other` are skipped, along with everything under them. Dict comprehensions and sets have no key symbols.
|
|
609
|
+
- **The bodies of `if`, `try` or `with` at the top level or inside a class count**, as Python runs them. So a name
|
|
610
|
+
defined in two branches is defined twice, and so are two methods with one name (such as a `@property` and its setter).
|
|
611
|
+
The bodies of `for`, `while` and `match` don't count.
|
|
612
|
+
- **`A = B = 5` gives both names the whole statement**, and `A = B = {"k": 1}` puts `k` under both `#/A/k` and `#/B/k`.
|
|
613
|
+
`X: int` has no value. `X += [...]` doesn't change the value of `X`.
|
|
585
614
|
- **A decorator is part of the definition.**
|
|
586
|
-
- **Imports, `as` targets, `a, b = 1, 2`, `obj.x = 1` and `_` are not symbols.** A type alias is one, without a
|
|
587
|
-
|
|
615
|
+
- **Imports, `as` targets, `a, b = 1, 2`, `obj.x = 1` and `_` are not symbols.** A type alias is one, without a value:
|
|
616
|
+
`type Pair[T] = tuple[T, T]` is `#/Pair`.
|
|
588
617
|
- **Strings follow Python's escapes.** `"\xe9"` is `é`. An escape Python doesn't know, such as `\d`, stays as written.
|
|
589
618
|
A raw string is its text. An f-string without a field is its text, with `{{` as `{`. An f-string with a field and
|
|
590
|
-
bytes stay as written. A path to a string with a `\N{...}` escape stops the run, and so does a path to a string
|
|
591
|
-
|
|
592
|
-
- **Starlark files, such as `BUILD` and `.bzl`, follow the same rules
|
|
619
|
+
bytes stay as written. A path to a string with a `\N{...}` escape stops the run, and so does a path to a string with
|
|
620
|
+
an escape that Python rejects, such as `"\x4"` or `"\N"`.
|
|
621
|
+
- **Starlark files, such as `BUILD` and `.bzl`, follow the same rules**, dict keys included. A rule call, such as
|
|
593
622
|
`cc_library(name = "lib")`, is not a symbol.
|
|
594
|
-
- **
|
|
623
|
+
- **A syntax error stops the run for the member or dict entry that holds it, and for each class or dict around it.**
|
|
624
|
+
The other members and entries still resolve.
|
|
595
625
|
|
|
596
626
|
<!-- </block> -->
|
|
597
627
|
|
|
@@ -645,8 +675,30 @@ export const MAX_RETRIES = 5;
|
|
|
645
675
|
const MODE = "dev" as const;
|
|
646
676
|
const A = 1, B = 2;
|
|
647
677
|
|
|
678
|
+
export const LIMITS = {
|
|
679
|
+
SLUG: 40,
|
|
680
|
+
"branch-name": 100,
|
|
681
|
+
} as const;
|
|
682
|
+
|
|
648
683
|
@sealed
|
|
649
|
-
export class Point {
|
|
684
|
+
export class Point {
|
|
685
|
+
static readonly ORIGIN = 0;
|
|
686
|
+
constructor(public readonly x: number) {}
|
|
687
|
+
distance() { return this.x; }
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export enum Status {
|
|
691
|
+
OPEN = "open",
|
|
692
|
+
PENDING,
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export interface Options {
|
|
696
|
+
readonly retries?: number;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export namespace Api {
|
|
700
|
+
export const VERSION = "1.0";
|
|
701
|
+
}
|
|
650
702
|
|
|
651
703
|
type Mode = "dev" | "prod";
|
|
652
704
|
|
|
@@ -655,27 +707,52 @@ function normalize(text: string): string {
|
|
|
655
707
|
}
|
|
656
708
|
```
|
|
657
709
|
|
|
658
|
-
| Path
|
|
659
|
-
|
|
660
|
-
| `#/MAX_RETRIES`
|
|
661
|
-
| `#/MODE`
|
|
662
|
-
| `#/B`
|
|
663
|
-
| `#/
|
|
664
|
-
| `#/
|
|
665
|
-
| `#/
|
|
710
|
+
| Path | Points at |
|
|
711
|
+
|------------------------|-------------------------------------|
|
|
712
|
+
| `#/MAX_RETRIES` | `5` |
|
|
713
|
+
| `#/MODE` | `dev` |
|
|
714
|
+
| `#/B` | `2`, and covers only `B = 2` |
|
|
715
|
+
| `#/LIMITS` | the whole object, as written |
|
|
716
|
+
| `#/LIMITS/SLUG` | `40` |
|
|
717
|
+
| `#/LIMITS/branch-name` | `100` |
|
|
718
|
+
| `#/Point` | the whole class, `@sealed` included |
|
|
719
|
+
| `#/Point/ORIGIN` | `0` |
|
|
720
|
+
| `#/Point/x` | `public readonly x: number` |
|
|
721
|
+
| `#/Point/distance` | the whole method |
|
|
722
|
+
| `#/Status/OPEN` | `open` |
|
|
723
|
+
| `#/Status/PENDING` | `PENDING`, as it has no value |
|
|
724
|
+
| `#/Options/retries` | `readonly retries?: number` |
|
|
725
|
+
| `#/Api/VERSION` | `1.0` |
|
|
726
|
+
| `#/Mode` | the whole type |
|
|
727
|
+
| `#/normalize` | the whole function |
|
|
666
728
|
|
|
667
729
|
- **`const`, `let`, `var`, functions, classes, enums, interfaces, type aliases and namespaces are symbols.**
|
|
668
730
|
`export default function main() {}` is `#/main`.
|
|
669
|
-
- **
|
|
670
|
-
|
|
731
|
+
- **Object literal properties are symbols**, at any depth, on variables, class fields and parameter defaults:
|
|
732
|
+
`#/LIMITS/SLUG` or `#/CONFIG/db/host`. Shorthand properties (`{ PORT }`) keep the name as their value. Object
|
|
733
|
+
methods, getters, setters and plain decimal integer keys (such as `0` or `200`, up to `2^53 - 1`) are symbols too.
|
|
734
|
+
Other numeric keys (`0x10`, `1_000`, `1.5`, `1e2`, `1n`) are skipped, along with everything under them. String keys
|
|
735
|
+
decode like string values, so `"a\"b"` is `a"b`. Escape keys as in [Writing a path](#writing-a-path) (`/` as `~1`,
|
|
736
|
+
`~` as `~0`, `,` as `%2C`, `%` as `%25`). Computed keys (`[key]`), spreads (`...other`) and undecodable string keys
|
|
737
|
+
are skipped, with everything under them.
|
|
738
|
+
- **Class, enum, interface and namespace members are symbols too.** Class members include fields, `#private` names
|
|
739
|
+
(`#/Box/%23secret`), getters, setters, methods, abstract methods, and TypeScript constructor parameter properties
|
|
740
|
+
(`public`, `private`, `protected`, `readonly` or `override`). A getter and a setter with one name are defined twice;
|
|
741
|
+
wrap the one you mean in a block instead. `constructor`, overload signatures, index signatures and `static {}` blocks
|
|
742
|
+
are not symbols. Dotted namespaces (`namespace A.B { export const C = 1; }`) nest each part (`#/A/B/C`).
|
|
743
|
+
- **Type syntax is not part of a value.** `"dev" as const` is `dev`, `x satisfies T` is `x`, `<T>x` is `x`, and `x!` is
|
|
744
|
+
`x`. Object literals and class expressions wrapped in those forms still expose their members.
|
|
745
|
+
- **A function or class method with overloads is its implementation**, the one with a body. Overloaded signatures in
|
|
746
|
+
an `interface` or `abstract class` have no body, so they are defined twice.
|
|
671
747
|
- **`declare const`, `declare function`, `declare module "x"` and `declare global` are not symbols.** They only state
|
|
672
|
-
types. A `declare class`, `enum` or `namespace`
|
|
748
|
+
types. A `declare class`, `enum` or `namespace` and its members are symbols, except method signatures without a body.
|
|
673
749
|
- **Imports, `export { ... }`, `const { a } = b`, `module.exports`, an anonymous `export default` and `_` are not
|
|
674
750
|
symbols.**
|
|
675
751
|
- **Strings follow JavaScript's escapes.** `"\uD83D\uDE00"` is `😀`. A template without `${...}` is its text. A template
|
|
676
752
|
with a field and a tagged template, such as ``String.raw`a` ``, stay as written. A path to a string with a legacy
|
|
677
753
|
escape, such as `\07`, stops the run.
|
|
678
|
-
- **
|
|
754
|
+
- **A syntax error stops the run for the member or property that holds it, and for each type, namespace or object
|
|
755
|
+
around it.** The other members and properties still resolve.
|
|
679
756
|
|
|
680
757
|
<!-- </block> -->
|
|
681
758
|
|
|
@@ -1418,6 +1495,7 @@ ENTRYPOINT ["/app"]
|
|
|
1418
1495
|
|----------------------------------------------|----------------------------------------------------|
|
|
1419
1496
|
| `#/GO_VERSION` | `1.25` |
|
|
1420
1497
|
| `#/BASE` | `debian:bookworm-slim` |
|
|
1498
|
+
| `#/0` | `golang:${GO_VERSION}-alpine`, as written |
|
|
1421
1499
|
| `#/builder` | `golang:${GO_VERSION}-alpine`, as written |
|
|
1422
1500
|
| `#/builder/GO_VERSION` | not found: it has no default |
|
|
1423
1501
|
| `#/builder/TARGETARCH` | `amd64` |
|
|
@@ -1425,21 +1503,24 @@ ENTRYPOINT ["/app"]
|
|
|
1425
1503
|
| `#/builder/GOFLAGS` | `-mod=vendor` |
|
|
1426
1504
|
| `#/builder/LEGACY` | `some value` |
|
|
1427
1505
|
| `#/builder/org.opencontainers.image.version` | `2.1.0` |
|
|
1506
|
+
| `#/1` | `ghcr.io/astral-sh/uv:0.13.5` |
|
|
1428
1507
|
| `#/uv` | `ghcr.io/astral-sh/uv:0.13.5` |
|
|
1508
|
+
| `#/2` | `${BASE}`, as written |
|
|
1429
1509
|
| `#/APP_HOME` | `/srv/app` |
|
|
1430
1510
|
| `#/PATH` | `"${APP_HOME}/bin:${PATH}"`, as written |
|
|
1431
1511
|
|
|
1432
|
-
- **Each `ARG` with a default, each `ENV` and each `
|
|
1433
|
-
- **
|
|
1434
|
-
|
|
1512
|
+
- **Each `ARG` with a default, each `ENV`, each `LABEL` and each `FROM` stage is a symbol.**
|
|
1513
|
+
- **Every `FROM` stage has a 0-based position (`#/0`, `#/1`, ...), matching Docker's `COPY --from=0`.** A named stage
|
|
1514
|
+
also has its name (`#/builder`), and puts its `ARG`, `ENV` and `LABEL` names under `#/builder/`. The names of an
|
|
1515
|
+
unnamed stage sit at the top level, next to the `ARG`s before the first `FROM`.
|
|
1435
1516
|
- **A stage name keeps its case.** Docker ignores the case, so `--from=builder` finds `AS Builder`, but the path must
|
|
1436
1517
|
be `#/Builder/`.
|
|
1437
|
-
- **A
|
|
1438
|
-
`ghcr.io/astral-sh/uv:0.13.5`. An image in `COPY --from=...`
|
|
1518
|
+
- **A stage's value is its image**, with its tag and digest, as written: `#/1` and `#/uv` both give
|
|
1519
|
+
`ghcr.io/astral-sh/uv:0.13.5`, and `#/2` gives `${BASE}`. An image in `COPY --from=...` has no symbol.
|
|
1439
1520
|
- **An `ARG` without a default is not a symbol.** An `ENV` or a `LABEL` without a value, such as `ENV NAME` alone on
|
|
1440
1521
|
its line, fails to resolve. Docker rejects it too. An empty default, such as `ARG NAME=`, gives an empty string.
|
|
1441
|
-
- **An `ARG` and an `ENV` with one name in a stage are defined twice**, and so are names repeated across unnamed stages
|
|
1442
|
-
Wrap the one you mean in a block instead.
|
|
1522
|
+
- **An `ARG` and an `ENV` with one name in a stage are defined twice**, and so are names repeated across unnamed stages
|
|
1523
|
+
or a top-level name matching a stage index (such as `LABEL 0=...`). Wrap the one you mean in a block instead.
|
|
1443
1524
|
- **In `ENV A=1 B=2` and `ARG A=1 B=2`, each name covers only its own pair.** In `FROM`, the symbol covers the whole
|
|
1444
1525
|
line.
|
|
1445
1526
|
- **Strings decode quotes and line continuations.** In `"..."`, the escape character goes away only before `"`, `$` or
|
|
@@ -1455,6 +1536,118 @@ ENTRYPOINT ["/app"]
|
|
|
1455
1536
|
|
|
1456
1537
|
<!-- </block> -->
|
|
1457
1538
|
|
|
1539
|
+
## Prisma
|
|
1540
|
+
|
|
1541
|
+
<!-- <block name="prisma-paths"> -->
|
|
1542
|
+
|
|
1543
|
+
```prisma
|
|
1544
|
+
datasource db {
|
|
1545
|
+
provider = "postgresql"
|
|
1546
|
+
url = env("DATABASE_URL")
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
generator client {
|
|
1550
|
+
provider = "prisma-client-js"
|
|
1551
|
+
previewFeatures = ["views"]
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
enum Color {
|
|
1555
|
+
RED
|
|
1556
|
+
GREEN @map("green")
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
model Item {
|
|
1560
|
+
id String @id @default(uuid())
|
|
1561
|
+
name String @unique
|
|
1562
|
+
address Address?
|
|
1563
|
+
|
|
1564
|
+
@@map("items")
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
type Address {
|
|
1568
|
+
street String
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
view ActiveItem {
|
|
1572
|
+
id String @unique
|
|
1573
|
+
}
|
|
1574
|
+
```
|
|
1575
|
+
|
|
1576
|
+
| Path | Points at |
|
|
1577
|
+
|-----------------------------|-----------------------------------|
|
|
1578
|
+
| `#/db` | the whole `datasource` block |
|
|
1579
|
+
| `#/db/provider` | `postgresql` |
|
|
1580
|
+
| `#/db/url` | `env("DATABASE_URL")`, as written |
|
|
1581
|
+
| `#/client/previewFeatures` | `["views"]`, as written |
|
|
1582
|
+
| `#/Color` | the whole `enum` |
|
|
1583
|
+
| `#/Color/RED` | `RED` |
|
|
1584
|
+
| `#/Color/GREEN` | `GREEN @map("green")` |
|
|
1585
|
+
| `#/Item` | the whole `model` |
|
|
1586
|
+
| `#/Item/name` | `name String @unique` |
|
|
1587
|
+
| `#/Address/street` | `street String` |
|
|
1588
|
+
| `#/ActiveItem/id` | `id String @unique` |
|
|
1589
|
+
|
|
1590
|
+
- **Each `datasource`, `generator`, `model`, `view`, `type` and `enum` block is a symbol, and so is each member in it**:
|
|
1591
|
+
a property of a `datasource` or `generator`, a field of a `model`, `view` or `type`, or an `enum` value.
|
|
1592
|
+
- **Properties in `datasource` and `generator` blocks have values.** A double-quoted string is decoded using JSON string
|
|
1593
|
+
escapes: `"postgresql"` is `postgresql`. Any other expression stays as written, such as `env("DATABASE_URL")` or
|
|
1594
|
+
`["views"]`. A single-quoted string or an invalid escape stops the run for that path.
|
|
1595
|
+
- **Fields and enum values have no value**, so `same-as` reads their whole declaration, attributes included (such as
|
|
1596
|
+
`@unique`, `@db.VarChar(255)` or `@map("green")`).
|
|
1597
|
+
- **Block attributes such as `@@map`, `@@index`, `@@unique` and `@@schema` are not symbols.**
|
|
1598
|
+
- **A symbol covers its whole block or member**, without the comments above it.
|
|
1599
|
+
- **Two blocks with the same name make that top-level path a violation.** A member path under one of them still resolves
|
|
1600
|
+
if only one block defines that member.
|
|
1601
|
+
- **A syntax error stops the run for the member that holds it and for its enclosing block.** Other members and blocks in
|
|
1602
|
+
the file still resolve.
|
|
1603
|
+
|
|
1604
|
+
<!-- </block> -->
|
|
1605
|
+
|
|
1606
|
+
## Dotenv
|
|
1607
|
+
|
|
1608
|
+
<!-- <block name="dotenv-paths"> -->
|
|
1609
|
+
|
|
1610
|
+
```dotenv
|
|
1611
|
+
# Database configuration
|
|
1612
|
+
DATABASE_POOL_LIMIT=10
|
|
1613
|
+
EMAIL_FROM=Example <noreply@example.com>
|
|
1614
|
+
export VITE_API_URL=https://api.example.com
|
|
1615
|
+
COLOR=#5097ba
|
|
1616
|
+
PORT = 8080 # inline comment
|
|
1617
|
+
MESSAGE="hello\nworld\t\"\$1\"\\end\d"
|
|
1618
|
+
SINGLE='literal \n $HOME # hash'
|
|
1619
|
+
MULTILINE=`line 1
|
|
1620
|
+
line 2`
|
|
1621
|
+
EMPTY=
|
|
1622
|
+
```
|
|
1623
|
+
|
|
1624
|
+
| Path | Points at |
|
|
1625
|
+
|-------------------------|-------------------------------------------------------|
|
|
1626
|
+
| `#/DATABASE_POOL_LIMIT` | `10` |
|
|
1627
|
+
| `#/EMAIL_FROM` | `Example <noreply@example.com>` |
|
|
1628
|
+
| `#/VITE_API_URL` | `https://api.example.com` |
|
|
1629
|
+
| `#/COLOR` | `#5097ba` |
|
|
1630
|
+
| `#/PORT` | `8080` |
|
|
1631
|
+
| `#/MESSAGE` | `hello`, `world`, `"$1"\end\d` (with newline and tab) |
|
|
1632
|
+
| `#/SINGLE` | `literal \n $HOME # hash` |
|
|
1633
|
+
| `#/MULTILINE` | `line 1` and `line 2` on two lines |
|
|
1634
|
+
| `#/EMPTY` | `""` (empty string) |
|
|
1635
|
+
|
|
1636
|
+
- **Each `KEY=VALUE` assignment is a symbol**, with an optional `export` prefix. Keys hold ASCII letters, digits, `_`,
|
|
1637
|
+
`.` and `-`. Spaces and tabs around `=` are ignored.
|
|
1638
|
+
- **Unquoted values keep spaces and `<`/`>` characters**, with trailing spaces and tabs removed. A `#` starts an inline
|
|
1639
|
+
comment only when a space or tab comes right before it, so `#5097ba` and URL fragments stay part of the value.
|
|
1640
|
+
- **Quoted values (`"..."`, `'...'`, `` `...` ``) can span multiple lines**, normalizing `\r\n` line breaks to `\n`.
|
|
1641
|
+
Double quotes decode `\n`, `\r`, `\t`, `\"`, `\\`, and `\$`, keeping unknown escapes as written. Single quotes and
|
|
1642
|
+
backticks keep every character literally. Variable references such as `$VAR` are not expanded.
|
|
1643
|
+
- **Duplicate keys are a violation**, because blockwatch can't tell which copy you mean.
|
|
1644
|
+
- **A syntax error anywhere stops the run**, such as a line without `=` (including Docker bare `VAR` passthrough
|
|
1645
|
+
lines), Ruby's `KEY: value` syntax, an invalid key, an unterminated quote, text after a closing quote, or a bare
|
|
1646
|
+
`\r` line ending (use LF or CRLF instead). Escaped quotes inside single quotes (such as python-dotenv's `'it\'s'`)
|
|
1647
|
+
are not supported because single quotes keep every character literally.
|
|
1648
|
+
|
|
1649
|
+
<!-- </block> -->
|
|
1650
|
+
|
|
1458
1651
|
---
|
|
1459
1652
|
|
|
1460
1653
|
[← Return to README](../README.md)
|
|
@@ -56,7 +56,7 @@ A target without `:` or `#` is a whole file:
|
|
|
56
56
|
// <block affects="config/schema.json">
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
A block has to live in a comment, and some files can't have comments: plain JSON,
|
|
59
|
+
A block has to live in a comment, and some files can't have comments: plain JSON, lockfiles, CSV, text
|
|
60
60
|
fixtures. A whole-file target works for all of them. Change the block, and the run fails until that file changes too.
|
|
61
61
|
|
|
62
62
|
Things to know:
|
|
@@ -141,7 +141,7 @@ If the layout matters, leave the pattern off. Without one, the content is compar
|
|
|
141
141
|
## Whole files as targets
|
|
142
142
|
|
|
143
143
|
A target without `:` or `#` is a whole file. The block is compared against the file's full text, and nothing in the
|
|
144
|
-
file is parsed. So any file can be a target, even one that can't hold a block, such as `.
|
|
144
|
+
file is parsed. So any file can be a target, even one that can't hold a block, such as `.nvmrc` or a lockfile:
|
|
145
145
|
|
|
146
146
|
```rust
|
|
147
147
|
// <block same-as=".nvmrc" same-as-pattern="\d+\.\d+\.\d+">
|
|
@@ -6,7 +6,7 @@ setup(
|
|
|
6
6
|
name='blockwatch-pre-commit-placeholder',
|
|
7
7
|
version='0.0.0',
|
|
8
8
|
# <block name="blockwatch-cli-version" same-as-pattern="blockwatch-cli==(?P<value>\d+\.\d+\.\d+)">
|
|
9
|
-
install_requires=['blockwatch-cli==0.
|
|
9
|
+
install_requires=['blockwatch-cli==0.22.0'],
|
|
10
10
|
# </block>
|
|
11
11
|
# Without it, setuptools takes the directories under src/ for Python packages.
|
|
12
12
|
packages=[],
|
|
@@ -15,7 +15,7 @@ pub(crate) enum TargetReference {
|
|
|
15
15
|
name: String,
|
|
16
16
|
},
|
|
17
17
|
/// A whole file. Nothing is parsed out of it, which is what lets a reference point at a format
|
|
18
|
-
/// blockwatch has no grammar for (
|
|
18
|
+
/// blockwatch has no grammar for (lockfiles, plain-text fixtures).
|
|
19
19
|
File(RepoPath),
|
|
20
20
|
/// A symbol, found by `path` in `file`, or in the referencing file itself when `file` is `None`.
|
|
21
21
|
Symbol {
|