-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Henry Wang <[email protected]>
- Loading branch information
Showing
198 changed files
with
724 additions
and
424 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# The sections in this file are ordered in the order presented in https://golangci-lint.run/usage/configuration/. | ||
# The nested fields are ordered alphabetically. | ||
|
||
linters-settings: | ||
goheader: | ||
template-path: copyright_header | ||
goimports: | ||
local-prefixes: github.com/runfinch/finch-daemon | ||
gosec: | ||
config: | ||
G306: "0o644" | ||
excludes: | ||
- G304 | ||
- G101 | ||
- G104 | ||
lll: | ||
line-length: 250 | ||
tab-width: 4 | ||
makezero: | ||
always: true | ||
nolintlint: | ||
require-explanation: true | ||
require-specific: true | ||
stylecheck: | ||
checks: ["all", "-ST1003", "-ST1000", "-ST1001", "-ST1021"] | ||
|
||
linters: | ||
enable: | ||
# - errname | ||
# - errorlint | ||
- exportloopref | ||
# - forcetypeassert | ||
# - gocritic | ||
- godot | ||
# - gofumpt | ||
- goheader | ||
# - goimports | ||
- gosec | ||
- lll | ||
# - makezero | ||
- misspell | ||
# - nilerr | ||
# - nilnil | ||
- nolintlint | ||
- nosprintfhostport | ||
# - paralleltest | ||
- predeclared | ||
- reassign | ||
# - revive | ||
- testableexamples | ||
- unconvert | ||
# - unparam | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
- stylecheck | ||
disable: | ||
- errcheck | ||
|
||
issues: | ||
exclude-rules: | ||
- linters: | ||
- lll | ||
# A go:generate statement has to be in the same line: https://github.com/golang/go/issues/46050. | ||
source: "^//go:generate " | ||
|
||
# Some checks enabled in the stylecheck setting are disabled by default | ||
# (e.g., https://golangci-lint.run/usage/false-positives/#exc0013), | ||
# so we need to enable them explicitly here. | ||
exclude-use-default: false | ||
# fix: true |
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,2 @@ | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 |
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
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
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
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
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.