tabby/rules/use-schema-result.yml
Meng Zhang 4224ff30e4
refactor(webserver): extract tabby-schema (#2028)
* init

* update env

* update rules

* cleanup dependency

* cleanup

* update

* update
2024-05-01 22:50:26 -07:00

17 lines
342 B
YAML

id: use-schema-result
message: Use schema::Result as API interface
severity: error
language: rust
files:
- ./ee/tabby-schema/src/**
ignores:
- ./ee/tabby-schema/src/lib.rs
- ./ee/tabby-schema/src/dao.rs
rule:
any:
- pattern: anyhow
not:
inside:
kind: enum_variant
stopBy: end
- pattern: FieldResult