-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RELEASE_NOTES=n/a Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
- Loading branch information
1 parent
f2025fa
commit d64b9d8
Showing
26 changed files
with
343 additions
and
527 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
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,27 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: latest # we have a list of linters in our .golangci.yml config file | ||
only-new-issues: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
run: | ||
skip-dirs: | ||
- helpers/ | ||
go: 1.18 | ||
|
||
linters-settings: | ||
gocyclo: | ||
min-complexity: 22 | ||
cyclop: | ||
max-complexity: 22 | ||
skip-tests: true | ||
staticcheck: | ||
go: "1.18" | ||
# https://staticcheck.io/docs/options#checks | ||
checks: ["all","-SA1019"] | ||
funlen: | ||
lines: -1 | ||
statements: 100 | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- bodyclose | ||
- contextcheck | ||
- durationcheck | ||
- dupl | ||
- exhaustivestruct | ||
- forbidigo | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godox | ||
- goerr113 | ||
- golint | ||
- gomnd | ||
- gosec | ||
- gosimple | ||
- govet | ||
- interfacer | ||
- ireturn | ||
- lll | ||
- maintidx | ||
- maligned | ||
- nilerr | ||
- noctx | ||
- revive | ||
- rowserrcheck | ||
- scopelint | ||
- sqlclosecheck | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
- tagliatelle | ||
- testpackage | ||
- tparallel | ||
- typecheck | ||
- unparam | ||
- unused | ||
- varnamelen | ||
- wastedassign | ||
- wrapcheck | ||
- wsl | ||
|
||
issues: | ||
exclude-use-default: false # disable filtering of defaults for better zero-issue policy | ||
max-per-linter: 0 # disable limit; report all issues of a linter | ||
max-same-issues: 0 # disable limit; report all issues of the same issue |
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,16 +1,54 @@ | ||
module github.com/gopasspw/gopass-jsonapi | ||
|
||
go 1.14 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/blang/semver v3.5.1+incompatible | ||
github.com/fatih/color v1.13.0 | ||
github.com/gopasspw/gopass v1.13.1 | ||
github.com/gopasspw/gopass v1.14.0 | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/stretchr/testify v1.7.1 | ||
github.com/stretchr/testify v1.7.0 | ||
github.com/urfave/cli/v2 v2.4.0 | ||
golang.org/x/crypto v0.0.0-20211115234514-b4de73f9ece8 // indirect | ||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 | ||
golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c | ||
golang.org/x/net v0.0.0-20220325170049-de3da57026de | ||
golang.org/x/sys v0.0.0-20220325203850-36772127a21f | ||
) | ||
|
||
require ( | ||
bitbucket.org/creachadair/stringset v0.0.10 // indirect | ||
filippo.io/age v1.0.0 // indirect | ||
filippo.io/edwards25519 v1.0.0-rc.1 // indirect | ||
github.com/atotto/clipboard v0.1.4 // indirect | ||
github.com/blang/semver/v4 v4.0.0 // indirect | ||
github.com/caspr-io/yamlpath v0.0.0-20200722075116-502e8d113a9b // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dustin/go-humanize v1.0.0 // indirect | ||
github.com/godbus/dbus v0.0.0-20190623212516-8a1682060722 // indirect | ||
github.com/gokyle/twofactor v1.0.1 // indirect | ||
github.com/google/go-cmp v0.5.7 // indirect | ||
github.com/google/go-github v17.0.0+incompatible // indirect | ||
github.com/google/go-querystring v1.1.0 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/golang-lru v0.5.4 // indirect | ||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/mitchellh/go-ps v1.0.0 // indirect | ||
github.com/muesli/crunchy v0.4.0 // indirect | ||
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/rs/zerolog v1.26.1 // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/twpayne/go-pinentry v0.2.0 // indirect | ||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.8.0 // indirect | ||
golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 // indirect | ||
golang.org/x/exp v0.0.0-20220325121720-054d8573a5d8 // indirect | ||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
rsc.io/qr v0.2.0 // indirect | ||
) |
Oops, something went wrong.