mirror of
https://github.com/TabbyML/tabby
synced 2024-11-21 07:50:13 +00:00
5c9b62faa3
* init commit * [autofix.ci] apply automated fixes * draft create_thread_run_api * cleanup * update * update * update * update * update * update * connect streaming * update * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * add back answer api for ease of migration * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
30 lines
662 B
YAML
30 lines
662 B
YAML
id: validate-requires-code
|
|
message: Validations requires code / message being set for frontend error display
|
|
severity: error
|
|
language: rust
|
|
files:
|
|
- ./ee/tabby-webserver/src/**
|
|
- ./ee/tabby-schema/src/**
|
|
rule:
|
|
all:
|
|
- pattern: "#[validate]"
|
|
- not:
|
|
all:
|
|
- has:
|
|
stopBy: end
|
|
pattern: code
|
|
- has:
|
|
stopBy: end
|
|
pattern: message
|
|
- not:
|
|
any:
|
|
- has:
|
|
stopBy: end
|
|
pattern: custom
|
|
- has:
|
|
stopBy: end
|
|
pattern: nested
|
|
- has:
|
|
stopBy: end
|
|
pattern: schema
|