[#195] Add log constants linter #198
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#198
Loading…
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-s3-gw:feature/add_log_constants_linter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #195
Signed-off-by: Marina Biryukova m.biryukova@yadro.com
@ -27,0 +31,4 @@
settings:
noliteral:
enable: true
target-methods: ["reportFlushError", "reportError"]
In this repo we don't have such funtions. I propose to use the following:
Fatal
@ -104,0 +114,4 @@
@@make -C $(TMP_DIR)/linters lib CGO_ENABLED=1 OUT_DIR=$(OUTPUT_LINT_DIR)
@rm -rf $(TMP_DIR)/linters
@rmdir $(TMP_DIR) 2>/dev/null || true
@CGO_ENABLED=1 GOBIN=$(LINT_DIR) go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$(LINT_VERSION)
Why do we need
CGO_ENABLED
?I did as in frostfs-node, it's needed for linter installation
a388b0b969
to2fc328a6d2