Skip to content

Commit

Permalink
Merge pull request #2 from thaJeztah/fix_dupwords
Browse files Browse the repository at this point in the history
golangci-lint: remove unused settings, sort linters, and enable dupwords
  • Loading branch information
milosgajdos authored Aug 31, 2023
2 parents 32c15de + f5c0e07 commit 5e94b14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
23 changes: 7 additions & 16 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
linters:
enable:
- staticcheck
- unconvert
- bodyclose
- dupword # Checks for duplicate words in the source code
- gofmt
- goimports
- revive
- ineffassign
- vet
- unused
- misspell
- bodyclose
- revive
- staticcheck
- unconvert
- unused
- vet
disable:
- errcheck

linters-settings:
revive:
rules:
# TODO(thaJeztah): temporarily disabled the "unused-parameter" check.
# It produces many warnings, and some of those may need to be looked at.
- name: unused-parameter
disabled: true

run:
deadline: 2m
skip-dirs:
- vendor
2 changes: 1 addition & 1 deletion normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func splitDockerDomain(name string) (domain, remainder string) {
}

// familiarizeName returns a shortened version of the name familiar
// to to the Docker UI. Familiar names have the default domain
// to the Docker UI. Familiar names have the default domain
// "docker.io" and "library/" repository prefix removed.
// For example, "docker.io/library/redis" will have the familiar
// name "redis" and "docker.io/dmcgowan/myapp" will be "dmcgowan/myapp".
Expand Down

0 comments on commit 5e94b14

Please sign in to comment.