Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -48,6 +48,7 @@ func (dc DocumentClassification) String() string {
case DocumentClassificationSecret:
return "SECRET"
}
panic(fmt.Errorf("invalid DocumentClassification value: %s", string(dc)))
}
@@ -58,6 +59,7 @@ func (dc *DocumentClassification) Scan(value any) error {
}
var sv string
switch v := value.(type) {
case string:
sv = v
@@ -68,6 +70,7 @@ func (dc *DocumentClassification) Scan(value any) error {
}
*dc = DocumentClassification(sv)
return nil
}