-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from fedepaol/fixci
Adjust the CI and make the linters happy
- Loading branch information
Showing
12 changed files
with
105 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: CI | |
on: | ||
merge_group: | ||
pull_request: | ||
paths-ignore: | ||
- 'DCO' | ||
- 'LICENSE' | ||
- 'README.md' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(github.com/go-kit/log.Logger).Log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
run: | ||
issues-exit-code: 2 | ||
linters: | ||
enable: | ||
- godot | ||
- goimports | ||
- gofmt | ||
- ginkgolinter | ||
- dogsled | ||
- exportloopref | ||
- gocritic | ||
- misspell | ||
- nolintlint | ||
- stylecheck | ||
- unconvert | ||
- unparam | ||
- whitespace | ||
- revive | ||
- unused | ||
- wastedassign | ||
linters-settings: | ||
errcheck: | ||
exclude: .golangci.exclude | ||
godot: | ||
scope: toplevel | ||
capital: true | ||
exclude: | ||
- 'SPDX-License-Identifier.*' | ||
- '\+groupName.*' | ||
misspell: | ||
locale: US | ||
ignore-words: | ||
- neighbours | ||
- neighbour | ||
stylecheck: | ||
dot-import-whitelist: | ||
- github.com/onsi/ginkgo | ||
- github.com/onsi/gomega | ||
gocritic: | ||
disabled-checks: | ||
- captLocal | ||
- exitAfterDefer | ||
revive: | ||
rules: | ||
- name: receiver-naming | ||
disabled: true | ||
- name: dot-imports | ||
disabled: true | ||
issues: | ||
exclude-rules: | ||
- path: 'api' | ||
linters: | ||
- stylecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
rules: { | ||
// Ensure we have a blank line between the header and the body. | ||
'body-leading-blank': [2, 'always'], | ||
// Warn on lines longer than 72 chars. We usually don't want them for | ||
// text, but links are fine if they exceed. So, just warn. | ||
'body-max-line-length': [1, 'always', 72], | ||
// Ensure the header line doesn't end with a period. | ||
'header-full-stop': [2, 'never'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.