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.
Files changed (329) hide show
  1. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/CHANGELOG.md +20 -0
  2. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/Cargo.lock +89 -12
  3. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/Cargo.toml +2 -2
  4. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/PKG-INFO +1 -1
  5. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/README.md +51 -38
  6. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/ci.md +2 -2
  7. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/cli.md +3 -3
  8. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/symbols.md +80 -6
  9. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/setup.py +1 -1
  10. blockwatch_cli-0.18.0/src/language_parsers/css.rs +950 -0
  11. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/mod.rs +3 -2
  12. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/xml.rs +2 -2
  13. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/skill.md +25 -10
  14. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbol_path.rs +1 -3
  15. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbols/mod.rs +10 -0
  16. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/target_reference.rs +18 -18
  17. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/symbol_references.rs +7 -0
  18. blockwatch_cli-0.18.0/tests/testdata/symbol_references/css_source.rs +3 -0
  19. blockwatch_cli-0.18.0/tests/testdata/symbol_references/css_target.css +3 -0
  20. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/escapes_source.rs +2 -2
  21. blockwatch_cli-0.17.0/src/language_parsers/css.rs +0 -74
  22. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.agents/.claude-plugin/plugin.json +0 -0
  23. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.agents/skills/blockwatch/SKILL.md +0 -0
  24. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.claude-plugin/marketplace.json +0 -0
  25. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/FUNDING.yml +0 -0
  26. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/dependabot.yml +0 -0
  27. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/blockwatch.yml +0 -0
  28. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/codeql.yml +0 -0
  29. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/markdownlint.yml +0 -0
  30. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/pypi.yml +0 -0
  31. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/release.yml +0 -0
  32. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/rust.yml +0 -0
  33. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.github/workflows/trusted-checks.yml +0 -0
  34. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.gitignore +0 -0
  35. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.markdownlint-cli2.yaml +0 -0
  36. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.pre-commit-config.yaml +0 -0
  37. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/.pre-commit-hooks.yaml +0 -0
  38. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/AGENTS.md +0 -0
  39. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/CLAUDE.md +0 -0
  40. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/LICENSE +0 -0
  41. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/SECURITY.md +0 -0
  42. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/blockwatch.toml +0 -0
  43. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/clippy.toml +0 -0
  44. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/codecov.yml +0 -0
  45. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/demo.gif +0 -0
  46. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/dist-workspace.toml +0 -0
  47. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/agents.md +0 -0
  48. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/README.md +0 -0
  49. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/affects.md +0 -0
  50. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/check-ai.md +0 -0
  51. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/check-lua.md +0 -0
  52. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/keep-sorted.md +0 -0
  53. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/keep-unique.md +0 -0
  54. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/line-count.md +0 -0
  55. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/line-pattern.md +0 -0
  56. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/docs/validators/same-as.md +0 -0
  57. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/pypi/pyproject.toml +0 -0
  58. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/pyproject.toml +0 -0
  59. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/release.toml +0 -0
  60. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/scripts/check_language_count.lua +0 -0
  61. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/scripts/check_latest_gpt_nano_model.lua +0 -0
  62. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/block_parser.rs +0 -0
  63. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/blocks.rs +0 -0
  64. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/cli.rs +0 -0
  65. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/config.rs +0 -0
  66. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/diff_parser.rs +0 -0
  67. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/explain.rs +0 -0
  68. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/flags.rs +0 -0
  69. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/fs.rs +0 -0
  70. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/bash.rs +0 -0
  71. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/c.rs +0 -0
  72. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/c_sharp.rs +0 -0
  73. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/cmake.rs +0 -0
  74. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/cpp.rs +0 -0
  75. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/dart.rs +0 -0
  76. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/dockerfile.rs +0 -0
  77. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/elixir.rs +0 -0
  78. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/go.rs +0 -0
  79. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/graphql.rs +0 -0
  80. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/groovy.rs +0 -0
  81. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/hcl.rs +0 -0
  82. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/html.rs +0 -0
  83. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/java.rs +0 -0
  84. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/javascript.rs +0 -0
  85. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/json.rs +0 -0
  86. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/kotlin.rs +0 -0
  87. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/lean.rs +0 -0
  88. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/lua.rs +0 -0
  89. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/makefile.rs +0 -0
  90. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/markdown.rs +0 -0
  91. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/mdx.rs +0 -0
  92. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/nix.rs +0 -0
  93. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/ocaml.rs +0 -0
  94. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/php.rs +0 -0
  95. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/proto.rs +0 -0
  96. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/python.rs +0 -0
  97. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/ruby.rs +0 -0
  98. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/rust.rs +0 -0
  99. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/scala.rs +0 -0
  100. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/sql.rs +0 -0
  101. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/starlark.rs +0 -0
  102. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/swift.rs +0 -0
  103. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/toml.rs +0 -0
  104. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/tsx.rs +0 -0
  105. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/typescript.rs +0 -0
  106. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/language_parsers/yaml.rs +0 -0
  107. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/lib.rs +0 -0
  108. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/main.rs +0 -0
  109. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/path_arguments.rs +0 -0
  110. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/paths_glob.rs +0 -0
  111. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/repo_path.rs +0 -0
  112. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/report.rs +0 -0
  113. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/sarif.rs +0 -0
  114. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/scan.rs +0 -0
  115. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/settings.rs +0 -0
  116. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/symbols/code.rs +0 -0
  117. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/tag_parser.rs +0 -0
  118. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/affects.rs +0 -0
  119. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/check_ai.rs +0 -0
  120. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/check_lua.rs +0 -0
  121. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/keep_sorted.rs +0 -0
  122. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/keep_unique.rs +0 -0
  123. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/line_count.rs +0 -0
  124. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/line_pattern.rs +0 -0
  125. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/mod.rs +0 -0
  126. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/validators/same_as.rs +0 -0
  127. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/violation_address.rs +0 -0
  128. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/src/virtual_blocks.rs +0 -0
  129. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/affects.rs +0 -0
  130. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/check_ai.rs +0 -0
  131. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/check_lua.rs +0 -0
  132. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/common/empty.toml +0 -0
  133. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/common/mod.rs +0 -0
  134. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/config.rs +0 -0
  135. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/encoding.rs +0 -0
  136. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/explain.rs +0 -0
  137. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/general.rs +0 -0
  138. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/keep_sorted.rs +0 -0
  139. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/keep_unique.rs +0 -0
  140. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/line_count.rs +0 -0
  141. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/line_pattern.rs +0 -0
  142. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/list.rs +0 -0
  143. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/path_arguments.rs +0 -0
  144. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/repository_root.rs +0 -0
  145. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/same_as.rs +0 -0
  146. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/sarif.rs +0 -0
  147. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/skill.rs +0 -0
  148. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/suppressions.rs +0 -0
  149. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/cross_file_source.rs +0 -0
  150. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/cross_file_target.md +0 -0
  151. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/custom_ext_source.javascript +0 -0
  152. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/custom_ext_target.javascript +0 -0
  153. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/dangling.md +0 -0
  154. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/missing_symbol.rs +0 -0
  155. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/more_added_than_deleted.py +0 -0
  156. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/multiline_tag_source.rs +0 -0
  157. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/multiline_tag_target.rs +0 -0
  158. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/nested_mapping_source.rs +0 -0
  159. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/nested_mapping_target.yaml +0 -0
  160. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/sibling.md +0 -0
  161. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/symbol_source.rs +0 -0
  162. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/symbol_target.json +0 -0
  163. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/table_source.rs +0 -0
  164. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/table_target.toml +0 -0
  165. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/tag_and_content_source.ts +0 -0
  166. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/tag_and_content_target.ts +0 -0
  167. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/whole_file_source.rs +0 -0
  168. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/affects/whole_file_target.json +0 -0
  169. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_ai/two_blocks.py +0 -0
  170. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects.lua +0 -0
  171. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects.py +0 -0
  172. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/affects_drift.py +0 -0
  173. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/blocking_io.lua +0 -0
  174. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/blocking_io.py +0 -0
  175. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/echo.lua +0 -0
  176. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/fail.lua +0 -0
  177. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/mode.py +0 -0
  178. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/os.lua +0 -0
  179. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pathfmt/report_path.lua +0 -0
  180. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pathfmt/source.py +0 -0
  181. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern.py +0 -0
  182. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern_many_matches.py +0 -0
  183. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/pattern_no_match.py +0 -0
  184. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/success.lua +0 -0
  185. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/check_lua/success_and_failure.py +0 -0
  186. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/config.toml +0 -0
  187. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/package.json +0 -0
  188. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/blue/package.json +0 -0
  189. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/green/package.json +0 -0
  190. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/config/glob_target/plugins/red/package.json +0 -0
  191. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/explain/a.py +0 -0
  192. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/explain/check.lua +0 -0
  193. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/block_selection.py +0 -0
  194. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/custom_file_extension.javascript +0 -0
  195. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/custom_file_extension.python +0 -0
  196. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/disable_enable.py +0 -0
  197. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/invalid.py +0 -0
  198. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/subdir/nested_invalid.py +0 -0
  199. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/paths/valid.py +0 -0
  200. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/general/severity.py +0 -0
  201. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/hidden/.github/workflows/ci.yml +0 -0
  202. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/keep_sorted/orderings.py +0 -0
  203. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/keep_unique/basic_and_pattern.py +0 -0
  204. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_count/equality_and_greater_than.py +0 -0
  205. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_pattern/forbidden_text.py +0 -0
  206. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/line_pattern/hex_and_word_patterns.py +0 -0
  207. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/.hg/.gitkeep +0 -0
  208. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/a.py +0 -0
  209. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/list/b.py +0 -0
  210. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/positions/unicode_columns.py +0 -0
  211. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/custom_ext_source.javascript +0 -0
  212. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/custom_ext_target.javascript +0 -0
  213. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/package.json +0 -0
  214. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths/alpha/item.txt +0 -0
  215. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths/beta/item.txt +0 -0
  216. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths_and_block_source.md +0 -0
  217. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/paths_source.md +0 -0
  218. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/sibling.rs +0 -0
  219. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/source.rs +0 -0
  220. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/split_table_source.rs +0 -0
  221. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/split_table_target.toml +0 -0
  222. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/symbol_mismatch_source.rs +0 -0
  223. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/symbol_source.rs +0 -0
  224. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/target.md +0 -0
  225. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_mismatch_source.rs +0 -0
  226. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_source.rs +0 -0
  227. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/same_as/whole_file_target.json +0 -0
  228. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/advisory.py +0 -0
  229. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/clean.py +0 -0
  230. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/sorted.py +0 -0
  231. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/sarif/unnamed.py +0 -0
  232. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg.txt +0 -0
  233. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_gone_a.txt +0 -0
  234. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_gone_b.txt +0 -0
  235. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_lowercase_trailer.txt +0 -0
  236. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_malformed.txt +0 -0
  237. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/commit_msg_with_noise.txt +0 -0
  238. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/dangling.py +0 -0
  239. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/sorted.py +0 -0
  240. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/symbol.py +0 -0
  241. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/symbol_target.json +0 -0
  242. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/two_rules.py +0 -0
  243. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/suppressions/unnamed.py +0 -0
  244. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/Makefile +0 -0
  245. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/bzl_source.rs +0 -0
  246. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/bzl_target.bzl +0 -0
  247. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/c_source.rs +0 -0
  248. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/c_target.c +0 -0
  249. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cpp_source.rs +0 -0
  250. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cpp_target.cpp +0 -0
  251. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cs_source.rs +0 -0
  252. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/cs_target.cs +0 -0
  253. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/csproj_source.rs +0 -0
  254. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/csproj_target.csproj +0 -0
  255. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/dart_source.rs +0 -0
  256. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/dart_target.dart +0 -0
  257. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/escapes_target.json +0 -0
  258. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/filter_source.rs +0 -0
  259. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/filter_target.yaml +0 -0
  260. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/go_source.rs +0 -0
  261. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/go_target.go +0 -0
  262. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/h_source.rs +0 -0
  263. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/h_target.h +0 -0
  264. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/hcl_source.rs +0 -0
  265. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/hcl_target.hcl +0 -0
  266. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/java_source.rs +0 -0
  267. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/java_target.java +0 -0
  268. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/js_source.rs +0 -0
  269. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/js_target.js +0 -0
  270. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/json_source.rs +0 -0
  271. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/json_target.json +0 -0
  272. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/jsonc_source.rs +0 -0
  273. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/jsonc_target.jsonc +0 -0
  274. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kt_source.rs +0 -0
  275. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kt_target.kt +0 -0
  276. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kts_source.rs +0 -0
  277. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/kts_target.kts +0 -0
  278. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/makefile_source.rs +0 -0
  279. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/markdown_source.rs +0 -0
  280. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/markdown_target.markdown +0 -0
  281. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/md_source.rs +0 -0
  282. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/md_target.md +0 -0
  283. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mdx_source.rs +0 -0
  284. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mdx_target.mdx +0 -0
  285. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mixed_list_source.rs +0 -0
  286. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/mixed_list_target.json +0 -0
  287. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/nomad_source.rs +0 -0
  288. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/nomad_target.nomad +0 -0
  289. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/php_source.rs +0 -0
  290. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/php_target.php +0 -0
  291. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/phtml_source.rs +0 -0
  292. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/phtml_target.phtml +0 -0
  293. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/proto_source.rs +0 -0
  294. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/proto_target.proto +0 -0
  295. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/py_source.rs +0 -0
  296. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/py_target.py +0 -0
  297. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/rs_source.rs +0 -0
  298. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/rs_target.rs +0 -0
  299. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/sh_source.rs +0 -0
  300. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/sh_target.sh +0 -0
  301. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/swift_source.rs +0 -0
  302. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/swift_target.swift +0 -0
  303. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tf_source.rs +0 -0
  304. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tf_target.tf +0 -0
  305. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tfvars_source.rs +0 -0
  306. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tfvars_target.tfvars +0 -0
  307. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tofu_source.rs +0 -0
  308. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tofu_target.tofu +0 -0
  309. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/toml_source.rs +0 -0
  310. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/toml_target.toml +0 -0
  311. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/ts_source.rs +0 -0
  312. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/ts_target.ts +0 -0
  313. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tsx_source.rs +0 -0
  314. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/tsx_target.tsx +0 -0
  315. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/xml_source.rs +0 -0
  316. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/xml_target.xml +0 -0
  317. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yaml_source.rs +0 -0
  318. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yaml_target.yaml +0 -0
  319. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yml_source.rs +0 -0
  320. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/symbol_references/yml_target.yml +0 -0
  321. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/affects/pair.py +0 -0
  322. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/counted.py +0 -0
  323. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/noop.py +0 -0
  324. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/notes.txt +0 -0
  325. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/clean/sorted.py +0 -0
  326. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/diff/two_blocks.py +0 -0
  327. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/failing/unsorted.py +0 -0
  328. {blockwatch_cli-0.17.0 → blockwatch_cli-0.18.0}/tests/testdata/verbosity/mixed/both_kinds.py +0 -0
  329. {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.17.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.17.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.17.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 sync, your pre-commit
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. In this example, the
46
- enum variants must match the list in `README.md`. Each block uses `same-as-pattern` to pick the values to compare. Here,
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
- **src/lib.rs**:
48
+ In this example, a web service listens on port 8080, and three files must agree on that number.
50
49
 
51
- ```rust
52
- pub enum Language {
53
- // <block name="languages" same-as="README.md:supported-languages" same-as-pattern="\w+">
54
- Rust,
55
- Python,
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
- **README.md**:
57
+ **Dockerfile** wraps the line in a block. The pattern `\d+` picks `8080` out of `EXPOSE 8080`:
61
58
 
62
- ```markdown
63
- <!-- <block name="supported-languages" same-as-pattern="\w+"> -->
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
- - Rust
66
- - Python
66
+ **deploy.json** can't hold a comment:
67
67
 
68
- <!-- </block> -->
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 add a `Go` variant to the enum without updating `README.md`, `blockwatch` fails with exit code 1 and this
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 src/lib.rs:languages at line 2 disagrees with README.md:supported-languages: ["Rust", "Python", "Go"] != ["Rust", "Python"]
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. Add `Go` to `README.md` too, and the run passes.
90
+ The output shows the values on each side. Update both files, and the run passes.
79
91
 
80
- Because `same-as` compares block contents directly, it doesn't need a diff. Running `blockwatch` on its own finds
81
- mismatches anywhere in the repository. The [other validators](#validators) make code and docs change together, keep
82
- lists sorted, and more.
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 constant in a Go, C, C++,
93
- Python, Rust, TypeScript, JavaScript, Java, C#, Kotlin, Swift, PHP or Dart file, a variable in a shell script or a
94
- Makefile, a field in a Protocol Buffers file, or a value in a Terraform or other HCL file (see
95
- [Symbols](docs/symbols.md)). The other validators check a single block on their own: the things you'd otherwise have
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 src/lib.rs:languages
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) instead of comment tags: around a key
196
- in a JSON, TOML, or YAML file, around the text a regex matches, or around a whole file. That is how a file that can't
197
- hold a tag gets rules, such as `package.json`, a prompt, or a module that a build copies as it is.
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 src/lib.rs:languages:same-as:270d21b4
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.17.0 # Use latest release
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.17.0 # Use latest release
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.17.0 # Use latest release
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.17.0",
561
- "semanticVersion": "0.17.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.17.0/docs/validators/keep-sorted.md"
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`, and `## Step 1: build` is
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.** Escape its `:` as `%3A`: `#/manifest/application/@android%3Aname`.
305
- Namespaces play no part, and `xmlns` attributes are not symbols. Names compare as written, case included.
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 `:`.** Write each `:` as `%3A`: `ns::helper` is `#/ns%3A%3Ahelper`.
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.17.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=[],