-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'google:master' into dependecy_graph_snapshots
- Loading branch information
Showing
352 changed files
with
31,472 additions
and
25,521 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,3 +3,5 @@ ignore: | |
- "github/github-accessors.go" | ||
# ignore experimental scrape package | ||
- "scrape" | ||
# ignore tools | ||
- "tools" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
*.sh | ||
!/script/*.sh | ||
*.test | ||
.*.local | ||
coverage.out | ||
/bin | ||
# intellij files | ||
.idea/ | ||
vendor/ | ||
|
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 |
---|---|---|
@@ -1,34 +1,53 @@ | ||
run: | ||
build-tags: | ||
- integration | ||
timeout: 10m | ||
linters: | ||
# TODO: fix errors so that all of the linters below pass. | ||
# The linters that are commented out, as well as those explicitly disabled, | ||
# are currently failing. We should fix those failures or define exclusion | ||
# rules, and then enable those linters. | ||
enable: | ||
- dogsled | ||
- dupl | ||
- gofmt | ||
- goimports | ||
# - gosec | ||
- gosec | ||
- misspell | ||
- nakedret | ||
- stylecheck | ||
# - unconvert | ||
# - unparam | ||
- unconvert | ||
- unparam | ||
- whitespace | ||
disable: | ||
- errcheck | ||
- gosimple | ||
- staticcheck | ||
- ineffassign | ||
- unused | ||
linters-settings: | ||
gosec: | ||
excludes: | ||
# duplicates errcheck | ||
- G104 | ||
# performance issue: see https://github.com/golangci/golangci-lint/issues/4039 | ||
# and https://github.com/securego/gosec/issues/1007 | ||
- G602 | ||
issues: | ||
exclude: | ||
- composites | ||
exclude-use-default: false | ||
exclude-rules: | ||
- linters: | ||
- dogsled | ||
text: "declaration has 3 blank identifiers" | ||
path: _test\.go | ||
- linters: | ||
- dupl | ||
path: _test\.go | ||
- linters: | ||
- dupl | ||
- unparam | ||
- gosec | ||
- dogsled | ||
path: _test\.go | ||
|
||
# We need to pass nil Context in order to test DoBare erroring on nil ctx. | ||
- linters: [ staticcheck ] | ||
text: 'SA1012: do not pass a nil Context' | ||
path: _test\.go | ||
|
||
# We need to use sha1 for validating signatures | ||
- linters: [ gosec ] | ||
text: 'G505: Blocklisted import crypto/sha1: weak cryptographic primitive' | ||
|
||
# This is adapted from golangci-lint's default exclusions. It disables linting for error checks on | ||
# os.RemoveAll and any function ending in "Close". | ||
- linters: [ errcheck ] | ||
text: Error return value of .(.*Close|os\.Remove(All)?). is not checked | ||
|
||
# We don't care about file inclusion via variable in examples or internal tools. | ||
- linters: [ gosec ] | ||
text: 'G304: Potential file inclusion via variable' | ||
path: '^(example|tools)\/' |
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 |
---|---|---|
|
@@ -303,6 +303,7 @@ Matt Gaunt <[email protected]> | |
Matt Landis <[email protected]> | ||
Matt Moore <[email protected]> | ||
Matt Simons <[email protected]> | ||
Matthew Reidy <[email protected]> | ||
Maxime Bury <[email protected]> | ||
Michael Meng <[email protected]> | ||
Michael Spiegel <[email protected]> | ||
|
@@ -484,4 +485,4 @@ Zach Latta <[email protected]> | |
zhouhaibing089 <[email protected]> | ||
六开箱 <[email protected]> | ||
缘生 <[email protected]> | ||
蒋航 <[email protected]> | ||
蒋航 <[email protected]> |
Oops, something went wrong.