mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 02:20:13 +00:00
14 lines
531 B
YAML
14 lines
531 B
YAML
version: '2'
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- forbidigo
|
|
settings:
|
|
forbidigo:
|
|
forbid:
|
|
- pattern: ^dataservices.DataStore.(EdgeGroup|EdgeJob|EdgeStack|EndpointRelation|Endpoint|GitCredential|Registry|ResourceControl|Role|Settings|Snapshot|SSLSettings|Stack|Tag|User)$
|
|
msg: Use a transaction instead
|
|
- pattern: ^(filepath|path)\.Join$
|
|
msg: Use filesystem.JoinPaths() from github.com/portainer/portainer/api/filesystem to prevent path traversal attacks
|
|
analyze-types: true
|