-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
dev: group linter implementation and integration tests #4603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
e1a930e
feat: dynamic parent detection
ldez 00fdfdc
chore: concurrent tests run
ldez f7e709b
feat: test runner
ldez 157660a
chore: rewrite existing tests
ldez 90a6dba
chore: move nolintlint
ldez 297f186
docs: update new linters page
ldez d6d543a
chore: groups ginkgolinter files to a package
ldez f22bd35
chore: groups loggercheck files to a package
ldez 4bb42d6
chore: groups protogetter files to a package
ldez 2264fe3
chore: groups spancheck files to a package
ldez 53e332c
chore: groups zerologlint files to a package
ldez 1b2ced3
chore: groups gomoddirectives files to a package
ldez 646952e
chore: groups mnd files to a package
ldez a75fb92
chore: groups gocritic files to a package
ldez a48ba6c
chore: groups gci files to a package
ldez 287ca34
chore: groups godot files to a package
ldez a1de4d2
chore: groups gofmt files to a package
ldez 55d3408
chore: groups gofumpt files to a package
ldez b004f4c
chore: groups goheader files to a package
ldez 8a9f76f
chore: groups goimports files to a package
ldez 8f376f7
chore: groups mirror files to a package
ldez 261f2ab
chore: groups misspell files to a package
ldez eabf783
chore: groups tagalign files to a package
ldez a2026fa
chore: groups whitespace files to a package
ldez cd585d9
chore: groups asasalint files to a package
ldez c618f41
chore: groups asciicheck files to a package
ldez 4f4e453
chore: groups bidichk files to a package
ldez 233f7eb
chore: groups bodyclose files to a package
ldez dc812b9
chore: groups containedctx files to a package
ldez 9001726
chore: groups contextcheck files to a package
ldez 7e989ab
chore: groups copyloopvar files to a package
ldez 95b6e77
chore: groups cyclop files to a package
ldez 1894902
chore: groups decorder files to a package
ldez 17bd63d
chore: groups depguard files to a package
ldez b9abd75
chore: groups dogsled files to a package
ldez 88fc2c4
chore: groups dupl files to a package
ldez f0bf0fd
chore: groups dupword files to a package
ldez d318c73
chore: groups durationcheck files to a package
ldez 8f79852
chore: groups err113 files to a package
ldez 6befcc8
chore: groups errcheck files to a package
ldez 5bd7e40
chore: groups errchkjson files to a package
ldez 2040f5a
chore: groups errname files to a package
ldez 58d4601
chore: groups errorlint files to a package
ldez de26591
chore: groups execinquery files to a package
ldez 939b5c8
chore: groups exhaustive files to a package
ldez c890f8a
chore: groups exhaustruct files to a package
ldez e4268fb
chore: groups exportloopref files to a package
ldez 12b07b1
chore: groups fatcontext files to a package
ldez fec4eff
chore: groups forbidigo files to a package
ldez 32cf861
chore: groups forcetypeassert files to a package
ldez 413b7cc
chore: groups funlen files to a package
ldez 8ccebdb
chore: groups gocheckcompilerdirectives files to a package
ldez 3a04f96
chore: groups gochecknoglobals files to a package
ldez 8e1e2dd
chore: groups gochecknoinits files to a package
ldez 438f243
chore: groups gochecksumtype files to a package
ldez dff0e3e
chore: groups gocognit files to a package
ldez 50c394d
chore: groups goconst files to a package
ldez e4dbf1f
chore: groups gocyclo files to a package
ldez fb2e690
chore: groups godox files to a package
ldez aa6a8a2
chore: groups gomodguard files to a package
ldez 86d30f7
chore: groups goprintffuncname files to a package
ldez 58e4b90
chore: groups gosec files to a package
ldez f74db20
chore: groups gosimple files to a package
ldez 7bd0222
chore: groups gosmopolitan files to a package
ldez 61749a4
chore: groups govet files to a package
ldez 7d289d6
chore: groups grouper files to a package
ldez 8bb1414
chore: groups importas files to a package
ldez 27923e0
chore: groups inamedparam files to a package
ldez 40dc30e
chore: groups ineffassign files to a package
ldez ddb7793
chore: groups interfacebloat files to a package
ldez 2022c87
chore: groups intrange files to a package
ldez 2458b2a
chore: groups ireturn files to a package
ldez 5337735
chore: groups lll files to a package
ldez d7d1d25
chore: groups maintidx files to a package
ldez 6ecf5b6
chore: groups makezero files to a package
ldez 1deaedd
chore: groups musttag files to a package
ldez 7ffb836
chore: groups nakedret files to a package
ldez 37767bd
chore: groups nestif files to a package
ldez a7d38e9
chore: groups nilerr files to a package
ldez afe59b3
chore: groups nilnil files to a package
ldez 10fbcea
chore: groups nlreturn files to a package
ldez ba94a16
chore: groups noctx files to a package
ldez 9f80655
chore: groups nonamedreturns files to a package
ldez 16c53a3
chore: groups nosprintfhostport files to a package
ldez fb8b08b
chore: groups paralleltest files to a package
ldez cf0e086
chore: groups perfsprint files to a package
ldez f32e98e
chore: groups prealloc files to a package
ldez ae858fd
chore: groups predeclared files to a package
ldez 6bf052a
chore: groups promlinter files to a package
ldez 5e745b0
chore: groups reassign files to a package
ldez 49b338b
chore: groups revive files to a package
ldez 286a32f
chore: groups rowserrcheck files to a package
ldez 20c3e91
chore: groups sloglint files to a package
ldez fcfe3c7
chore: groups sqlclosecheck files to a package
ldez 1d98b94
chore: groups staticcheck files to a package
ldez ffbed66
chore: groups stylecheck files to a package
ldez 7f93ec6
chore: groups tagliatelle files to a package
ldez 87d67ca
chore: groups tenv files to a package
ldez e596db2
chore: groups testableexamples files to a package
ldez 07c1f53
chore: groups testifylint files to a package
ldez 874e3b4
chore: groups testpackage files to a package
ldez 98f82ee
chore: groups thelper files to a package
ldez 0446f66
chore: groups tparallel files to a package
ldez f8b2fee
chore: groups unconvert files to a package
ldez 781d152
chore: groups unparam files to a package
ldez d89ed77
chore: groups unused files to a package
ldez beb1a3a
chore: groups usestdlibvars files to a package
ldez dc75a5d
chore: groups varnamelen files to a package
ldez 2fd2ed6
chore: groups wastedassign files to a package
ldez a1aa2bb
chore: groups wrapcheck files to a package
ldez b170a41
chore: groups wsl files to a package
ldez b6a5526
chore: update configuration
ldez aa91418
review
ldez 4f45019
review
ldez 400f3f7
chore: group test_integration and test_integration_fix
ldez e2d32c1
review
ldez 3928ef5
review
ldez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/*.pprof | ||
/*.txt | ||
/test.lock | ||
/.idea/ | ||
/.vscode/ | ||
/dist/ | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,11 @@ | ||
package asasalint | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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 hidden or 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,11 @@ | ||
package asciicheck | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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 hidden or 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,11 @@ | ||
package bidichk | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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 hidden or 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,11 @@ | ||
package bodyclose | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
pkg/golinters/containedctx/containedctx_integration_test.go
This file contains hidden or 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,11 @@ | ||
package containedctx | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
pkg/golinters/contextcheck/contextcheck_integration_test.go
This file contains hidden or 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,11 @@ | ||
package contextcheck | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
This file contains hidden or 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 hidden or 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,11 @@ | ||
package copyloopvar | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
test/testdata/copyloopvar_custom.go → ...opyloopvar/testdata/copyloopvar_custom.go
This file contains hidden or 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 hidden or 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 hidden or 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,11 @@ | ||
package cyclop | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
2 changes: 1 addition & 1 deletion
2
test/testdata/cyclop.go → pkg/golinters/cyclop/testdata/cyclop.go
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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,11 @@ | ||
package decorder | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/golangci/golangci-lint/test/testshared/integration" | ||
) | ||
|
||
func TestFromTestdata(t *testing.T) { | ||
integration.RunTestdata(t) | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
test/testdata/decorder_custom.go → ...ters/decorder/testdata/decorder_custom.go
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.