Trevor Pounds
e750fd1d15
Update to latest securego/gosec. ( #694 )
...
Fixes https://github.com/securego/gosec/pull/366 .
2019-09-14 19:34:59 +03:00
Trevor Pounds
6ec8ff2271
Update Dockerfile to Go 1.13. ( #695 )
...
Fixes #683 .
2019-09-14 19:33:10 +03:00
Isaev Denis
c9a9255238
Speed up packages loading ( #693 )
...
Don't perform extra go env calls in go/packages.
Load only needed go env vars in golangci-lint.
Stay in sync by enabled analyzers in go vet: remove nilness and
atomicalign analyzers, add errorsas analyzer.
Don't build SSA for govet.
Standalone govet runs 25% faster than before. All runs can be 5-10% faster
than before.
Relates: #208
2019-09-14 18:48:18 +03:00
Denis Isaev
4ffe85cae8
docs: update changelog
2019-09-14 14:15:27 +03:00
David López
064c0e3d67
readme: split changelog into own file ( #689 )
...
split changelog into own file. closes #688 .
2019-09-14 14:07:14 +03:00
Trevor Pounds
bf68434103
Fix replaced dependencies ( #691 )
...
* Update to ultraware/funlen v0.0.2.
Fixes https://github.com/ultraware/funlen/pull/1 .
* Update to latest golang.org/x/tools.
Fixes #687 .
Fixes https://github.com/golang/tools/pull/139 .
2019-09-14 14:06:10 +03:00
Trevor Pounds
2e8d83266f
Update dependencies. ( #684 )
...
* Update deps.
* Update to Node.js v10.16.3 LTS.
* Fix mock logutils generation.
2019-09-12 16:02:43 +03:00
Isaev Denis
bf67a3eef3
update gosec ( #681 )
2019-09-11 17:46:26 +03:00
Isaev Denis
b08335850e
update scopelint ( #680 )
2019-09-11 17:35:08 +03:00
Isaev Denis
94eaa8f196
update go-critic ( #679 )
...
Go-critic got a new checker `regexpPattern`.
2019-09-11 16:56:33 +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
Christoph Blecker
c215cffd53
Add bash completion to homebrew formula ( #676 )
2019-09-11 16:51:27 +03:00
Denis Isaev
4495f893b9
Log go/analysis panics, don't crash
...
go/analysis panics were propagated to main and crashed golangci-lint.
Just log them, as with other linters.
Found in #608 .
2019-09-10 18:49:34 +03:00
Isaev Denis
f1c1dbfab4
Feature/enable autofix on whitespace ( #674 )
...
The whitespace linter was added in #673 . Enable it and fix found issues.
Add auto-fixing to the whitespace linter.
2019-09-10 16:56:44 +03:00
NiseVoid
c7dee2c0b2
Add whitespace linter ( #673 )
2019-09-10 13:25:01 +03:00
Denis Isaev
31afdf8b04
dev: build by go1.13 for release
v1.18.0
2019-09-10 12:14:24 +03:00
Denis Isaev
5fb91e6434
docs: document bash completion in README
...
Also, change command `golangci-lint completion`
to `golangci-lint completion bash`.
2019-09-10 12:06:10 +03:00
Christoph Blecker
91e90eba6b
Add support for bash completions ( #640 )
2019-09-10 11:30:02 +03:00
Fei Xu
4ed1349a6b
add kubeedge ( #636 )
2019-09-10 11:25:26 +03:00
Glen Mailer
97fcafd38c
Update format of junit xml output to mark failures as such ( #632 )
2019-09-10 11:21:08 +03:00
Denis Isaev
bad04bb737
dev: regenerate README.md after #630
...
Also, output help for the new option in a more compact way.
2019-09-10 11:17:18 +03:00
Sean DuBois
f312a0fc4e
fix #416 : Add skip-dirs-use-default ( #630 )
2019-09-10 11:14:25 +03:00
Isaev Denis
c87c37210f
dev: update install.sh ( #672 )
2019-09-10 11:09:39 +03:00
Denis Isaev
95d5b2c071
dev: fix golang.org/x/tools revision date
...
Use git log --pretty=fuller to distinguish between
AuthorDate and CommitDate. Use CommitDate for go.mod.
2019-09-10 11:02:54 +03:00
Denis Isaev
e691e606b1
dev: fix updated golangci/tools revision
2019-09-10 10:59:34 +03:00
Denis Isaev
5d50b907dd
dev: update replaced version of x/tools
...
Make it possible to run GO111MODULE=on go get
github.com/golangci/golangci-lint/cmd/golangci-lint@master
2019-09-10 10:34:01 +03:00
Juan Carlos
338e3fbf24
Fix install script on Windows ( #626 )
...
`adjust_format()` should use OS and not ARCH. In Windows, `$OS` will be calculated to be `"windows"` while `$ARCH` will be `"386"` or `"amd64"` (most of the time). `$ARCH` will surely never be `"windows"`.
2019-09-10 10:05:15 +03:00
Isaev Denis
6163a8a790
Support go1.13 ( #670 )
...
Setup Travis CI to run on go 1.12 and 1.13.
Update info about go versions in README.
Rebuild go.mod,go.sum on go1.13.
2019-09-09 21:54:56 +03:00
Cody Ley-Han
a8f2c27d1d
Add user supplied error messages in depguard issues ( #662 )
2019-09-09 20:46:55 +03:00
Matthew Poer
a02e3f573b
Updates README with additional nolint notes ( #644 )
...
Fixes #642
2019-09-09 20:43:21 +03:00
Alex Dupre
f84095a973
Build FreeBSD binaries ( #613 )
2019-09-09 18:56:18 +03:00
Isaev Denis
6864b2f764
dev: enable funlen on repo ( #668 )
2019-09-09 18:07:09 +03:00
Duco van Amstel
0b49095bae
Make generation of demo.svg deterministic ( #625 )
2019-09-09 17:37:06 +03:00
Pierre Durand
cdeefb5f79
fix invalid dependencies ( #605 )
...
Some dependencies have invalid date.
Fixes #581 #595
2019-09-09 17:22:40 +03:00
techknowlogick
eabe43a53b
Provide pre-built binary for ARM arch ( #607 )
...
Fix #491
2019-09-09 17:17:59 +03:00
NiseVoid
bb82273160
Add funlen linter ( #603 )
2019-09-09 16:56:30 +03:00
Isaev Denis
375a5a8cae
Speed up linting: use deduplicated packages ( #667 )
...
Use deduplicated packages for all linters except megacheck.
See https://github.com/golangci/golangci-lint/pull/585 for details.
2019-09-09 16:48:15 +03:00
Liam White
e1a7422dd5
Update gochecknoglobals
to support version exception ( #601 )
...
See 7c3491d2b6
2019-09-09 16:42:51 +03:00
Isaev Denis
136b27171a
update bodyclose: use upstream version ( #666 )
2019-09-09 16:35:16 +03:00
Luke Shumaker
e87a1cfb83
Fix a false-positive from 'unused' ( #585 )
...
This false-positive is not present in the upstream stand-alone 'unused'
2019.1.1 program that golangci-lint uses.
pkg/lint.ContextLoader.filterPackages() did two things:
1. It removed synthetic "testmain" packages (packages with .Name=="main"
and .PkgPath ending with ".test")
2. It removed pruned subsumed copies of packages; if a package with files
"a.go" and "a_test.go", it results in packages.Load giving us two
packages:
- ID=".../a" GoFiles=[a.go]
- ID=".../a [.../a.test]" GoFiles=[a.go a_test.go]
The first package is subsumed in the second, and leaving it around
results in duplicated work, and confuses the 'deadcode' linter.
However, the 'unused' linter relies on both the ".../a" and
".../a [.../a.test]" packages being present. Pruning them causes it to
panic in some situations, which lead to this workaround:
af6baa5dc1
While that workaround got it to not panic, it causes incorrect results.
So, split filterPackages() in to two functions: filterTestMainPackages()
and filterDuplicatePackages(). The linter.Context.Packages list only
gets filterTestMainPackages() called on it, while linter.Context.Program
and linter.Context.SSAProgram get both filters applied.
With the source of the panic fixed, roll back a few now-unnecessary
commits in go-tools.
2019-09-09 16:10:49 +03:00
Denis Isaev
9ae08e9389
dev: add link to https://github.com/golang/tools/pull/139 to go.mod replacement
2019-09-09 15:33:31 +03:00
Denis Isaev
13c3082639
dev: speed up Travis CI: don't build pull requests twice
2019-09-09 15:06:08 +03:00
Denis Isaev
e39e8fb5d5
update x/tools
...
Significantly improve CPU and memory usage when not using SSA-powered linters.
Improve readability of go/packages errors.
Improve debugging capabilities and write doc about debugging.
2019-09-09 15:04:32 +03:00
Denis Isaev
d2b1eea2c6
bodyclose: fix race condition
2019-07-14 17:53:55 +03:00
Fernandez Ludovic
7e170af626
fix: body close panic.
2019-07-14 17:15:54 +03:00
Andrey Kuchin
e17582581d
fix possible race in line cache
2019-07-14 17:08:12 +03:00
Andrey Kuchin
c5b0f95dac
fix cuncurrent [read/]write panic
2019-07-14 17:08:12 +03:00
Denis Isaev
360a58dca9
dev: misspell: always build replacement
2019-06-30 10:41:25 +03:00
Hernan Bandura
f8a5a8cb01
Update depguard version to 1.0.0 (Performance improvements)
2019-06-29 23:53:05 +03:00
Trevor Pounds
22d1ef65c8
Update pkg/errors to v0.8.1.
2019-06-18 22:24:38 +03:00