mirror of https://github.com/portainer/portainer
chore(golangci-lint): add forward-looking static checking rules BE-12183 (#1200)
parent
ad1c015f01
commit
eef54f4153
|
@ -0,0 +1,11 @@
|
|||
version: "2"
|
||||
linters:
|
||||
default: none
|
||||
enable:
|
||||
- forbidigo
|
||||
settings:
|
||||
forbidigo:
|
||||
forbid:
|
||||
- pattern: ^dataservices.DataStore.(EdgeGroup|EdgeJob|EdgeStack|EndpointRelation|Endpoint|GitCredential|Registry|ResourceControl|Role|Settings|Snapshot|Stack|Tag|User)$
|
||||
msg: Use a transaction instead
|
||||
analyze-types: true
|
Loading…
Reference in New Issue