blockwatch-cli 0.17.0__tar.gz → 0.18.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.17.0 → blockwatch_cli-0.18.0}/CHANGELOG.md +20 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/Cargo.lock +89 -12
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/Cargo.toml +2 -2
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/PKG-INFO +1 -1
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/README.md +51 -38
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/ci.md +2 -2
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/cli.md +3 -3
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/symbols.md +80 -6
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/setup.py +1 -1
- blockwatch_cli-0.18.0/src/language_parsers/css.rs +950 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/mod.rs +3 -2
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/xml.rs +2 -2
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/skill.md +25 -10
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbol_path.rs +1 -3
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbols/mod.rs +10 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/target_reference.rs +18 -18
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/symbol_references.rs +7 -0
- blockwatch_cli-0.18.0/tests/testdata/symbol_references/css_source.rs +3 -0
- blockwatch_cli-0.18.0/tests/testdata/symbol_references/css_target.css +3 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/escapes_source.rs +2 -2
- blockwatch_cli-0.17.0/src/language_parsers/css.rs +0 -74
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.agents/.claude-plugin/plugin.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.agents/skills/blockwatch/SKILL.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.claude-plugin/marketplace.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/FUNDING.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/dependabot.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/blockwatch.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/codeql.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/markdownlint.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/pypi.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/release.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/rust.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/trusted-checks.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.gitignore +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.markdownlint-cli2.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.pre-commit-config.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.pre-commit-hooks.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/AGENTS.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/CLAUDE.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/LICENSE +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/SECURITY.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/blockwatch.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/clippy.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/codecov.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/demo.gif +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/dist-workspace.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/agents.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/README.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/affects.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/check-ai.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/check-lua.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/keep-sorted.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/keep-unique.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/line-count.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/line-pattern.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/same-as.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/pypi/pyproject.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/pyproject.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/release.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/scripts/check_language_count.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/scripts/check_latest_gpt_nano_model.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/block_parser.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/blocks.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/cli.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/config.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/diff_parser.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/explain.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/flags.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/fs.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/bash.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/c.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/c_sharp.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/cmake.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/cpp.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/dart.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/dockerfile.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/elixir.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/go.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/graphql.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/groovy.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/hcl.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/html.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/java.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/javascript.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/json.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/kotlin.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/lean.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/lua.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/makefile.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/markdown.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/mdx.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/nix.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/ocaml.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/php.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/proto.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/python.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/ruby.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/rust.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/scala.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/sql.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/starlark.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/swift.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/toml.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/tsx.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/typescript.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/yaml.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/lib.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/main.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/path_arguments.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/paths_glob.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/repo_path.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/report.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/sarif.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/scan.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/settings.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbols/code.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/tag_parser.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/affects.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/check_ai.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/check_lua.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/keep_sorted.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/keep_unique.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/line_count.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/line_pattern.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/mod.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/same_as.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/violation_address.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/virtual_blocks.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/affects.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/check_ai.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/check_lua.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/common/empty.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/common/mod.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/config.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/encoding.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/explain.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/general.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/keep_sorted.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/keep_unique.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/line_count.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/line_pattern.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/list.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/path_arguments.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/repository_root.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/same_as.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/sarif.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/skill.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/suppressions.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/cross_file_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/cross_file_target.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/dangling.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/missing_symbol.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/more_added_than_deleted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/multiline_tag_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/multiline_tag_target.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/nested_mapping_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/nested_mapping_target.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/sibling.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/symbol_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/symbol_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/table_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/table_target.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/tag_and_content_source.ts +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/tag_and_content_target.ts +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/whole_file_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/whole_file_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_ai/two_blocks.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects_drift.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/blocking_io.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/blocking_io.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/echo.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/fail.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/mode.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/os.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pathfmt/report_path.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pathfmt/source.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern_many_matches.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern_no_match.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/success.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/success_and_failure.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/config.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/package.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/blue/package.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/green/package.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/red/package.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/explain/a.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/explain/check.lua +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/block_selection.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/custom_file_extension.javascript +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/custom_file_extension.python +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/disable_enable.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/invalid.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/subdir/nested_invalid.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/valid.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/severity.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/hidden/.github/workflows/ci.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/keep_sorted/orderings.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/keep_unique/basic_and_pattern.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_count/equality_and_greater_than.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_pattern/forbidden_text.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_pattern/hex_and_word_patterns.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/.hg/.gitkeep +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/a.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/b.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/positions/unicode_columns.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/package.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths/alpha/item.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths/beta/item.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths_and_block_source.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths_source.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/sibling.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/split_table_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/split_table_target.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/symbol_mismatch_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/symbol_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/target.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_mismatch_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/advisory.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/clean.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/sorted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/unnamed.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_gone_a.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_gone_b.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_lowercase_trailer.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_malformed.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_with_noise.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/dangling.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/sorted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/symbol.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/symbol_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/two_rules.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/unnamed.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/Makefile +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/bzl_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/bzl_target.bzl +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/c_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/c_target.c +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cpp_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cpp_target.cpp +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cs_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cs_target.cs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/csproj_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/csproj_target.csproj +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/dart_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/dart_target.dart +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/escapes_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/filter_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/filter_target.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/go_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/go_target.go +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/h_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/h_target.h +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/hcl_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/hcl_target.hcl +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/java_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/java_target.java +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/js_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/js_target.js +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/json_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/json_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/jsonc_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/jsonc_target.jsonc +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kt_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kt_target.kt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kts_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kts_target.kts +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/makefile_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/markdown_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/markdown_target.markdown +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/md_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/md_target.md +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mdx_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mdx_target.mdx +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mixed_list_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mixed_list_target.json +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/nomad_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/nomad_target.nomad +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/php_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/php_target.php +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/phtml_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/phtml_target.phtml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/proto_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/proto_target.proto +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/py_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/py_target.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/rs_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/rs_target.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/sh_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/sh_target.sh +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/swift_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/swift_target.swift +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tf_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tf_target.tf +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tfvars_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tfvars_target.tfvars +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tofu_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tofu_target.tofu +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/toml_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/toml_target.toml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/ts_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/ts_target.ts +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tsx_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tsx_target.tsx +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/xml_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/xml_target.xml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yaml_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yaml_target.yaml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yml_source.rs +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yml_target.yml +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/affects/pair.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/counted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/noop.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/notes.txt +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/sorted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/diff/two_blocks.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/failing/unsorted.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/mixed/both_kinds.py +0 -0
- {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/verbosity.rs +0 -0
|
@@ -12,6 +12,26 @@ 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.18.0] - 2026-11-07
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Symbols in CSS files (`.css`). `theme.css#/:root/--brand` points at the value of `--brand` in the `:root` rule, and
|
|
20
|
+
`#/@media (max-width: 768px)/.card/padding` at a declaration in a rule inside `@media`. Each rule, each at-rule with
|
|
21
|
+
a block and each declaration is a symbol. A value loses `!important` and the comments around it, and a value that is
|
|
22
|
+
one string is decoded. See [CSS](docs/symbols.md#css).
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- A symbol path can hold a `:`, such as `#/manifest/application/@android:name` or `#/ns::helper`. Before, a reference
|
|
27
|
+
couldn't hold both `#` and `:`, so each `:` had to be written `%3A`. `%3A` still works. Messages now show a `:` as
|
|
28
|
+
written.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- In CSS files, `/*` inside an unquoted `url(...)` no longer starts a comment. Browsers read it as part of the URL. A
|
|
33
|
+
comment left open at the end of a CSS file is now read as a comment, as CSS says, so a tag in it counts.
|
|
34
|
+
|
|
15
35
|
## [0.17.0] - 2026-11-06
|
|
16
36
|
|
|
17
37
|
### Added
|
|
@@ -274,7 +274,7 @@ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
|
274
274
|
|
|
275
275
|
[[package]]
|
|
276
276
|
name = "blockwatch"
|
|
277
|
-
version = "0.
|
|
277
|
+
version = "0.18.0"
|
|
278
278
|
dependencies = [
|
|
279
279
|
"anyhow",
|
|
280
280
|
"assert-json-diff",
|
|
@@ -284,6 +284,7 @@ dependencies = [
|
|
|
284
284
|
"axum",
|
|
285
285
|
"bigdecimal",
|
|
286
286
|
"clap",
|
|
287
|
+
"cssparser",
|
|
287
288
|
"fnv",
|
|
288
289
|
"globset",
|
|
289
290
|
"heck",
|
|
@@ -314,7 +315,6 @@ dependencies = [
|
|
|
314
315
|
"tree-sitter-cmake",
|
|
315
316
|
"tree-sitter-containerfile",
|
|
316
317
|
"tree-sitter-cpp",
|
|
317
|
-
"tree-sitter-css",
|
|
318
318
|
"tree-sitter-dart",
|
|
319
319
|
"tree-sitter-elixir",
|
|
320
320
|
"tree-sitter-go",
|
|
@@ -531,6 +531,29 @@ version = "0.8.23"
|
|
|
531
531
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
532
532
|
checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
|
|
533
533
|
|
|
534
|
+
[[package]]
|
|
535
|
+
name = "cssparser"
|
|
536
|
+
version = "0.38.0"
|
|
537
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
538
|
+
checksum = "11119743ad110e8c1bdccd930d7f5c30c99e5fc76a7b63ec9807e84eef0c5f59"
|
|
539
|
+
dependencies = [
|
|
540
|
+
"cssparser-macros",
|
|
541
|
+
"dtoa-short",
|
|
542
|
+
"itoa",
|
|
543
|
+
"phf",
|
|
544
|
+
"smallvec",
|
|
545
|
+
]
|
|
546
|
+
|
|
547
|
+
[[package]]
|
|
548
|
+
name = "cssparser-macros"
|
|
549
|
+
version = "0.7.1"
|
|
550
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
551
|
+
checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
|
|
552
|
+
dependencies = [
|
|
553
|
+
"quote",
|
|
554
|
+
"syn 3.0.9",
|
|
555
|
+
]
|
|
556
|
+
|
|
534
557
|
[[package]]
|
|
535
558
|
name = "darling"
|
|
536
559
|
version = "0.20.11"
|
|
@@ -614,6 +637,21 @@ dependencies = [
|
|
|
614
637
|
"syn 3.0.9",
|
|
615
638
|
]
|
|
616
639
|
|
|
640
|
+
[[package]]
|
|
641
|
+
name = "dtoa"
|
|
642
|
+
version = "1.0.11"
|
|
643
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
644
|
+
checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"
|
|
645
|
+
|
|
646
|
+
[[package]]
|
|
647
|
+
name = "dtoa-short"
|
|
648
|
+
version = "0.3.5"
|
|
649
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
650
|
+
checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"
|
|
651
|
+
dependencies = [
|
|
652
|
+
"dtoa",
|
|
653
|
+
]
|
|
654
|
+
|
|
617
655
|
[[package]]
|
|
618
656
|
name = "dunce"
|
|
619
657
|
version = "1.0.5"
|
|
@@ -1476,6 +1514,49 @@ version = "2.3.2"
|
|
|
1476
1514
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1477
1515
|
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
1478
1516
|
|
|
1517
|
+
[[package]]
|
|
1518
|
+
name = "phf"
|
|
1519
|
+
version = "0.14.0"
|
|
1520
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1521
|
+
checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6"
|
|
1522
|
+
dependencies = [
|
|
1523
|
+
"phf_macros",
|
|
1524
|
+
"phf_shared",
|
|
1525
|
+
"serde",
|
|
1526
|
+
]
|
|
1527
|
+
|
|
1528
|
+
[[package]]
|
|
1529
|
+
name = "phf_generator"
|
|
1530
|
+
version = "0.14.0"
|
|
1531
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1532
|
+
checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100"
|
|
1533
|
+
dependencies = [
|
|
1534
|
+
"fastrand",
|
|
1535
|
+
"phf_shared",
|
|
1536
|
+
]
|
|
1537
|
+
|
|
1538
|
+
[[package]]
|
|
1539
|
+
name = "phf_macros"
|
|
1540
|
+
version = "0.14.0"
|
|
1541
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1542
|
+
checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085"
|
|
1543
|
+
dependencies = [
|
|
1544
|
+
"phf_generator",
|
|
1545
|
+
"phf_shared",
|
|
1546
|
+
"proc-macro2",
|
|
1547
|
+
"quote",
|
|
1548
|
+
"syn 2.0.119",
|
|
1549
|
+
]
|
|
1550
|
+
|
|
1551
|
+
[[package]]
|
|
1552
|
+
name = "phf_shared"
|
|
1553
|
+
version = "0.14.0"
|
|
1554
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1555
|
+
checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89"
|
|
1556
|
+
dependencies = [
|
|
1557
|
+
"siphasher",
|
|
1558
|
+
]
|
|
1559
|
+
|
|
1479
1560
|
[[package]]
|
|
1480
1561
|
name = "pin-project-lite"
|
|
1481
1562
|
version = "0.2.17"
|
|
@@ -2097,6 +2178,12 @@ dependencies = [
|
|
|
2097
2178
|
"bstr",
|
|
2098
2179
|
]
|
|
2099
2180
|
|
|
2181
|
+
[[package]]
|
|
2182
|
+
name = "siphasher"
|
|
2183
|
+
version = "1.0.4"
|
|
2184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2185
|
+
checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
|
|
2186
|
+
|
|
2100
2187
|
[[package]]
|
|
2101
2188
|
name = "slab"
|
|
2102
2189
|
version = "0.4.12"
|
|
@@ -2511,16 +2598,6 @@ dependencies = [
|
|
|
2511
2598
|
"tree-sitter-language",
|
|
2512
2599
|
]
|
|
2513
2600
|
|
|
2514
|
-
[[package]]
|
|
2515
|
-
name = "tree-sitter-css"
|
|
2516
|
-
version = "0.25.0"
|
|
2517
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2518
|
-
checksum = "a5cbc5e18f29a2c6d6435891f42569525cf95435a3e01c2f1947abcde178686f"
|
|
2519
|
-
dependencies = [
|
|
2520
|
-
"cc",
|
|
2521
|
-
"tree-sitter-language",
|
|
2522
|
-
]
|
|
2523
|
-
|
|
2524
2601
|
[[package]]
|
|
2525
2602
|
name = "tree-sitter-dart"
|
|
2526
2603
|
version = "0.3.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "blockwatch"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.18.0"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
repository = "https://github.com/mennanov/blockwatch"
|
|
6
6
|
description = "Language agnostic linter that keeps your code and documentation in sync and valid"
|
|
@@ -21,6 +21,7 @@ async-openai = { version = "0.43.0", features = [
|
|
|
21
21
|
async-trait = "0.1"
|
|
22
22
|
bigdecimal = "0.4"
|
|
23
23
|
clap = { version = "4.6", features = ["cargo", "derive"] }
|
|
24
|
+
cssparser = "0.38.0"
|
|
24
25
|
fnv = "1.0"
|
|
25
26
|
globset = "0.4.18"
|
|
26
27
|
heck = "0.5"
|
|
@@ -50,7 +51,6 @@ tree-sitter-c-sharp = "0.23"
|
|
|
50
51
|
tree-sitter-cmake = "0.7.4"
|
|
51
52
|
tree-sitter-containerfile = "0.9"
|
|
52
53
|
tree-sitter-cpp = "0.23"
|
|
53
|
-
tree-sitter-css = "0.25"
|
|
54
54
|
tree-sitter-dart = "0.3"
|
|
55
55
|
tree-sitter-elixir = "0.3"
|
|
56
56
|
tree-sitter-go = "0.25"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blockwatch-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.18.0
|
|
4
4
|
Summary: Language agnostic linter that keeps your code and documentation in sync and valid
|
|
5
5
|
Keywords: linter,sync,drift,comments,agents
|
|
6
6
|
Home-Page: https://github.com/mennanov/blockwatch
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
[//]: # (<block name="pitch">)
|
|
9
9
|
Some parts of a codebase have to change together: a function and its docs, or a value duplicated across configs.
|
|
10
|
-
blockwatch lets you write those rules in comments, right next to the code. If they fall out of
|
|
11
|
-
hook or CI run fails.
|
|
10
|
+
blockwatch lets you write those rules in comments, right next to the code, or in `blockwatch.toml`. If they fall out of
|
|
11
|
+
sync, your pre-commit hook or CI run fails.
|
|
12
12
|
|
|
13
13
|
Supports [37 languages](#supported-languages) and their common file names, such as `Gemfile` or `.mjs`.
|
|
14
14
|
|
|
@@ -42,44 +42,57 @@ future change, add blockwatch to your [pre-commit hook or CI](#ci-integration).
|
|
|
42
42
|
|
|
43
43
|
## How it works
|
|
44
44
|
|
|
45
|
-
A block is a pair of tags inside comments around some lines of code. The rules go in the start tag.
|
|
46
|
-
|
|
47
|
-
`\w+` matches each word, so commas and dashes don't count:
|
|
45
|
+
A block is a pair of tags inside comments around some lines of code. The rules go in the start tag. A file that can't
|
|
46
|
+
hold a comment, such as JSON, gets its rules from `blockwatch.toml` instead.
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
In this example, a web service listens on port 8080, and three files must agree on that number.
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// </block>
|
|
57
|
-
}
|
|
50
|
+
**app/settings.py** holds the value. It needs no tag, because the other files point at the constant by its name,
|
|
51
|
+
`app/settings.py#/PORT`:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
PORT = 8080
|
|
58
55
|
```
|
|
59
56
|
|
|
60
|
-
**
|
|
57
|
+
**Dockerfile** wraps the line in a block. The pattern `\d+` picks `8080` out of `EXPOSE 8080`:
|
|
61
58
|
|
|
62
|
-
```
|
|
63
|
-
|
|
59
|
+
```dockerfile
|
|
60
|
+
FROM python:3.13-slim
|
|
61
|
+
# <block name="port" same-as="app/settings.py#/PORT" same-as-pattern="\d+">
|
|
62
|
+
EXPOSE 8080
|
|
63
|
+
# </block>
|
|
64
|
+
```
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
- Python
|
|
66
|
+
**deploy.json** can't hold a comment:
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"name": "web",
|
|
71
|
+
"port": 8080
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
So **blockwatch.toml** declares its block, around the `port` key:
|
|
76
|
+
|
|
77
|
+
```toml
|
|
78
|
+
[[block]]
|
|
79
|
+
target = 'deploy.json#/port'
|
|
80
|
+
same-as = 'app/settings.py#/PORT'
|
|
69
81
|
```
|
|
70
82
|
|
|
71
|
-
If you
|
|
72
|
-
message:
|
|
83
|
+
If you change `PORT` to `9090` and forget the other two files, `blockwatch` fails with exit code 1 and these messages:
|
|
73
84
|
|
|
74
85
|
```text
|
|
75
|
-
Block
|
|
86
|
+
Block Dockerfile:port at line 2 disagrees with app/settings.py#/PORT: ["8080"] != ["9090"]
|
|
87
|
+
Block deploy.json:(unnamed) at line 1 of "blockwatch.toml" disagrees with app/settings.py#/PORT: ["8080"] != ["9090"]
|
|
76
88
|
```
|
|
77
89
|
|
|
78
|
-
The output shows the values on each side.
|
|
90
|
+
The output shows the values on each side. Update both files, and the run passes.
|
|
79
91
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
92
|
+
A name after `#` points at a [symbol](docs/symbols.md): a constant in code, a key in JSON, TOML or YAML, a Markdown
|
|
93
|
+
section, and more. Because `same-as` compares values directly, it doesn't need a diff. Running `blockwatch` on its own
|
|
94
|
+
finds mismatches anywhere in the repository. The [other validators](#validators) make code and docs change together,
|
|
95
|
+
keep lists sorted, and more.
|
|
83
96
|
|
|
84
97
|
## Validators
|
|
85
98
|
|
|
@@ -89,11 +102,11 @@ Two validators work across files:
|
|
|
89
102
|
- `same-as` fails when a block and its target hold different values. It needs no diff.
|
|
90
103
|
|
|
91
104
|
Both can point to a block, a whole file, a specific value in a file like `package.json#/version`, a section of a
|
|
92
|
-
Markdown file, an element or attribute in an XML file such as `pom.xml` or a `.csproj`, a
|
|
93
|
-
Python, Rust, TypeScript, JavaScript, Java, C#, Kotlin, Swift, PHP or Dart file, a
|
|
94
|
-
Makefile, a field in a Protocol Buffers file, or a value in a Terraform or other HCL
|
|
95
|
-
[Symbols](docs/symbols.md)). The other validators check a single block on their own: the things you'd
|
|
96
|
-
to nitpick in code review.
|
|
105
|
+
Markdown file, an element or attribute in an XML file such as `pom.xml` or a `.csproj`, a declaration in a CSS file,
|
|
106
|
+
a constant in a Go, C, C++, Python, Rust, TypeScript, JavaScript, Java, C#, Kotlin, Swift, PHP or Dart file, a
|
|
107
|
+
variable in a shell script or a Makefile, a field in a Protocol Buffers file, or a value in a Terraform or other HCL
|
|
108
|
+
file (see [Symbols](docs/symbols.md)). The other validators check a single block on their own: the things you'd
|
|
109
|
+
otherwise have to nitpick in code review.
|
|
97
110
|
|
|
98
111
|
<!-- <block name="available-validators"
|
|
99
112
|
same-as="src/validators/mod.rs:validator-registry, docs/validators/README.md:validators-index"
|
|
@@ -178,7 +191,7 @@ git diff --patch HEAD | blockwatch --diff --only-changed
|
|
|
178
191
|
blockwatch list
|
|
179
192
|
|
|
180
193
|
# Show what each validator of one named block read
|
|
181
|
-
blockwatch explain
|
|
194
|
+
blockwatch explain Dockerfile:port
|
|
182
195
|
```
|
|
183
196
|
|
|
184
197
|
Rules live in comments, next to the code they describe. Settings that apply to the whole project, such as ignored
|
|
@@ -192,15 +205,15 @@ disable = ['check-ai']
|
|
|
192
205
|
ino = 'cpp'
|
|
193
206
|
```
|
|
194
207
|
|
|
195
|
-
The config file can also declare [blocks](docs/cli.md#blocks-in-the-config-file)
|
|
196
|
-
|
|
197
|
-
|
|
208
|
+
The config file can also declare [blocks](docs/cli.md#blocks-in-the-config-file), as in [How it works](#how-it-works):
|
|
209
|
+
around a symbol, around the text a regex matches, or around a whole file. That is how a file that can't hold a tag gets
|
|
210
|
+
rules, such as `package.json`, a prompt, or a module that a build copies as it is.
|
|
198
211
|
|
|
199
212
|
To keep a known violation from failing the run without editing the source, pass its `address` from the output to
|
|
200
|
-
`--suppress`. The violation is still reported. For the failure in [How it works](#how-it-works):
|
|
213
|
+
`--suppress`. The violation is still reported. For the `Dockerfile` failure in [How it works](#how-it-works):
|
|
201
214
|
|
|
202
215
|
```shell
|
|
203
|
-
blockwatch --suppress
|
|
216
|
+
blockwatch --suppress Dockerfile:port:same-as:1037fd9c
|
|
204
217
|
```
|
|
205
218
|
|
|
206
219
|
A shorter address like `src/lib.rs` covers more violations. See
|
|
@@ -221,7 +234,7 @@ exclusions, and custom extension mappings.
|
|
|
221
234
|
|
|
222
235
|
```yaml
|
|
223
236
|
- repo: https://github.com/mennanov/blockwatch
|
|
224
|
-
rev: v0.
|
|
237
|
+
rev: v0.18.0 # Use latest release
|
|
225
238
|
hooks:
|
|
226
239
|
- id: blockwatch
|
|
227
240
|
```
|
|
@@ -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.18.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.18.0 # Use latest release
|
|
63
63
|
hooks:
|
|
64
64
|
- id: blockwatch-commit-msg
|
|
65
65
|
```
|
|
@@ -557,15 +557,15 @@ Nothing else about the run changes: the same violations are found, and the exit
|
|
|
557
557
|
"tool": {
|
|
558
558
|
"driver": {
|
|
559
559
|
"name": "blockwatch",
|
|
560
|
-
"version": "0.
|
|
561
|
-
"semanticVersion": "0.
|
|
560
|
+
"version": "0.18.0",
|
|
561
|
+
"semanticVersion": "0.18.0",
|
|
562
562
|
"informationUri": "https://github.com/mennanov/blockwatch",
|
|
563
563
|
"rules": [
|
|
564
564
|
{
|
|
565
565
|
"id": "keep-sorted",
|
|
566
566
|
"name": "keep-sorted",
|
|
567
567
|
"shortDescription": { "text": "Requires the lines of a block to stay in order." },
|
|
568
|
-
"helpUri": "https://github.com/mennanov/blockwatch/blob/v0.
|
|
568
|
+
"helpUri": "https://github.com/mennanov/blockwatch/blob/v0.18.0/docs/validators/keep-sorted.md"
|
|
569
569
|
}
|
|
570
570
|
]
|
|
571
571
|
}
|
|
@@ -31,6 +31,7 @@ declares, instead of tags in a comment.
|
|
|
31
31
|
| YAML | `.yaml`, `.yml`, `.cff` | [YAML](#yaml) |
|
|
32
32
|
| Markdown | `.md`, `.markdown`, `.mdx` | [Markdown](#markdown) |
|
|
33
33
|
| XML | `.xml`, `.csproj`, `.fsproj`, `.vbproj`, `.vcxproj`, `.props`, `.targets`, `.xaml`, `.xsd`, `.xsl`, `.xslt` | [XML](#xml) |
|
|
34
|
+
| CSS | `.css` | [CSS](#css) |
|
|
34
35
|
| Go | `.go` | [Go](#go) |
|
|
35
36
|
| C, C++ | `.c`, `.h`, `.cc`, `.cpp`, `.cxx`, `.hh`, `.hpp`, `.hxx` | [C and C++](#c-and-c) |
|
|
36
37
|
| Python | `.py`, `.pyi`, `.pyw` | [Python and Starlark](#python-and-starlark) |
|
|
@@ -70,7 +71,6 @@ Some characters must be escaped when a key contains them:
|
|
|
70
71
|
| `/` | `~1` | it separates keys |
|
|
71
72
|
| `~` | `~0` | it starts an escape |
|
|
72
73
|
| `,` | `%2C` | it separates targets |
|
|
73
|
-
| `:` | `%3A` | it separates a file from a block name |
|
|
74
74
|
| `%` | `%25` | it starts an escape |
|
|
75
75
|
|
|
76
76
|
For example, the key `@types/node` is `#/dependencies/@types~1node`.
|
|
@@ -250,8 +250,7 @@ Clone the repository.
|
|
|
250
250
|
quote, a list item or an HTML block.
|
|
251
251
|
- **The same heading twice under one parent is a violation**, because blockwatch can't tell which one you mean. Two
|
|
252
252
|
`### Example` sections under different `##` headings are fine.
|
|
253
|
-
- **Escape a heading like any key.** `## Input/Output` is `#/Input~1Output
|
|
254
|
-
`#/Step 1%3A build`.
|
|
253
|
+
- **Escape a heading like any key.** `## Input/Output` is `#/Input~1Output`.
|
|
255
254
|
- **An `.mdx` file gets the same paths.** The text of a JSX element in a heading counts, and so does the code in
|
|
256
255
|
braces: `## Red <Badge>new</Badge> {version}` is `#/Red new version`. A heading inside a JSX element doesn't count.
|
|
257
256
|
A file that isn't valid MDX stops the run.
|
|
@@ -301,8 +300,8 @@ is `@` and its name, under its element:
|
|
|
301
300
|
such as `artifactId`, or an attribute. In a `.csproj` file, `#/Project/ItemGroup/~[@Include=Serilog]/@Version` is
|
|
302
301
|
the `Version` of the `PackageReference` whose `Include` is `Serilog`. A position, such as
|
|
303
302
|
`#/project/modules/module/1`, is not found.
|
|
304
|
-
- **A prefix is part of the name, as written
|
|
305
|
-
|
|
303
|
+
- **A prefix is part of the name, as written:** `#/manifest/application/@android:name`. Namespaces play no part,
|
|
304
|
+
and `xmlns` attributes are not symbols. Names compare as written, case included.
|
|
306
305
|
- **An element without child elements is its text.** Entities and character references are decoded, CDATA stays as
|
|
307
306
|
written, and comments are left out. The white space around the text is removed, but the line breaks and indents
|
|
308
307
|
inside it stay. `<a/>` and `<a></a>` are empty strings.
|
|
@@ -321,6 +320,81 @@ is `@` and its name, under its element:
|
|
|
321
320
|
|
|
322
321
|
<!-- </block> -->
|
|
323
322
|
|
|
323
|
+
## CSS
|
|
324
|
+
|
|
325
|
+
`.css` files have symbols.
|
|
326
|
+
|
|
327
|
+
<!-- <block name="css-paths"> -->
|
|
328
|
+
|
|
329
|
+
Each rule is a symbol, and so is each at-rule with a block and each declaration in them. A path is the selector or
|
|
330
|
+
at-rule of each rule, from the top down, then a property:
|
|
331
|
+
|
|
332
|
+
```css
|
|
333
|
+
:root {
|
|
334
|
+
--brand: #5097ba;
|
|
335
|
+
--gap: 8px !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.dark { --brand: #ffffff; }
|
|
339
|
+
|
|
340
|
+
@media (max-width: 768px) {
|
|
341
|
+
.card { padding: 4px; }
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.card {
|
|
345
|
+
display: -webkit-box;
|
|
346
|
+
display: flex;
|
|
347
|
+
content: "a\"b";
|
|
348
|
+
&:hover { color: blue; }
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
h1, h2 { margin: 0; }
|
|
352
|
+
|
|
353
|
+
@keyframes spin { to { rotate: 1turn; } }
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
| Path | Points at |
|
|
357
|
+
|---------------------------------------------|-------------------------------------------|
|
|
358
|
+
| `#/:root/--brand` | `#5097ba` |
|
|
359
|
+
| `#/:root/--gap` | `8px`, without `!important` |
|
|
360
|
+
| `#/.dark/--brand` | `#ffffff` |
|
|
361
|
+
| `#/--brand` | not found: a property needs its rule |
|
|
362
|
+
| `#/@media (max-width: 768px)/.card/padding` | `4px` |
|
|
363
|
+
| `#/.card/padding` | not found: only the `@media` rule sets it |
|
|
364
|
+
| `#/.card/display` | a violation: it is set twice |
|
|
365
|
+
| `#/.card/content` | `a"b` |
|
|
366
|
+
| `#/.card/&:hover/color` | `blue` |
|
|
367
|
+
| `#/.card` | the whole rule |
|
|
368
|
+
| `#/h1%2C h2/margin` | `0` |
|
|
369
|
+
| `#/@keyframes spin/to/rotate` | `1turn` |
|
|
370
|
+
|
|
371
|
+
- **A segment is the selector or the at-rule as written.** Comments are left out, and each run of white space is one
|
|
372
|
+
space: `.card > a` is `#/.card > a`. An at-rule is its name and its prelude, such as `@media (max-width: 768px)`.
|
|
373
|
+
`@supports`, `@layer`, `@container`, `@font-face`, Tailwind's `@theme` and any other at-rule with a block work the
|
|
374
|
+
same way.
|
|
375
|
+
- **A selector list is one segment.** `h1, h2 { }` is `#/h1%2C h2`, with its `,` escaped. `#/h2` doesn't find it.
|
|
376
|
+
- **Escape `~` and `/` as in any key.** `a ~ b` is `#/a ~0 b`, and `@media (aspect-ratio: 16/9)` is
|
|
377
|
+
`#/@media (aspect-ratio: 16~19)`.
|
|
378
|
+
- **A property needs its whole path.** `#/--brand` is not found. Write `#/:root/--brand`.
|
|
379
|
+
- **A selector or a property written twice is a violation**, though CSS uses the last one. A fallback such as
|
|
380
|
+
`display: -webkit-box; display: flex;` does this, and so does one selector in two rules. Wrap the one you mean in a
|
|
381
|
+
block instead.
|
|
382
|
+
- **Names compare as written, case included.** `#/.a/color` doesn't find `COLOR`. A position, such as `#/.card/0`, is
|
|
383
|
+
not found.
|
|
384
|
+
- **A value runs from its first token to its last one.** The white space and comments around it are left out, and so
|
|
385
|
+
is `!important` at its end. A comment between its tokens stays.
|
|
386
|
+
- **A value that is one string is decoded:** `"a\"b"` is `a"b`. Any other value stays as written, strings included,
|
|
387
|
+
such as `"Inter", sans-serif`.
|
|
388
|
+
- **A rule covers its selector and its block. A declaration covers `name: value`, with `!important`.** A comment above
|
|
389
|
+
either is not part of it.
|
|
390
|
+
- **At-rules without a block, such as `@import`, are not symbols.** Neither are `<style>` elements in HTML, nor
|
|
391
|
+
`.scss`, `.sass` and `.less` files.
|
|
392
|
+
- **A part that CSS says to skip stops the run for each path with a word from it as a segment.** The IE hack
|
|
393
|
+
`*zoom: 1` stops `#/.btn/zoom`. A declaration outside a rule, or a stray `}`, is skipped with the rule after it.
|
|
394
|
+
Other paths in the file still resolve.
|
|
395
|
+
|
|
396
|
+
<!-- </block> -->
|
|
397
|
+
|
|
324
398
|
## Code files
|
|
325
399
|
|
|
326
400
|
<!-- <block name="code-files"> -->
|
|
@@ -1072,7 +1146,7 @@ done
|
|
|
1072
1146
|
that starts with `~` after a quote, such as `"a"~/b`, and an array. Use `same-as-pattern` to take `8080` out of
|
|
1073
1147
|
`"${PORT:-8080}"`.
|
|
1074
1148
|
- **A path to a `$'...'` or `$"..."` string stops the run.**
|
|
1075
|
-
- **A function's name can hold `-`, `.` and
|
|
1149
|
+
- **A function's name can hold `-`, `.` and `:`,** such as `#/ns::helper`.
|
|
1076
1150
|
- **zsh files (`.zsh`, `.zshrc`) have no symbols.** The parser misreads much of zsh's syntax.
|
|
1077
1151
|
- **After a syntax error, the parser often skips a large part of the file**, and every name in that part stops the
|
|
1078
1152
|
run. It fails on `sed -e /^$/d`, on `${x/#$/y}`, and on a command whose name holds `::` after an assignment, such as
|
|
@@ -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.18.0'],
|
|
10
10
|
# </block>
|
|
11
11
|
# Without it, setuptools takes the directories under src/ for Python packages.
|
|
12
12
|
packages=[],
|