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
|
1
Makefile
1
Makefile
|
@ -105,6 +105,7 @@ lint-client: ## Lint client code
|
||||||
|
|
||||||
lint-server: tidy ## Lint server code
|
lint-server: tidy ## Lint server code
|
||||||
golangci-lint run --timeout=10m -c .golangci.yaml
|
golangci-lint run --timeout=10m -c .golangci.yaml
|
||||||
|
golangci-lint run --timeout=10m --new-from-rev=HEAD~ -c .golangci-forward.yaml
|
||||||
|
|
||||||
##@ Extension
|
##@ Extension
|
||||||
.PHONY: dev-extension
|
.PHONY: dev-extension
|
||||||
|
|
Loading…
Reference in New Issue