[#195] Add log constants linter #198

Merged
alexvanin merged 1 commit from mbiryukova/frostfs-s3-gw:feature/add_log_constants_linter into master 2023-08-31 11:56:16 +00:00
Member

Closes #195

Signed-off-by: Marina Biryukova m.biryukova@yadro.com

Closes #195 Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova self-assigned this 2023-08-25 14:44:45 +00:00
dkirillov reviewed 2023-08-28 06:53:31 +00:00
.golangci.yml Outdated
@ -27,0 +31,4 @@
settings:
noliteral:
enable: true
target-methods: ["reportFlushError", "reportError"]
Member

In this repo we don't have such funtions. I propose to use the following: Fatal

In this repo we don't have such funtions. I propose to use the following: `Fatal`
dkirillov marked this conversation as resolved
dkirillov reviewed 2023-08-28 06:58:30 +00:00
Makefile Outdated
@ -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)
Member

Why do we need CGO_ENABLED?

Why do we need `CGO_ENABLED`?
Author
Member

I did as in frostfs-node, it's needed for linter installation

I did as in [frostfs-node](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/Makefile#L147), it's needed for linter installation
dkirillov marked this conversation as resolved
mbiryukova force-pushed feature/add_log_constants_linter from a388b0b969 to 2fc328a6d2 2023-08-28 09:59:57 +00:00 Compare
dkirillov approved these changes 2023-08-28 11:31:01 +00:00
mbiryukova requested review from storage-services-committers 2023-08-28 12:15:08 +00:00
mbiryukova requested review from storage-services-developers 2023-08-28 12:15:09 +00:00
alexvanin approved these changes 2023-08-31 11:56:05 +00:00
alexvanin merged commit 2fc328a6d2 into master 2023-08-31 11:56:16 +00:00
alexvanin deleted branch feature/add_log_constants_linter 2023-08-31 11:56:28 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#198
No description provided.