mirror of
https://github.com/TabbyML/tabby
synced 2024-11-21 16:03:07 +00:00
62397959a5
* ci: add lint to warning around all DateTime<Utc> usage in tabby-db * update * update * fix unit test * update
17 lines
378 B
YAML
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 |