Skip to content

Commit 317e94b

Browse files
author
Brian Bentson
committed
squashing
1 parent 06e4a43 commit 317e94b

File tree

484 files changed

+51083
-9569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

484 files changed

+51083
-9569
lines changed

.errcheck-excludes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// (*io.PipeWriter).CloseWithError "never overwrites the previous error if it
2+
// exists and always returns nil".
3+
//
4+
// https://golang.org/pkg/io/#PipeWriter.CloseWithError
5+
(*io.PipeWriter).CloseWithError

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
go: [1.13, 1.14, 1.15]
15+
os: [ubuntu-latest, macos-latest]
16+
name: Build & Test
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Set up Go ${{ matrix.go }}
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ matrix.go }}
23+
- name: Check out
24+
uses: actions/checkout@v2
25+
- name: Test
26+
run: go test -tags=unit ./...
27+
golangci:
28+
name: Lint
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Check out
32+
uses: actions/checkout@v2
33+
- name: golangci-lint
34+
uses: golangci/golangci-lint-action@v2
35+
with:
36+
version: v1.29
37+
only-new-issues: true
38+
args: --timeout=5m

.golangci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
run:
2+
concurrency: 4
3+
timeout: 1m
4+
5+
# exit code when at least one issue was found
6+
issues-exit-code: 1
7+
8+
# include test files
9+
tests: true
10+
11+
build-tags:
12+
13+
# which dirs to skip: issues from them won't be reported;
14+
skip-dirs:
15+
16+
# enables skipping of default directories:
17+
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
18+
skip-dirs-use-default: true
19+
20+
# which files to skip: they will be analyzed, but issues from them won't be
21+
# reported.
22+
skip-files:
23+
24+
# disallow multiple parallel golangci-lint instances
25+
allow-parallel-runners: false
26+
27+
output:
28+
# colored-line-number|line-number|json|tab|checkstyle|code-climate
29+
format: colored-line-number
30+
31+
# print lines of code with issue
32+
print-issued-lines: true
33+
34+
# print linter name in the end of issue text
35+
print-linter-name: true
36+
37+
# make issues output unique by line
38+
uniq-by-line: true
39+
40+
linters-settings:
41+
errcheck:
42+
# do not report about not checking errors in type assertions: `a :=
43+
# b.(MyStruct)`
44+
check-type-assertions: false
45+
46+
# do not report about assignment of errors to blank identifier: `num, _ :=
47+
# strconv.Atoi(numStr)`
48+
check-blank: false
49+
50+
# path to a file containing a list of functions to exclude from checking
51+
# see https://github.com/kisielk/errcheck#excluding-functions for details
52+
exclude: .errcheck-excludes
53+
54+
govet:
55+
# report about shadowed variables
56+
check-shadowing: true
57+
58+
# settings per analyzer
59+
settings:
60+
# run `go tool vet help` to see all analyzers
61+
printf:
62+
# run `go tool vet help printf` to see available settings for `printf`
63+
# analyzer
64+
funcs:
65+
- (github.com/grailbio/base/log).Fatal
66+
- (github.com/grailbio/base/log).Output
67+
- (github.com/grailbio/base/log).Outputf
68+
- (github.com/grailbio/base/log).Panic
69+
- (github.com/grailbio/base/log).Panicf
70+
- (github.com/grailbio/base/log).Print
71+
- (github.com/grailbio/base/log).Printf
72+
73+
unused:
74+
# do not report unused exported identifiers
75+
check-exported: false
76+
77+
misspell:
78+
locale: US
79+
80+
linters:
81+
disable-all: true
82+
fast: false
83+
enable:
84+
- deadcode
85+
- goimports
86+
- gosimple
87+
- govet
88+
- errcheck
89+
- ineffassign
90+
- misspell
91+
- staticcheck
92+
- structcheck
93+
- typecheck
94+
- unused
95+
- varcheck

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
The grailbio/base project includes all the packages used by many
22
other grailbio Go packages:
33

4+
- API documentation: [godoc.org/github.com/grailbio/base](https://godoc.org/github.com/grailbio/base)
5+
- Issue tracker: [github.com/grailbio/base/issues](https://github.com/grailbio/base/issues)
6+
- [![CI](https://github.com/grailbio/base/workflows/CI/badge.svg)](https://github.com/grailbio/base/actions?query=workflow%3ACI)
7+
48
- [recordio](https://godoc.org/github.com/grailbio/base/recordio): encrypted and compressed record oriented files with indexing support
59
- [file](https://godoc.org/github.com/grailbio/base/file): unified file API for the local file system and S3
610
- [digest](https://godoc.org/github.com/grailbio/base/digest): common in-memory and serialized representation of digests
@@ -12,4 +16,9 @@ other grailbio Go packages:
1216
- [syncqueue](https://godoc.org/github.com/grailbio/base/syncqueue): various flavors of producer-consumer queues
1317
- [unsafe](https://godoc.org/github.com/grailbio/base/unsafe): conversion from []byte to string, etc.
1418
- [compress/libdeflate](https://godoc.org/github.com/grailbio/base/compress/libdeflate): efficient block compression/decompression
19+
- [bitset](https://godoc.org/github.com/grailbio/base/bitset): []uintptr bitset support
1520
- [simd](https://godoc.org/github.com/grailbio/base/simd): fast operations on []byte
21+
- [tsv](https://godoc.org/github.com/grailbio/base/tsv): simple and efficient TSV writer
22+
- [cloud/spotadvisor](https://godoc.org/github.com/grailbio/base/cloud/spotadvisor): provides an interface for fetching and utilizing AWS Spot Advisor data
23+
- [cloud/spotfeed](https://godoc.org/github.com/grailbio/base/cloud/spotfeed): provides interfaces for interacting with the AWS spot data feed format for files hosted on S3
24+

0 commit comments

Comments
 (0)