Skip to content

Commit

Permalink
fix lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaznocha committed Dec 8, 2024
1 parent 101aacd commit 580797e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
14 changes: 6 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
linters-settings:
gci:
local-prefixes: github.com/ckaznocha/intrange
sections:
- prefix(github.com/ckaznocha/intrange)
gocritic:
enabled-tags:
- diagnostic
Expand All @@ -10,10 +11,7 @@ linters-settings:
- style
goimports:
local-prefixes: github.com/ckaznocha/intrange
golint:
min-confidence: 0
govet:
check-shadowing: true
enable:
- asmdecl
- assign
Expand All @@ -24,6 +22,7 @@ linters-settings:
- cgocall
- composite
- copylock
- copyloopvar
- deepequalerrors
- errorsas
- fieldalignment
Expand Down Expand Up @@ -57,14 +56,13 @@ linters:
- dupl
- errcheck
- errorlint
- exportloopref
- gci
- gochecknoinits
- goconst
- gocritic
- godot
- godox
- goerr113
- err113
- gofmt
- gofumpt
- goimports
Expand Down Expand Up @@ -93,6 +91,6 @@ linters:
- wastedassign
- whitespace
- wsl
run:
skip-dirs:
issues:
exclude-dirs:
- testdata/
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/ckaznocha/intrange

go 1.22.9

toolchain go1.23.4
go 1.22.1

require (
github.com/gostaticanalysis/testutil v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.22.9
go 1.22.1

use (
.
Expand Down
3 changes: 1 addition & 2 deletions intrange.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import (
"go/ast"
"go/token"
"go/types"
"strconv"

"golang.org/x/tools/go/analysis"
"golang.org/x/tools/go/analysis/passes/inspect"
"golang.org/x/tools/go/ast/inspector"
"strconv"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions intrange_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package intrange_test

import (
"testing"

"github.com/gostaticanalysis/testutil"
"golang.org/x/tools/go/analysis/analysistest"
"testing"

"github.com/ckaznocha/intrange"
)
Expand Down
2 changes: 1 addition & 1 deletion testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/ckaznocha/intrange/testdata

go 1.22.9
go 1.22.1

require google.golang.org/protobuf v1.33.0

0 comments on commit 580797e

Please sign in to comment.