tabby/rules/use-schema-result.yml
Meng Zhang ccf332177a
refactor(ui): switch to CoreError for all services API consumed by GraphQL (#1515)
* refactor out RepositoryError

* switch auth service to CoreError

* migrate email to schema::Result

* migrate job to schema::Result

* migrate license to schema::Result

* migrate worker to schema::Result

* migrate repository to schema::Result

* migrate settings to schema::Result

* refactor out SendEmailError

* fix error converstion

* simplify return value

* fix

* add lint rule use-schema-result

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-22 21:22:37 -08:00

12 lines
227 B
YAML

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