blockwatch-cli 0.19.1__tar.gz → 0.20.0__tar.gz

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