Skip to content

Commit

Permalink
Bump golangci-lint to 1.49.0 (stmcginnis#196)
Browse files Browse the repository at this point in the history
This version pulls in some updated linters with better checks and
version support.

Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis authored Aug 26, 2022
1 parent 421a112 commit 243da4e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.48.0
version: v1.49.0
args: --timeout=5m -v
3 changes: 0 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -73,13 +72,11 @@ linters:
- revive
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace

# don't enable:
Expand Down
1 change: 1 addition & 0 deletions redfish/messageregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func GetMessageRegistryByLanguage(
// from the informed messageID.
// messageID is the key used to find the registry, version and message:
// Example of messageID: Alert.1.0.LanDisconnect
//
// - The segment before the 1st period is the Registry Name (Registry Prefix): Alert
// - The segment between the 1st and 2nd period is the major version: 1
// - The segment between the 2nd and 3rd period is the minor version: 0
Expand Down
1 change: 1 addition & 0 deletions serviceroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ func (serviceroot *Service) MessageRegistryByLanguage(registry, language string)

// MessageByLanguage tries to find and get the message in the correct language from the informed messageID.
// messageID is the key used to find the registry, version and message, for example: "Alert.1.0.LanDisconnect"
//
// - The segment before the 1st period is the Registry Name (Registry Prefix): Alert
// - The segment between the 1st and 2nd period is the major version: 1
// - The segment between the 2nd and 3rd period is the minor version: 0
Expand Down

0 comments on commit 243da4e

Please sign in to comment.