Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ChangePwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoProjectBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProjectRepoNoBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupFileChange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupRanNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupUpdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UnauthenticatedSSHKey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1All.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1Minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_VscodeExtension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_httpGit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-output-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: Build
run: make ci
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: Release test
run: make build
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: install
run: make install-tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: Release
run: make ci smoke-test release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: install
run: make install-tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
go-version: '1.24.0'
cache: true
- name: install
run: make install-tools
Expand Down
107 changes: 25 additions & 82 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,102 +1,45 @@
linters-settings:
goimports:
local-prefixes: github.com/brevdev/brev-cli
revive:
min-confidence: 0.8
rules:
- name: blank-imports
- name: context-as-argument
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: if-return
- name: increment-decrement
- name: var-naming
- name: var-declaration
- name: package-comments
- name: range
- name: receiver-naming
- name: time-naming
- name: unexported-return
- name: errorf
- name: empty-block
- name: superfluous-else
- name: unused-parameter
- name: unreachable-code
- name: redefines-builtin-id
gocyclo:
min-complexity: 16
govet:
check-shadowing: true
misspell:
locale: US
nolintlint:
allow-leading-space: false # require machine-readable nolint directives (with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: true # require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
funlen:
lines: 100
wrapcheck:
ignoreSigs:
- .WrapAndTrace
- .Errorf
- .Wrap
- .New
stylecheck:
checks: ["all", "-ST1020", "-ST1000"]

run:
build-tags:
- codeanalysis
version: "2"

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
default: none
enable:
- errcheck
- gosimple
- govet
- ineffassign
# - staticcheck
- typecheck
- unused
- bodyclose
# - depguard
- dupl
- exportloopref
- copyloopvar
- forcetypeassert
- funlen
# - gci
- gocognit
# - goconst
- gocritic
- gocyclo
# - godot
- gofumpt
# - revive
# - gomnd
- goprintffuncname
- gosec
# - ifshort
- misspell
- noctx
- nolintlint
- rowserrcheck
- sqlclosecheck
- stylecheck
- thelper
- tparallel
- unconvert
- unparam
# - whitespace
# - errorlint
# - goerr113
- wrapcheck
issues:
# enable issues excluded by default
exclude-use-default: false
settings:
gocyclo:
min-complexity: 16
misspell:
locale: US
funlen:
lines: 100
statements: 60
wrapcheck:
ignore-sigs:
- .WrapAndTrace
- .Errorf
- .Wrap
- .New

run:
build-tags:
- codeanalysis

formatters:
enable:
- gofumpt
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/brevdev/brev-cli

go 1.22.6
go 1.24.0

require (
github.com/alessio/shellescape v1.4.1
Expand Down Expand Up @@ -38,8 +38,8 @@ require (
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7
github.com/wk8/go-ordered-map/v2 v2.0.0
github.com/writeas/go-strip-markdown v2.0.1+incompatible
golang.org/x/crypto v0.32.0
golang.org/x/text v0.21.0
golang.org/x/crypto v0.46.0
golang.org/x/text v0.32.0
k8s.io/cli-runtime v0.31.1
)

Expand Down Expand Up @@ -94,9 +94,9 @@ require (
github.com/xanzy/ssh-agent v0.3.3 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/tools v0.23.0 // indirect
golang.org/x/mod v0.30.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/tools v0.39.0 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down Expand Up @@ -141,10 +141,10 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/term v0.28.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/term v0.38.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/protobuf v1.34.2
gopkg.in/inf.v0 v0.9.1 // indirect
Expand Down
Loading
Loading