Skip to content

Commit

Permalink
ci(lint): enable misspell linter
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Jan 19, 2025
1 parent 6b12886 commit 75c32da
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linters:
- ineffassign
#- lll
- loggercheck
#- misspell
- misspell
- nolintlint
#- prealloc
- staticcheck
Expand Down
2 changes: 1 addition & 1 deletion core/server/suspend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func getUnstructuredObj(t *testing.T, k client.Client, name types.NamespacedName
return unstructuredObj
}

// checkSuspendAnnotations checks for the existance of suspend annotations
// checkSuspendAnnotations checks for the existence of suspend annotations
// passes if suspended and annotations exist, or not suspended and annotations don't exist
// if annotations exist, the principal is checked in the annotation for suspended-by
func checkSuspendAnnotations(t *testing.T, principalID string, annotations map[string]string, name types.NamespacedName, suspend bool) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/git/gogit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ var _ = Describe("Read", func() {
Expect(content).To(Equal(fileContent))
})

It("Reads a file from a repo even if not commited", func() {
It("Reads a file from a repo even if not committed", func() {
_, err = gitClient.Init(dir, "https://github.com/github/gitignore", "master")
filePath := "/test.txt"
content := []byte("testing")
Expand Down
2 changes: 1 addition & 1 deletion pkg/gitproviders/dryrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = Describe("DryRun", func() {
})

Describe("GetCommits", func() {
It("returns emtpy", func() {
It("returns empty", func() {
res, err := dryRunProvider.GetCommits(ctx, repoURL, "", 1, 1)
Expect(err).ToNot(HaveOccurred())
Expect(res).To(Equal([]gitprovider.Commit{}))
Expand Down
2 changes: 1 addition & 1 deletion pkg/gitproviders/repo_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func detectGitProviderFromURL(raw string, gitHostTypes map[string]string) (GitPr
// the `:` delimiter between host and path throws off the std. url parser
func parseGitURL(raw string) (*url.URL, error) {
if strings.HasPrefix(raw, "git@") {
// The first occurance of `:` should be the host:path delimiter.
// The first occurrence of `:` should be the host:path delimiter.
raw = strings.Replace(raw, ":", "/", 1)
raw = "ssh://" + raw
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/kubehttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
var ErrWegoConfigNotFound = errors.New("wego config not found")

// InClusterConfig defines a function for checking if this code is executing in kubernetes.
// This can be overriden if needed.
// This can be overridden if needed.
var InClusterConfig func() (*rest.Config, error) = rest.InClusterConfig

var ErrNamespaceNotFound = errors.New("namespace not found")
Expand Down

0 comments on commit 75c32da

Please sign in to comment.