blockwatch-cli 0.16.7__tar.gz → 0.16.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.markdownlint-cli2.yaml +4 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/AGENTS.md +7 -5
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/CHANGELOG.md +21 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/CLAUDE.md +7 -5
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/Cargo.lock +51 -16
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/Cargo.toml +3 -2
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/PKG-INFO +1 -1
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/README.md +4 -4
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/ci.md +2 -2
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/cli.md +3 -3
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/symbols.md +119 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/setup.py +1 -1
- blockwatch_cli-0.16.8/src/language_parsers/makefile.rs +1006 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/mod.rs +5 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/skill.md +26 -2
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/symbol_references.rs +7 -0
- blockwatch_cli-0.16.8/tests/testdata/symbol_references/Makefile +1 -0
- blockwatch_cli-0.16.8/tests/testdata/symbol_references/makefile_source.rs +3 -0
- blockwatch_cli-0.16.7/src/language_parsers/makefile.rs +0 -61
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.agents/.claude-plugin/plugin.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.agents/skills/blockwatch/SKILL.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.claude-plugin/marketplace.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/dependabot.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/blockwatch.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/codeql.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/markdownlint.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/pypi.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/release.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/rust.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.github/workflows/trusted-checks.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.gitignore +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.pre-commit-config.yaml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/.pre-commit-hooks.yaml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/LICENSE +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/SECURITY.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/blockwatch.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/clippy.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/codecov.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/demo.gif +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/dist-workspace.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/agents.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/README.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/affects.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/check-ai.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/check-lua.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/keep-sorted.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/keep-unique.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/line-count.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/line-pattern.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/docs/validators/same-as.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/pypi/pyproject.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/pyproject.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/release.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/scripts/check_language_count.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/scripts/check_latest_gpt_nano_model.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/block_parser.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/blocks.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/cli.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/config.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/diff_parser.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/explain.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/flags.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/fs.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/bash.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/c.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/c_sharp.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/cmake.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/cpp.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/css.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/dart.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/dockerfile.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/elixir.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/go.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/graphql.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/groovy.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/hcl.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/html.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/java.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/javascript.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/json.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/kotlin.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/lean.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/lua.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/markdown.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/mdx.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/nix.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/ocaml.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/php.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/proto.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/python.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/ruby.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/rust.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/scala.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/sql.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/starlark.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/swift.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/toml.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/tsx.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/typescript.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/xml.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/language_parsers/yaml.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/lib.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/main.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/path_arguments.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/paths_glob.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/repo_path.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/report.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/sarif.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/scan.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/settings.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/symbol_path.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/symbols/code.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/symbols/mod.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/tag_parser.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/target_reference.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/affects.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/check_ai.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/check_lua.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/keep_sorted.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/keep_unique.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/line_count.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/line_pattern.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/mod.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/validators/same_as.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/violation_address.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/src/virtual_blocks.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/affects.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/check_ai.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/check_lua.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/common/empty.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/common/mod.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/config.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/encoding.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/explain.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/general.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/keep_sorted.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/keep_unique.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/line_count.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/line_pattern.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/list.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/path_arguments.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/repository_root.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/same_as.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/sarif.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/skill.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/suppressions.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/cross_file_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/cross_file_target.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/dangling.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/missing_symbol.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/more_added_than_deleted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/multiline_tag_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/multiline_tag_target.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/nested_mapping_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/nested_mapping_target.yaml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/sibling.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/symbol_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/symbol_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/table_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/table_target.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/tag_and_content_source.ts +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/tag_and_content_target.ts +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/whole_file_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/affects/whole_file_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_ai/two_blocks.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/affects.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/affects.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/affects_drift.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/blocking_io.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/blocking_io.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/echo.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/fail.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/mode.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/os.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/pathfmt/report_path.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/pathfmt/source.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/pattern.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/pattern_many_matches.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/pattern_no_match.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/success.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/check_lua/success_and_failure.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/config/glob_target/config.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/config/glob_target/package.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/config/glob_target/plugins/blue/package.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/config/glob_target/plugins/green/package.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/config/glob_target/plugins/red/package.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/explain/a.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/explain/check.lua +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/block_selection.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/custom_file_extension.javascript +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/custom_file_extension.python +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/disable_enable.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/paths/invalid.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/paths/subdir/nested_invalid.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/paths/valid.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/general/severity.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/hidden/.github/workflows/ci.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/keep_sorted/orderings.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/keep_unique/basic_and_pattern.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/line_count/equality_and_greater_than.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/line_pattern/forbidden_text.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/line_pattern/hex_and_word_patterns.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/list/.hg/.gitkeep +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/list/a.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/list/b.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/positions/unicode_columns.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/custom_ext_source.javascript +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/custom_ext_target.javascript +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/package.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/paths/alpha/item.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/paths/beta/item.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/paths_and_block_source.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/paths_source.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/sibling.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/split_table_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/split_table_target.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/symbol_mismatch_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/symbol_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/target.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/whole_file_mismatch_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/whole_file_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/same_as/whole_file_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/sarif/advisory.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/sarif/clean.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/sarif/sorted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/sarif/unnamed.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg_gone_a.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg_gone_b.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg_lowercase_trailer.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg_malformed.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/commit_msg_with_noise.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/dangling.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/sorted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/symbol.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/symbol_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/two_rules.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/suppressions/unnamed.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/bzl_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/bzl_target.bzl +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/c_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/c_target.c +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/cpp_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/cpp_target.cpp +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/cs_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/cs_target.cs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/csproj_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/csproj_target.csproj +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/escapes_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/escapes_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/filter_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/filter_target.yaml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/go_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/go_target.go +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/h_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/h_target.h +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/hcl_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/hcl_target.hcl +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/java_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/java_target.java +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/js_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/js_target.js +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/json_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/json_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/jsonc_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/jsonc_target.jsonc +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/kt_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/kt_target.kt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/kts_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/kts_target.kts +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/markdown_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/markdown_target.markdown +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/md_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/md_target.md +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/mdx_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/mdx_target.mdx +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/mixed_list_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/mixed_list_target.json +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/nomad_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/nomad_target.nomad +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/php_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/php_target.php +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/phtml_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/phtml_target.phtml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/proto_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/proto_target.proto +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/py_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/py_target.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/rs_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/rs_target.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/sh_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/sh_target.sh +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/swift_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/swift_target.swift +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tf_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tf_target.tf +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tfvars_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tfvars_target.tfvars +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tofu_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tofu_target.tofu +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/toml_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/toml_target.toml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/ts_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/ts_target.ts +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tsx_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/tsx_target.tsx +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/xml_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/xml_target.xml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/yaml_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/yaml_target.yaml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/yml_source.rs +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/symbol_references/yml_target.yml +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/affects/pair.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/clean/counted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/clean/noop.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/clean/notes.txt +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/clean/sorted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/diff/two_blocks.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/failing/unsorted.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/testdata/verbosity/mixed/both_kinds.py +0 -0
- {blockwatch_cli-0.16.7 → blockwatch_cli-0.16.8}/tests/verbosity.rs +0 -0
|
@@ -21,6 +21,10 @@ config:
|
|
|
21
21
|
# A shell command or a table row cannot be wrapped without changing what it means.
|
|
22
22
|
code_blocks: false
|
|
23
23
|
tables: false
|
|
24
|
+
MD010:
|
|
25
|
+
# A recipe line in a Makefile must start with a tab, so an example with spaces would not work.
|
|
26
|
+
ignore_code_languages:
|
|
27
|
+
- make
|
|
24
28
|
MD024:
|
|
25
29
|
# CHANGELOG.md follows Keep a Changelog, where every release repeats "Added" and "Fixed".
|
|
26
30
|
# Requiring uniqueness only among headings sharing a parent still catches a real duplicate.
|
|
@@ -226,11 +226,11 @@ The main modules:
|
|
|
226
226
|
(`b/src/main.rs`), a path found in the walk and a `file:name` attribute all become a `RepoPath`. So the same file is
|
|
227
227
|
always the same map key.
|
|
228
228
|
- `src/language_parsers/` — one parser for each language, most of them a tree-sitter grammar. Markdown and MDX use
|
|
229
|
-
the `markdown` crate, and Lean has its own scanner. Each language has
|
|
230
|
-
`LanguageParser`, which knows which syntax nodes are comments. `src/block_parser.rs`
|
|
231
|
-
blocks. `language_parsers()` in `language_parsers/mod.rs` returns `LanguageParsers`: the
|
|
232
|
-
Its `parser_for` picks the parser of a file, using the settings' extension mappings too.
|
|
233
|
-
module here and register it in that function.**
|
|
229
|
+
the `markdown` crate, Makefile uses the `makefile-lossless` crate, and Lean has its own scanner. Each language has
|
|
230
|
+
a `parser()` that returns a `LanguageParser`, which knows which syntax nodes are comments. `src/block_parser.rs`
|
|
231
|
+
turns those comments into blocks. `language_parsers()` in `language_parsers/mod.rs` returns `LanguageParsers`: the
|
|
232
|
+
parser of each extension. Its `parser_for` picks the parser of a file, using the settings' extension mappings too.
|
|
233
|
+
**To add a language, add a module here and register it in that function.**
|
|
234
234
|
|
|
235
235
|
Some languages also have symbols. Such a language has a `SymbolsParser`, which its `parser()` passes to
|
|
236
236
|
`.with_symbols(...)`:
|
|
@@ -239,6 +239,8 @@ The main modules:
|
|
|
239
239
|
- TOML finds its symbols with `toml_edit`. What a TOML key means depends on the order of the headers, not on how the
|
|
240
240
|
syntax tree is nested.
|
|
241
241
|
- Markdown finds its sections with the `markdown` crate, the same parser that finds its comments.
|
|
242
|
+
- Makefile finds its symbols with `makefile-lossless`, the same crate that finds its comments. The crate is pinned to
|
|
243
|
+
one version. Its known bugs are listed in `docs/symbols.md`, not worked around.
|
|
242
244
|
|
|
243
245
|
Each language's tests list every symbol it finds. When you give a language symbols, also document its paths in
|
|
244
246
|
`docs/symbols.md` and in the "Symbols" section of the skill, `src/skill.md`. A test in `language_parsers/mod.rs` and the
|
|
@@ -12,6 +12,27 @@ 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.16.8] - 2026-11-05
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Symbols in Makefiles (`Makefile`, `GNUmakefile`, `makefile`, `.mk` and `.mak`). `Makefile#/GO_VERSION` points at
|
|
20
|
+
the value of a variable, and `#/build` at the rule of a target. A value is read as GNU make reads it, without its
|
|
21
|
+
inline comment, and is never expanded. See [Makefile](docs/symbols.md#makefile).
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Some block tags in Makefile comments were not found, such as one after an assignment, as in `VERSION := 1.2 # ...`,
|
|
26
|
+
or one below a `(` that is not part of a reference. Now Makefiles are read with the `makefile-lossless` crate. A
|
|
27
|
+
comment that ends in `\` takes in the next line. A `#` after a rule's `;`, after a backslash, as in `\#`, or inside
|
|
28
|
+
`$(...)` doesn't start a comment.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- A block tag in a Makefile is now found on a recipe line whose first character after the tab is `#`, and after any
|
|
33
|
+
`#` in a `define` body. Make reads no comment there, so these tags were not found before. See the known limits in
|
|
34
|
+
[Makefile](docs/symbols.md#makefile).
|
|
35
|
+
|
|
15
36
|
## [0.16.7] - 2026-11-04
|
|
16
37
|
|
|
17
38
|
### Added
|
|
@@ -226,11 +226,11 @@ The main modules:
|
|
|
226
226
|
(`b/src/main.rs`), a path found in the walk and a `file:name` attribute all become a `RepoPath`. So the same file is
|
|
227
227
|
always the same map key.
|
|
228
228
|
- `src/language_parsers/` — one parser for each language, most of them a tree-sitter grammar. Markdown and MDX use
|
|
229
|
-
the `markdown` crate, and Lean has its own scanner. Each language has
|
|
230
|
-
`LanguageParser`, which knows which syntax nodes are comments. `src/block_parser.rs`
|
|
231
|
-
blocks. `language_parsers()` in `language_parsers/mod.rs` returns `LanguageParsers`: the
|
|
232
|
-
Its `parser_for` picks the parser of a file, using the settings' extension mappings too.
|
|
233
|
-
module here and register it in that function.**
|
|
229
|
+
the `markdown` crate, Makefile uses the `makefile-lossless` crate, and Lean has its own scanner. Each language has
|
|
230
|
+
a `parser()` that returns a `LanguageParser`, which knows which syntax nodes are comments. `src/block_parser.rs`
|
|
231
|
+
turns those comments into blocks. `language_parsers()` in `language_parsers/mod.rs` returns `LanguageParsers`: the
|
|
232
|
+
parser of each extension. Its `parser_for` picks the parser of a file, using the settings' extension mappings too.
|
|
233
|
+
**To add a language, add a module here and register it in that function.**
|
|
234
234
|
|
|
235
235
|
Some languages also have symbols. Such a language has a `SymbolsParser`, which its `parser()` passes to
|
|
236
236
|
`.with_symbols(...)`:
|
|
@@ -239,6 +239,8 @@ The main modules:
|
|
|
239
239
|
- TOML finds its symbols with `toml_edit`. What a TOML key means depends on the order of the headers, not on how the
|
|
240
240
|
syntax tree is nested.
|
|
241
241
|
- Markdown finds its sections with the `markdown` crate, the same parser that finds its comments.
|
|
242
|
+
- Makefile finds its symbols with `makefile-lossless`, the same crate that finds its comments. The crate is pinned to
|
|
243
|
+
one version. Its known bugs are listed in `docs/symbols.md`, not worked around.
|
|
242
244
|
|
|
243
245
|
Each language's tests list every symbol it finds. When you give a language symbols, also document its paths in
|
|
244
246
|
`docs/symbols.md` and in the "Symbols" section of the skill, `src/skill.md`. A test in `language_parsers/mod.rs` and the
|
|
@@ -274,7 +274,7 @@ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
|
274
274
|
|
|
275
275
|
[[package]]
|
|
276
276
|
name = "blockwatch"
|
|
277
|
-
version = "0.16.
|
|
277
|
+
version = "0.16.8"
|
|
278
278
|
dependencies = [
|
|
279
279
|
"anyhow",
|
|
280
280
|
"assert-json-diff",
|
|
@@ -289,6 +289,7 @@ dependencies = [
|
|
|
289
289
|
"heck",
|
|
290
290
|
"ignore",
|
|
291
291
|
"libc",
|
|
292
|
+
"makefile-lossless",
|
|
292
293
|
"markdown",
|
|
293
294
|
"mlua",
|
|
294
295
|
"percent-encoding",
|
|
@@ -326,7 +327,6 @@ dependencies = [
|
|
|
326
327
|
"tree-sitter-json",
|
|
327
328
|
"tree-sitter-kotlin-ng",
|
|
328
329
|
"tree-sitter-lua",
|
|
329
|
-
"tree-sitter-make",
|
|
330
330
|
"tree-sitter-nix",
|
|
331
331
|
"tree-sitter-ocaml",
|
|
332
332
|
"tree-sitter-php",
|
|
@@ -491,6 +491,12 @@ version = "1.0.0"
|
|
|
491
491
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
492
492
|
checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
|
|
493
493
|
|
|
494
|
+
[[package]]
|
|
495
|
+
name = "countme"
|
|
496
|
+
version = "3.0.1"
|
|
497
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
498
|
+
checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636"
|
|
499
|
+
|
|
494
500
|
[[package]]
|
|
495
501
|
name = "cpufeatures"
|
|
496
502
|
version = "0.3.1"
|
|
@@ -861,6 +867,12 @@ dependencies = [
|
|
|
861
867
|
"regex-syntax",
|
|
862
868
|
]
|
|
863
869
|
|
|
870
|
+
[[package]]
|
|
871
|
+
name = "hashbrown"
|
|
872
|
+
version = "0.14.5"
|
|
873
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
874
|
+
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
|
875
|
+
|
|
864
876
|
[[package]]
|
|
865
877
|
name = "hashbrown"
|
|
866
878
|
version = "0.17.1"
|
|
@@ -1119,7 +1131,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1119
1131
|
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
1120
1132
|
dependencies = [
|
|
1121
1133
|
"equivalent",
|
|
1122
|
-
"hashbrown",
|
|
1134
|
+
"hashbrown 0.17.1",
|
|
1123
1135
|
]
|
|
1124
1136
|
|
|
1125
1137
|
[[package]]
|
|
@@ -1274,6 +1286,15 @@ dependencies = [
|
|
|
1274
1286
|
"which",
|
|
1275
1287
|
]
|
|
1276
1288
|
|
|
1289
|
+
[[package]]
|
|
1290
|
+
name = "makefile-lossless"
|
|
1291
|
+
version = "0.4.8"
|
|
1292
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1293
|
+
checksum = "25a80f1e6bd18fe790d69cc1dda3eedaaa75bbd052a9734a137017056b5e1fa7"
|
|
1294
|
+
dependencies = [
|
|
1295
|
+
"rowan",
|
|
1296
|
+
]
|
|
1297
|
+
|
|
1277
1298
|
[[package]]
|
|
1278
1299
|
name = "markdown"
|
|
1279
1300
|
version = "1.0.0"
|
|
@@ -1341,7 +1362,7 @@ dependencies = [
|
|
|
1341
1362
|
"mlua-sys",
|
|
1342
1363
|
"num-traits",
|
|
1343
1364
|
"parking_lot",
|
|
1344
|
-
"rustc-hash",
|
|
1365
|
+
"rustc-hash 2.1.3",
|
|
1345
1366
|
]
|
|
1346
1367
|
|
|
1347
1368
|
[[package]]
|
|
@@ -1535,7 +1556,7 @@ dependencies = [
|
|
|
1535
1556
|
"pin-project-lite",
|
|
1536
1557
|
"quinn-proto",
|
|
1537
1558
|
"quinn-udp",
|
|
1538
|
-
"rustc-hash",
|
|
1559
|
+
"rustc-hash 2.1.3",
|
|
1539
1560
|
"rustls",
|
|
1540
1561
|
"socket2",
|
|
1541
1562
|
"thiserror",
|
|
@@ -1557,7 +1578,7 @@ dependencies = [
|
|
|
1557
1578
|
"rand 0.10.3",
|
|
1558
1579
|
"rand_pcg",
|
|
1559
1580
|
"ring",
|
|
1560
|
-
"rustc-hash",
|
|
1581
|
+
"rustc-hash 2.1.3",
|
|
1561
1582
|
"rustls",
|
|
1562
1583
|
"rustls-pki-types",
|
|
1563
1584
|
"slab",
|
|
@@ -1751,6 +1772,24 @@ dependencies = [
|
|
|
1751
1772
|
"windows-sys 0.52.0",
|
|
1752
1773
|
]
|
|
1753
1774
|
|
|
1775
|
+
[[package]]
|
|
1776
|
+
name = "rowan"
|
|
1777
|
+
version = "0.16.1"
|
|
1778
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1779
|
+
checksum = "417a3a9f582e349834051b8a10c8d71ca88da4211e4093528e36b9845f6b5f21"
|
|
1780
|
+
dependencies = [
|
|
1781
|
+
"countme",
|
|
1782
|
+
"hashbrown 0.14.5",
|
|
1783
|
+
"rustc-hash 1.1.0",
|
|
1784
|
+
"text-size",
|
|
1785
|
+
]
|
|
1786
|
+
|
|
1787
|
+
[[package]]
|
|
1788
|
+
name = "rustc-hash"
|
|
1789
|
+
version = "1.1.0"
|
|
1790
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1791
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
1792
|
+
|
|
1754
1793
|
[[package]]
|
|
1755
1794
|
name = "rustc-hash"
|
|
1756
1795
|
version = "2.1.3"
|
|
@@ -2183,6 +2222,12 @@ version = "0.5.1"
|
|
|
2183
2222
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2184
2223
|
checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683"
|
|
2185
2224
|
|
|
2225
|
+
[[package]]
|
|
2226
|
+
name = "text-size"
|
|
2227
|
+
version = "1.1.1"
|
|
2228
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2229
|
+
checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233"
|
|
2230
|
+
|
|
2186
2231
|
[[package]]
|
|
2187
2232
|
name = "thiserror"
|
|
2188
2233
|
version = "2.0.21"
|
|
@@ -2602,16 +2647,6 @@ dependencies = [
|
|
|
2602
2647
|
"tree-sitter-language",
|
|
2603
2648
|
]
|
|
2604
2649
|
|
|
2605
|
-
[[package]]
|
|
2606
|
-
name = "tree-sitter-make"
|
|
2607
|
-
version = "1.1.1"
|
|
2608
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2609
|
-
checksum = "c5998dc7cbcbdab19fae8aefef982bf2d6544513d8d2e69cc44aec4c63810104"
|
|
2610
|
-
dependencies = [
|
|
2611
|
-
"cc",
|
|
2612
|
-
"tree-sitter-language",
|
|
2613
|
-
]
|
|
2614
|
-
|
|
2615
2650
|
[[package]]
|
|
2616
2651
|
name = "tree-sitter-nix"
|
|
2617
2652
|
version = "0.3.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "blockwatch"
|
|
3
|
-
version = "0.16.
|
|
3
|
+
version = "0.16.8"
|
|
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"
|
|
@@ -25,6 +25,8 @@ fnv = "1.0"
|
|
|
25
25
|
globset = "0.4.18"
|
|
26
26
|
heck = "0.5"
|
|
27
27
|
ignore = "0.4"
|
|
28
|
+
# Pinned exactly: a new version can change which symbols and comments a Makefile has.
|
|
29
|
+
makefile-lossless = "=0.4.8"
|
|
28
30
|
markdown = "1.0.0"
|
|
29
31
|
mlua = { version = "0.12.0", features = ["lua54", "vendored", "async", "send"] }
|
|
30
32
|
percent-encoding = "2.3"
|
|
@@ -61,7 +63,6 @@ tree-sitter-javascript = "0.25"
|
|
|
61
63
|
tree-sitter-json = "0.24.8"
|
|
62
64
|
tree-sitter-kotlin-ng = "1.1"
|
|
63
65
|
tree-sitter-lua = "0.5"
|
|
64
|
-
tree-sitter-make = "1.1"
|
|
65
66
|
tree-sitter-nix = "0.3.0"
|
|
66
67
|
tree-sitter-ocaml = "0.26"
|
|
67
68
|
tree-sitter-php = "0.25"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blockwatch-cli
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.8
|
|
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
|
|
@@ -90,9 +90,9 @@ Two validators work across files:
|
|
|
90
90
|
|
|
91
91
|
Both can point to a block, a whole file, a specific value in a file like `package.json#/version`, a section of a
|
|
92
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 or PHP file, a variable in a shell script
|
|
94
|
-
Protocol Buffers file, or a value in a Terraform or other HCL file (see [Symbols](docs/symbols.md)). The
|
|
95
|
-
validators check a single block on their own: the things you'd otherwise have to nitpick in code review.
|
|
93
|
+
Python, Rust, TypeScript, JavaScript, Java, C#, Kotlin, Swift or PHP file, a variable in a shell script or a Makefile, a
|
|
94
|
+
field in a Protocol Buffers file, or a value in a Terraform or other HCL file (see [Symbols](docs/symbols.md)). The
|
|
95
|
+
other validators check a single block on their own: the things you'd otherwise have to nitpick in code review.
|
|
96
96
|
|
|
97
97
|
<!-- <block name="available-validators"
|
|
98
98
|
same-as="src/validators/mod.rs:validator-registry, docs/validators/README.md:validators-index"
|
|
@@ -220,7 +220,7 @@ exclusions, and custom extension mappings.
|
|
|
220
220
|
|
|
221
221
|
```yaml
|
|
222
222
|
- repo: https://github.com/mennanov/blockwatch
|
|
223
|
-
rev: v0.16.
|
|
223
|
+
rev: v0.16.8 # Use latest release
|
|
224
224
|
hooks:
|
|
225
225
|
- id: blockwatch
|
|
226
226
|
```
|
|
@@ -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.16.
|
|
22
|
+
rev: v0.16.8 # 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.16.
|
|
62
|
+
rev: v0.16.8 # 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.16.
|
|
561
|
-
"semanticVersion": "0.16.
|
|
560
|
+
"version": "0.16.8",
|
|
561
|
+
"semanticVersion": "0.16.8",
|
|
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.16.
|
|
568
|
+
"helpUri": "https://github.com/mennanov/blockwatch/blob/v0.16.8/docs/validators/keep-sorted.md"
|
|
569
569
|
}
|
|
570
570
|
]
|
|
571
571
|
}
|
|
@@ -46,6 +46,7 @@ declares, instead of tags in a comment.
|
|
|
46
46
|
| HCL (Terraform) | `.tf`, `.tofu`, `.tfvars`, `.hcl`, `.nomad` | [HCL](#hcl) |
|
|
47
47
|
| PHP | `.php`, `.phtml` | [PHP](#php) |
|
|
48
48
|
| Shell | `.sh`, `.bash`, `.bashrc`, `.bash_profile`, `.envrc` | [Shell](#shell) |
|
|
49
|
+
| Makefile | `Makefile`, `GNUmakefile`, `makefile`, `.mk`, `.mak` | [Makefile](#makefile) |
|
|
49
50
|
|
|
50
51
|
<!-- </block> -->
|
|
51
52
|
|
|
@@ -1083,6 +1084,124 @@ done
|
|
|
1083
1084
|
|
|
1084
1085
|
<!-- </block> -->
|
|
1085
1086
|
|
|
1087
|
+
## Makefile
|
|
1088
|
+
|
|
1089
|
+
<!-- <block name="makefile-paths"> -->
|
|
1090
|
+
|
|
1091
|
+
```make
|
|
1092
|
+
GO_VERSION := 1.22.5
|
|
1093
|
+
VERSION ?= $(shell git describe --tags)
|
|
1094
|
+
export IMAGE = ghcr.io/acme/app:$(VERSION)
|
|
1095
|
+
LINT := v2.10.1 # keep in sync with CI
|
|
1096
|
+
TARGETS = linux \
|
|
1097
|
+
darwin
|
|
1098
|
+
CFLAGS += -O2
|
|
1099
|
+
|
|
1100
|
+
ifeq ($(shell uname),Darwin)
|
|
1101
|
+
SED = gsed
|
|
1102
|
+
else
|
|
1103
|
+
SED = sed
|
|
1104
|
+
endif
|
|
1105
|
+
|
|
1106
|
+
define BANNER
|
|
1107
|
+
Build $(VERSION)
|
|
1108
|
+
endef
|
|
1109
|
+
|
|
1110
|
+
build: deps
|
|
1111
|
+
go build ./...
|
|
1112
|
+
|
|
1113
|
+
bin/app: $(SRC)
|
|
1114
|
+
go build -o $@ .
|
|
1115
|
+
|
|
1116
|
+
%.o: %.c
|
|
1117
|
+
$(CC) -c $<
|
|
1118
|
+
|
|
1119
|
+
.PHONY: build
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
| Path | Points at |
|
|
1123
|
+
|----------------|---------------------------------------------------|
|
|
1124
|
+
| `#/GO_VERSION` | `1.22.5` |
|
|
1125
|
+
| `#/VERSION` | `$(shell git describe --tags)`, as written |
|
|
1126
|
+
| `#/IMAGE` | `ghcr.io/acme/app:$(VERSION)`, as written |
|
|
1127
|
+
| `#/LINT` | `v2.10.1`, without the comment |
|
|
1128
|
+
| `#/TARGETS` | `linux darwin` |
|
|
1129
|
+
| `#/CFLAGS` | not found, as `+=` adds to a name |
|
|
1130
|
+
| `#/SED` | a violation, as both branches set it |
|
|
1131
|
+
| `#/BANNER` | `Build $(VERSION)` |
|
|
1132
|
+
| `#/build` | the whole rule: the target line and the recipe |
|
|
1133
|
+
| `#/bin~1app` | the whole rule |
|
|
1134
|
+
| `#/%25.o` | not found, as a pattern rule is not a symbol |
|
|
1135
|
+
| `#/.PHONY` | not found, as a special target is not a symbol |
|
|
1136
|
+
|
|
1137
|
+
- **A variable or a target set at the top or in a conditional is a symbol.** Every branch of `ifeq`, `ifneq`,
|
|
1138
|
+
`ifdef` and `ifndef` counts, at any depth. So a name set in two branches is defined twice. Variables and targets
|
|
1139
|
+
share one set of names, so a variable and a target with the same name are defined twice too.
|
|
1140
|
+
- **Every assignment but `+=` sets a name:** `=`, `:=`, `::=`, `:::=`, `?=` and `!=`, with any of `export`,
|
|
1141
|
+
`override` and `private` in front. So does `define NAME` ... `endef`, with the same keywords and operators.
|
|
1142
|
+
`X ?= 1` next to `X = 2` is defined twice too.
|
|
1143
|
+
- **A target covers its whole rule.** In `a b: c`, both `a` and `b` cover the whole rule. A target in two rules is
|
|
1144
|
+
defined twice, even with `::`. Write each `/` in a target as `~1`: `bin/app` is `#/bin~1app`.
|
|
1145
|
+
- **A rule ends at its last recipe line.** It takes in a conditional below it when a branch of the conditional starts
|
|
1146
|
+
with a recipe line, since make could read that branch. A rule in a branch of a conditional ends with that branch,
|
|
1147
|
+
since a path can't tell which branch make reads.
|
|
1148
|
+
- **A line that starts with a tab is a recipe line only in a rule, as in make.** It is one when the last statement
|
|
1149
|
+
above it, apart from conditionals, comments and other recipe lines, is a rule. Each branch of a conditional starts
|
|
1150
|
+
from the statements above the conditional. After `endif`, a tab line is a recipe line when any branch ended in a
|
|
1151
|
+
rule. Anywhere else, an assignment on such a line sets a name, such as `CC = clang` after a tab, and a `#` on it
|
|
1152
|
+
starts a comment. After `.RECIPEPREFIX = >`, a recipe line starts with `>` in place of a tab.
|
|
1153
|
+
- **These are not symbols:** `NAME += value`, a target-specific variable such as `build: NAME = x`, `export NAME`
|
|
1154
|
+
without a value, a computed name such as `$(PKG)_VERSION = 1` or `$(BIN):`, a pattern rule such as `%.o`, a suffix
|
|
1155
|
+
rule, and a special target. A suffix rule, such as `.c.o`, is the old way to write `%.o: %.c`. Its target is one or
|
|
1156
|
+
two of the suffixes that make knows, such as `.c`, `.o` or `.sh`, and it has no prerequisites. So
|
|
1157
|
+
`.sh: install.txt` is a symbol. A special target is `.` followed by only capital letters and `_`, such as
|
|
1158
|
+
`.PHONY`. So `.venv` and `.coverage` are symbols. The files that `include` reads are not searched. A path into
|
|
1159
|
+
such a file works.
|
|
1160
|
+
- **A value is read as GNU make reads it, but it is never expanded:**
|
|
1161
|
+
- A `#` starts a comment, which is not part of the value. `\#` gives `#`.
|
|
1162
|
+
- A `\` at the end of a line joins the next line, with one space between them. The white space after the operator
|
|
1163
|
+
is left out, even when the value starts on the next line, as in `SRCS = \`.
|
|
1164
|
+
- `$(...)`, `${...}` and `$$` stay as written, with any `#` in them.
|
|
1165
|
+
- The white space at the end is left out. GNU make keeps it, but a `same-as` check would fail on spaces no one
|
|
1166
|
+
can see.
|
|
1167
|
+
- `X != cmd` gives `cmd`. The command is not run.
|
|
1168
|
+
- A `define` body keeps its comments and its `\#`, as make does.
|
|
1169
|
+
- `X =` gives the empty string.
|
|
1170
|
+
- A carriage return before a line feed is left out, as make does.
|
|
1171
|
+
- **A line that make joins to a statement is part of it.** So it sets no name:
|
|
1172
|
+
- After a comment that ends in `\`, the next line is part of the comment.
|
|
1173
|
+
- In `A = a$\` with `B = 1` on the next line, `#/A` gives `a$ B = 1`, and `#/B` is not found.
|
|
1174
|
+
- The lines of a `define` body are part of it, up to the `endef` that make matches to it. A `define` inside it
|
|
1175
|
+
needs its own `endef`, and an `endef` after a tab doesn't count.
|
|
1176
|
+
- **BSD make's own lines, such as `.if` and `.include`, set nothing.** An assignment between `.if` and `.endif`
|
|
1177
|
+
sets its name, as anywhere else.
|
|
1178
|
+
- **A file that make stops on stops the run:** one with a `define` without `endef`, a conditional without `endif`,
|
|
1179
|
+
an `else` or `endif` outside a conditional, a second `else` in one conditional, or an `ifeq` without its arguments.
|
|
1180
|
+
The message shows the line. For a missing `endif`, that is the end of the file, as in make's own message.
|
|
1181
|
+
|
|
1182
|
+
<!-- <block name="makefile-nesting"> -->
|
|
1183
|
+
|
|
1184
|
+
- **A file nested more than 128 levels deep stops the run too,** with conditionals or with `$(...)` references.
|
|
1185
|
+
Make reads it, but the `makefile-lossless` crate skips the conditionals nested deeper, so a name set in them would
|
|
1186
|
+
be missing.
|
|
1187
|
+
|
|
1188
|
+
<!-- </block> -->
|
|
1189
|
+
|
|
1190
|
+
- **Known limits.** blockwatch reads Makefiles with the `makefile-lossless` crate, and keeps what it finds:
|
|
1191
|
+
- A rule takes in the comment lines after its last recipe line. In `test:`, a recipe line, then `# Tools.`, `#/test`
|
|
1192
|
+
covers `# Tools.`. So editing that comment counts as a change to `#/test`.
|
|
1193
|
+
- In a `define` body, a line that starts with a tab keeps a `\` at its end, and the line end after it. Make joins
|
|
1194
|
+
the two lines with one space.
|
|
1195
|
+
- A line that make stops on can give targets. `a b = 6` gives `#/a` and `#/b`, and `= 7` gives `#/7`. Make stops
|
|
1196
|
+
on them with "missing separator" and "empty variable name".
|
|
1197
|
+
- A comment is found on a recipe line whose first character after the tab is `#`, and after any `#` in a `define`
|
|
1198
|
+
body. So a block tag there is found. Make passes these lines on as they are, without reading a comment.
|
|
1199
|
+
- In `lint: N = x;y # value`, `# value` is read as a comment. Make keeps it in the value that `N` has for `lint`.
|
|
1200
|
+
- In `D = a$# b`, the `#` and the text after it are read as comments, and `#/D` gives `a$#`. Make reads `$#` as a
|
|
1201
|
+
variable reference, so the line has no comment, and the value is `a$# b`.
|
|
1202
|
+
|
|
1203
|
+
<!-- </block> -->
|
|
1204
|
+
|
|
1086
1205
|
---
|
|
1087
1206
|
|
|
1088
1207
|
[← Return to README](../README.md)
|
|
@@ -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.16.
|
|
9
|
+
install_requires=['blockwatch-cli==0.16.8'],
|
|
10
10
|
# </block>
|
|
11
11
|
# Without it, setuptools takes the directories under src/ for Python packages.
|
|
12
12
|
packages=[],
|