-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
5 changed files
with
141 additions
and
8 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,24 @@ | ||
name: Golangci-lint | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
golangci-lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: 'v1.62' |
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,109 @@ | ||
run: | ||
deadline: 5m | ||
|
||
linters-settings: | ||
staticcheck: | ||
go: '1.23' | ||
stylecheck: | ||
go: '1.23' | ||
gci: | ||
local-prefixes: github.com/kayrus | ||
goimports: | ||
local-prefixes: github.com/kayrus | ||
depguard: | ||
rules: | ||
prevent_unmaintained_packages: | ||
list-mode: lax | ||
files: | ||
- $all | ||
- "!$test" | ||
deny: | ||
- pkg: io/ioutil | ||
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil" | ||
|
||
linters: | ||
fast: false | ||
disable-all: true | ||
enable: | ||
- asciicheck | ||
- bodyclose | ||
- depguard | ||
- dogsled | ||
- errcheck | ||
- exhaustive | ||
- exportloopref | ||
- gci | ||
- godot | ||
- gofmt | ||
- goheader | ||
- goimports | ||
- gomodguard | ||
- goprintffuncname | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
- prealloc | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- whitespace | ||
# - cyclop | ||
# - dupl | ||
# - durationcheck | ||
# - errname | ||
# - errorlint | ||
# - exhaustivestruct | ||
# - forbidigo | ||
# - forcetypeassert | ||
# - funlen | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
# - gocognit | ||
# - goconst | ||
# - gocritic | ||
# - gocyclo | ||
# - godox | ||
# - goerr113 | ||
# - gofumpt | ||
# - golint | ||
# - gomnd | ||
# - gomoddirectives | ||
# - gosec (gas) | ||
# - gosimple (megacheck) | ||
# - ifshort | ||
# - importas | ||
# - interfacer | ||
# - lll | ||
# - makezero | ||
# - maligned | ||
# - nestif | ||
# - nilerr | ||
# - nlreturn | ||
# - noctx | ||
# - paralleltest | ||
# - predeclared | ||
# - promlinter | ||
# - revive | ||
# - scopelint | ||
# - sqlclosecheck | ||
# - tagliatelle | ||
# - testpackage | ||
# - thelper | ||
# - tparallel | ||
# - unparam | ||
# - wastedassign | ||
# - wrapcheck | ||
# - wsl | ||
|
||
issues: | ||
exclude-rules: | ||
- linters: | ||
- staticcheck | ||
text: "SA1019:" | ||
- linters: | ||
- stylecheck | ||
text: "ST1005:" |
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,7 +1,7 @@ | ||
module github.com/kayrus/putty | ||
|
||
go 1.22 | ||
go 1.23 | ||
|
||
require golang.org/x/crypto v0.25.0 | ||
require golang.org/x/crypto v0.31.0 | ||
|
||
require golang.org/x/sys v0.22.0 // indirect | ||
require golang.org/x/sys v0.28.0 // indirect |
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,4 +1,4 @@ | ||
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= | ||
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= | ||
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= | ||
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | ||
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= | ||
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= | ||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= | ||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= |