Skip to content

Commit 2e95653

Browse files
committed
linter
1 parent ae5147d commit 2e95653

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ test:
3232
.PHONY: test-generate
3333
test-generate:
3434
./tests/test.sh
35+
36+
.PHONY: lint
37+
lint:
38+
golangci-lint run --build-tags client -p bugs -p unused

cmd/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var generateCmd = &cobra.Command{
7272
outputFileName, _ := cmd.Flags().GetString("output-file-name")
7373
outputFile := fmt.Sprintf("%s/%s", configDir, outputFileName)
7474

75-
err = os.WriteFile(outputFile, configBytes, 0644)
75+
err = os.WriteFile(outputFile, configBytes, 0644) //nolint:gosec
7676
if err != nil {
7777
fmt.Printf("failed to write file, %v", err)
7878
os.Exit(1)

0 commit comments

Comments
 (0)