tabby/rules/use-datetimeutc-in-tabby-db.yml
Meng Zhang 62397959a5
ci: add lint to check around all DateTime<Utc> usage in tabby-db (#1952)
* ci: add lint to warning around all DateTime<Utc> usage in tabby-db

* update

* update

* fix unit test

* update
2024-04-24 21:49:09 +00:00

17 lines
378 B
YAML

id: use-datetimeutc-in-tabby-db
message: Use tabby_db::DateTimeUtc in tabby-db
severity: error
language: rust
files:
- ./ee/tabby-db/**
ignores:
- ./ee/tabby-db/src/lib.rs
rule:
any:
- kind: generic_type
has:
kind: type_identifier
regex: ^Utc$
stopBy: end
- pattern: Utc
- pattern: DateTime