-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brian Bentson
committed
Mar 7, 2024
1 parent
06e4a43
commit 317e94b
Showing
484 changed files
with
51,083 additions
and
9,569 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,5 @@ | ||
// (*io.PipeWriter).CloseWithError "never overwrites the previous error if it | ||
// exists and always returns nil". | ||
// | ||
// https://golang.org/pkg/io/#PipeWriter.CloseWithError | ||
(*io.PipeWriter).CloseWithError |
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,38 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go: [1.13, 1.14, 1.15] | ||
os: [ubuntu-latest, macos-latest] | ||
name: Build & Test | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Set up Go ${{ matrix.go }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Test | ||
run: go test -tags=unit ./... | ||
golangci: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.29 | ||
only-new-issues: true | ||
args: --timeout=5m |
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,95 @@ | ||
run: | ||
concurrency: 4 | ||
timeout: 1m | ||
|
||
# exit code when at least one issue was found | ||
issues-exit-code: 1 | ||
|
||
# include test files | ||
tests: true | ||
|
||
build-tags: | ||
|
||
# which dirs to skip: issues from them won't be reported; | ||
skip-dirs: | ||
|
||
# enables skipping of default directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
|
||
# which files to skip: they will be analyzed, but issues from them won't be | ||
# reported. | ||
skip-files: | ||
|
||
# disallow multiple parallel golangci-lint instances | ||
allow-parallel-runners: false | ||
|
||
output: | ||
# colored-line-number|line-number|json|tab|checkstyle|code-climate | ||
format: colored-line-number | ||
|
||
# print lines of code with issue | ||
print-issued-lines: true | ||
|
||
# print linter name in the end of issue text | ||
print-linter-name: true | ||
|
||
# make issues output unique by line | ||
uniq-by-line: true | ||
|
||
linters-settings: | ||
errcheck: | ||
# do not report about not checking errors in type assertions: `a := | ||
# b.(MyStruct)` | ||
check-type-assertions: false | ||
|
||
# do not report about assignment of errors to blank identifier: `num, _ := | ||
# strconv.Atoi(numStr)` | ||
check-blank: false | ||
|
||
# path to a file containing a list of functions to exclude from checking | ||
# see https://github.com/kisielk/errcheck#excluding-functions for details | ||
exclude: .errcheck-excludes | ||
|
||
govet: | ||
# report about shadowed variables | ||
check-shadowing: true | ||
|
||
# settings per analyzer | ||
settings: | ||
# run `go tool vet help` to see all analyzers | ||
printf: | ||
# run `go tool vet help printf` to see available settings for `printf` | ||
# analyzer | ||
funcs: | ||
- (github.com/grailbio/base/log).Fatal | ||
- (github.com/grailbio/base/log).Output | ||
- (github.com/grailbio/base/log).Outputf | ||
- (github.com/grailbio/base/log).Panic | ||
- (github.com/grailbio/base/log).Panicf | ||
- (github.com/grailbio/base/log).Print | ||
- (github.com/grailbio/base/log).Printf | ||
|
||
unused: | ||
# do not report unused exported identifiers | ||
check-exported: false | ||
|
||
misspell: | ||
locale: US | ||
|
||
linters: | ||
disable-all: true | ||
fast: false | ||
enable: | ||
- deadcode | ||
- goimports | ||
- gosimple | ||
- govet | ||
- errcheck | ||
- ineffassign | ||
- misspell | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck |
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.