Files
qdrant/tools/ast-grep/rules/no-allow-dead-code.yml
xzfc 75385df69f Remove dead code (#10030)
* Remove dead code

* Remove unused dependencies

* `allow(dead_code)` -> `expect(dead_code)`

* ast-grep: rule-tests/*-test.yml => tests/*-test.yml

For brevity.

* ast-grep: forbid allow(dead_code)
2026-07-30 20:59:31 +00:00

22 lines
444 B
YAML

id: no-allow-dead-code
language: rust
severity: error
message: "`allow(dead_code)` instead of `expect(dead_code)`"
ignores:
- lib/api/src/grpc/**
- lib/edge/publish/**
- lib/uio-grpc-client/src/generated/**
rule:
any:
- kind: attribute_item
- kind: inner_attribute_item
has:
stopBy: end
kind: token_tree
has:
kind: identifier
regex: ^dead_code$
follows:
kind: identifier
regex: ^allow$