Ryan Currah
fa7adcbda9
add ability to set issue severity ( #1155 )
...
* add ability to set issue severity for out formats that support it based on severity rules
* fix lint issues
* change log child name
* code climate omit severity if empty
* add tests for severity rules, add support for case sensitive rules, fix lint issues, better doc comments, share processor test
* deduplicated rule logic into a base rule that can be used by multiple rule types, moved severity config to it's own parent key named severity, reduced size of NewRunner function to make it easier to read
* put validate function under base rule struct
* better validation error wording
* add Fingerprint and Description methods to Issue struct, made codeclimate reporter easier to read, checkstyle output is now pretty printed
2020-05-25 08:21:42 -04:00
Ryan Currah
778e08fda4
bump gomodguard version ( #1140 )
...
* bump gomodguard version which adds a new feature to allow blocking modules based on version constraints
* add description why you may want to use gomodguard over depguard, updated example config and add a section the contributor doc page to remind people to update the example config
2020-05-17 22:35:13 +03:00
Collin Kreklow
3c2aa58dc5
Add *println to exception EXC0001 ( #1074 )
...
Exception EXC0001 ignores errors on functions like Sprint and Sprintf,
but not Sprintln. Update the exception to include *println as well.
2020-05-09 15:18:17 +03:00
Isaev Denis
cb58d1f82e
speed up CI and golangci-lint ( #1070 )
...
Run CI on mac os only with go1.13 and on windows only on go1.14.
Speed up tests. Introduce --allow-parallel-runners.
Block on parallel run lock 5s instead of 60s.
Don't invalidate analysis cache for minor config changes.
2020-05-09 15:15:34 +03:00
Andrew Shannon Brown
ef44e11e17
Merge branch 'master' into asb/nolintlint-internal
2020-04-29 15:27:35 -07:00
Aleksandr Razumov
397a6a6732
Merge branch 'upgrade-gosec' of https://github.com/rung/golangci-lint into rung-upgrade-gosec
2020-04-27 13:07:03 +03:00
Andrew Shannon Brown
909f628d75
Add linter for nolint
...
Linter can check that nolint statements are properly formatted and also that all
nolint statements are used.
2020-04-26 20:20:17 -07:00
John Starich
36d8d881f9
Preserve API backward compatibility
2020-04-25 14:14:42 -05:00
John Starich
c55e7614d4
Re-enable default excludes by ID
2020-04-25 13:57:57 -05:00
Aleksandr Razumov
e2b927f029
Merge pull request #1036 from iwankgb/exclude-case-sensitive
...
Adding case-sensitive exclude processor
2020-04-24 12:48:42 +03:00
Aleksandr Razumov
d00692c355
Merge branch 'nestif' of https://github.com/nakabonne/golangci-lint into nakabonne-nestif
2020-04-23 00:31:25 +03:00
Maciej "Iwan" Iwanowski
a68b411e4a
Adding case-sensitive exclude processor
...
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@critical.today>
2020-04-22 18:40:10 +02:00
Marat Reymers
9914737fc3
Add linter testpackage
2020-04-22 18:57:30 +03:00
Ryan Currah
990b43f19a
Merge remote-tracking branch 'golangci/master' into add-gomodguard-linter
2020-04-21 20:17:09 -04:00
nakabonne
0108387c24
Add nestif linter
2020-04-22 08:51:43 +09:00
Aleksandr Razumov
3fd6db779e
Merge pull request #1017 from viktorasm/add-github-output-format
...
Adding github actions output format
2020-04-22 02:04:11 +03:00
Viktoras Makauskas
d7222c7d38
Adding github actions output format
2020-04-10 23:46:19 +03:00
Ryan Currah
020b9e7103
added new linter gomodguard, disabled by default
2020-04-04 15:29:11 -04:00
Hiroki Suezawa
dfb22785dc
Upgrade gosec
2020-03-22 06:21:46 +09:00
Denis Krivak
58572c7789
Add new linter: godot
2020-03-16 11:56:57 +03:00
Simon Sawert
4a2147930a
Update wsl to v3.0.0
...
* Support to force cuddle with error checking
* Support to separate leading comments with empty lines
2020-03-15 13:36:57 +01:00
Isaev Denis
6237e59c97
dev: use goprintffuncname, gomnd and rowserrcheck ( #927 )
...
Order linters in config in alphabetical order.
Support gomnd configuration.
2020-01-19 19:55:29 +03:00
to6ka
d137c2e18c
make uniq by line configurable ( #920 )
2020-01-19 16:49:46 +03:00
gaojingyu
e93138f00f
Add rows.Err weather checked linter ( #849 )
...
Add rowserrcheck
Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 14:08:16 +03:00
David Braley
be3c688da4
I473 ( #841 )
...
Support custom linters integration by plugins
Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 13:51:55 +03:00
Simon Sawert
0e5b7a04d5
Bump wsl to v2.0.0
2019-11-15 18:55:54 -05:00
Simon Sawert
8c1e2f004e
Revert "Bump wsl to v1.2.7"
...
This reverts commit 14ebae29060f7c7be67d31a559986aa8afe7cbb0.
2019-11-15 18:55:54 -05:00
Simon Sawert
14ebae2906
Bump wsl to v1.2.7
2019-11-10 19:07:16 -05:00
Simon Sawert
22df2d739f
Update WSL to v1.2.5 ( #811 )
...
* Update WSL to v1.2.4
* Fix false positive multiline case
* Fix false positive slice expression
* Fix false positive index expression
* Support to configure/allow cuddle declarations
* Support to configurre/allow case blocks to end with whitespace
* Support cuddle defer http body close
* Re-generate README.md
* Update WSL to v1.2.5
* Support output comments for example functions
* Fix bad field tag for config
2019-10-14 22:50:34 +03:00
Denis Titusov
0cc87df732
Rename deadline option to timeout and mark deadline as deprecated. ( #793 )
2019-10-08 09:37:54 +03:00
Simon Sawert
d4b4ad8dfe
Update WSL to v1.2.1 ( #794 )
...
* Update WSL to v1.2.1
* Add new tests for fixed false positives, don't derive defaults from WSL
2019-10-07 21:22:44 -04:00
Denis Isaev
50cfc343c5
gocognit: fix default threshold from 0 to 30
2019-10-04 11:06:16 -04:00
NiseVoid
fbbd24575f
Update whitespace to v0.0.4 ( #786 )
2019-10-04 15:12:07 +03:00
Trevor Pounds
fd997edeeb
Cleanup nolint directives. ( #779 )
2019-10-03 19:34:19 +03:00
Nuruddin Ashr
92ec1a1f4c
Add gocognit linter ( #756 )
...
* Add gocognit linter
* Remove gocognit to the golangci config
* Make changes on README.md
* Remove gocognit from megacheck benchtest
* Remove command line flags
* Comply with new style
2019-10-03 16:22:06 +03:00
NiseVoid
9976bdcc5e
Update whitespace
2019-09-23 12:16:06 -04:00
Denis Isaev
3aade55e05
Reduce memory usage of go/analysis
2019-09-23 09:52:54 +03:00
Trevor Pounds
92168d033d
Add dogsled linter. ( #705 )
2019-09-17 08:44:53 +03:00
Aleksandr Razumov
f3f5dfc3eb
govet: implement analyzers config ( #697 )
2019-09-16 00:15:08 +03:00
Matouš Dzivjak
58845813da
linters: add Godox linter support ( #621 )
...
Godox is linter for TODOs and FIXMEs left in the code.
Signed-off-by: Matous Dzivjak <matous.dzivjak@kiwi.com>
2019-09-11 16:53:40 +03:00
Sean DuBois
f312a0fc4e
fix #416 : Add skip-dirs-use-default ( #630 )
2019-09-10 11:14:25 +03:00
Cody Ley-Han
a8f2c27d1d
Add user supplied error messages in depguard issues ( #662 )
2019-09-09 20:46:55 +03:00
NiseVoid
bb82273160
Add funlen linter ( #603 )
2019-09-09 16:56:30 +03:00
Sonia Hamilton
5c86bfc905
junit-xml output
2019-06-09 13:23:17 +03:00
Denis Isaev
8c1237b667
Use the newest go vet
...
The newest go vet based on go/analysis
2019-03-17 23:12:44 +03:00
Ben Paxton
c41b1e2034
Add --color flag to force colored output on/off
2019-03-17 15:27:45 +03:00
Denis Isaev
3d2dfac47e
Support excluding issues by source line regexp
...
See issues.exclude-rules[i].source.
Also introduced file data and file lines cache.
2019-03-17 15:17:29 +03:00
Denis Isaev
ebadb7a679
Fix #384 : support ignore-words option for misspell
2019-02-17 23:47:29 +03:00
Denis Isaev
d437ac8629
Implement auto-fixing for gofmt,goimports,misspell
...
Also, add more identifier marking patterns.
2019-02-17 20:31:31 +03:00
Aleksandr Razumov
edd055f862
config: add validation for exclude rules
2019-02-17 18:40:22 +03:00