mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-29 17:37:58 -05:00
* 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)
22 lines
444 B
YAML
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$
|