Skip to content

Commit c314e3a

Browse files
authored
chore(fix): enables more linters (#54)
1 parent f965107 commit c314e3a

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.golangci.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
version: "2"
22
run:
3-
concurrency: 4
3+
allow-parallel-runners: true
44
linters:
5+
default: none
6+
enable:
7+
- copyloopvar
8+
- dupl
9+
- errcheck
10+
- ginkgolinter
11+
- goconst
12+
- gocyclo
13+
- govet
14+
- ineffassign
15+
- misspell
16+
- nakedret
17+
- prealloc
18+
- revive
19+
- staticcheck
20+
- unconvert
21+
# - unparam
22+
- unused
23+
settings:
24+
revive:
25+
rules:
26+
- name: comment-spacings
527
exclusions:
628
generated: lax
729
presets:
@@ -16,6 +38,9 @@ linters:
1638
- builtin$
1739
- examples$
1840
formatters:
41+
enable:
42+
- gofmt
43+
- goimports
1944
exclusions:
2045
generated: lax
2146
paths:

internal/ocm/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type CatalogResponse struct {
1717
Repositories []string `json:"repositories"`
1818
}
1919

20-
/**
20+
/*
2121
* @Description: GetRepositoriesInOCIRegistry returns the repositories in the OCI registry
2222
* @param ociRegistry string - the OCI registry URL without paths
2323
* @param creds RegistryCredentials - the credentials to access the OCI registry

pkg/juggler/fluxcd/flux_sources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
msgReadyNotPresent = "Unable to check healthiness. Ready condition is not present."
2323
)
2424

25-
/// use strategy for with adapter pattern
25+
// use strategy for with adapter pattern
2626
// adapter for third party types to conform to a common interface
2727
// use strategy for the reconcilers on how each can be reconciled e.g. for the applyResources method in flux-reconciler
2828

0 commit comments

Comments
 (0)