Aneesh Agrawal
e72fe0540d
Add .pre-commit-hooks.yaml
...
This file will allow using golangci-lint with https://pre-commit.com .
2018-12-22 10:37:11 +03:00
Ben Wells
ef78643830
Fix typo in gometalinter comparison example
2018-11-28 08:31:11 +03:00
Denis Isaev
4be4794406
don't stop megacheck on main packages
...
even if the main package does not compile, analyze a program by megacheck
2018-11-24 19:39:15 +03:00
Denis Isaev
014a924d6c
remove unnecessary command from Dockerfile
v1.12.3
2018-11-24 09:25:36 +03:00
Denis Isaev
255a39bcb1
fix #302 : fix concurrent astcache access
2018-11-24 09:09:31 +03:00
Denis Isaev
dba3907ff3
improve typecheck errors parsing
2018-11-23 18:40:25 +03:00
Denis Isaev
55a18ae18a
don't make typecheck issues without file/line info
2018-11-18 16:45:06 +03:00
Denis Isaev
7278b7ae8a
setup typecheck error file if it's empty
2018-11-18 15:50:15 +03:00
Denis Isaev
27752e81a7
add command 'golangci-lint config path'
2018-11-18 11:28:59 +03:00
Tim Heckman
cb5d1da986
Add support for home directory expansion for -c/--config flag
...
This change introduces the ability to use the tilde (`~`) character in your
`-c/--config` flag value to expand your home directory. If invoking this via the
command line with `--config ~/.golangci-lint.yaml`, the user's shell expands the
`~` to the home directory. However, if something is invoking the program for
you (like an editor) it may not do the expansion.
Fixes #289
Signed-off-by: Tim Heckman <t@heckman.io>
2018-11-14 14:30:26 +03:00
Denis Isaev
898ae4d364
fix #277 , fix #260 : fix crash
...
Fix crash because of parallel access to ssa.Program
v1.12.2
2018-11-10 16:20:49 +03:00
Denis Isaev
952cc0b22e
fix hangup of golangci-lint on large projects with compilation errors
2018-11-10 14:32:26 +03:00
Denis Isaev
ac77eaac68
Fix #282 , fix #209 : revert goimports commit
...
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests
for local mode of goimports and do refactoring of tests.
v1.12.1
2018-11-10 11:46:37 +03:00
Denis Isaev
7836034ecf
dev: fix tests
v1.12
2018-11-07 11:53:30 +03:00
Denis Isaev
b3f4d6a9b2
docs: add info about new linters to changelog
2018-11-07 10:47:51 +03:00
Denis Isaev
7d51954355
fix #199 : support gochecknoinits, gochecknoglobals
...
Add 2 new linters
2018-11-07 10:47:08 +03:00
Denis Isaev
a57bc83d70
On of cases for #260 : fix crash in staticcheck
...
1. Fix crash if deps of analyzed packages weren't compiled.
2. Print deps typechecking errors
3. Fix all issues filtering because of empty go env GOCACHE for go < 1.10
2018-11-07 10:06:55 +03:00
Denis Isaev
0935ce1b8d
fix #132 : support go-critic linter
2018-11-07 09:11:08 +03:00
Dale Hui
89b7e42dbf
Use git describe --tags
to get most recent tag reachable from HEAD
2018-11-06 08:16:19 +03:00
Denis Isaev
84c9c65f39
fix #243 : support Scopelint linter
2018-11-06 08:11:25 +03:00
Denis Isaev
ccac35a87e
Fix false positives with unused identifiers
...
Issue #265 : don't report unused warning when an identifier is
used only in tests.
v1.11.3
2018-11-05 14:11:14 +03:00
Denis Isaev
3345c7136f
fix #264 : fix Windows compatibility
...
Fix skip-dirs regexps and 'go env' on Windows.
2018-11-05 12:54:40 +03:00
Denis Isaev
c02a6daa5c
Fix #263 : fix goimports performance with modules
...
Apply https://go-review.googlesource.com/c/tools/+/132598/ as a
temporary fix before a proper fix is in golang.org/x/tools
2018-11-05 12:37:54 +03:00
Denis Isaev
a4d7d7a428
logging for corrupted SSA packages
2018-11-04 13:57:50 +03:00
Denis Isaev
0bc25236b8
fix #266 : docs: reorder sections and update changelog
2018-11-04 13:27:59 +03:00
Denis Isaev
71b940e3b2
fix markdownlint issues
2018-11-04 13:27:59 +03:00
Denis Isaev
21c9965f50
docs: #267 : update CLA text
2018-11-04 11:39:45 +03:00
Pavel Berezhnoy
f5f7701650
Fix #261 : build-tags fix for package loader
v1.11.2
2018-10-29 14:33:44 +03:00
Denis Isaev
14f4dcebe5
docs: update Trusted By section
2018-10-28 21:53:00 +03:00
Denis Isaev
f9e1c6550b
docs: write about Atom integration
v1.11.1
2018-10-28 19:45:29 +03:00
Denis Isaev
87cb7bf1a6
Fix skip-dirs options after support of go/packages
2018-10-28 19:35:12 +03:00
Denis Isaev
fbcc55224f
Fix #232 : change license from AGPL to GPL
2018-10-28 19:04:24 +03:00
Denis Isaev
8fceb7fc47
Fix #209 : support goimports.local-prefix option for goimports
2018-10-28 18:47:56 +03:00
Denis Isaev
6aeecb7817
docs for #222 : add info about VS Code configuration
2018-10-28 18:18:24 +03:00
Denis Isaev
17508ab904
update golang.org/x/tools
v1.11
2018-10-28 18:03:14 +03:00
Denis Isaev
0421bac259
Fix #237 , fix #178 : use go/packages
...
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.
A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.
Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
2018-10-28 17:55:15 +03:00
Peter Schuller
a84578d603
Tweak log entry for "not compiling" packages.
...
Motivation: Make it clear that the message is indicating packages
*which do not compile*, rather than packages which *won't be
compiled [for some unknown reason]*.
2018-10-28 16:54:37 +03:00
bartfokker
e5a60caa97
update generated readme
2018-10-28 16:45:05 +03:00
bartfokker
01ec556bfd
added golangci-lint badge to repo
2018-10-28 16:45:05 +03:00
bartfokker
4cc6ed7db9
update generated README.md
2018-10-28 16:45:05 +03:00
bartfokker
58c7cce444
update building from source in readme to include buildFlags.
2018-10-28 16:45:05 +03:00
bartfokker
4570c043a9
remove panic for fmt.Fprintf (bit prettier when printing to console)
2018-10-23 09:56:04 +03:00
Denis Isaev
13ce836c33
docs: write about supported go versions
2018-10-21 11:56:13 +03:00
Diego Pontoriero
6ecea1cddc
config: gas => gosec defaults.
...
Updates the strings to reflect the linter rename.
2018-10-20 11:17:41 +03:00
Diego Pontoriero
9f0dcd6e34
readme: fix typo in sample config.
...
Should be `max-same-issues`, not `max-same`.
Also adds a trailing newline to files, which is good form, and updates
the generator to handle that cleanly.
Fixes #216 .
2018-10-20 11:16:49 +03:00
Alexander Menzhinsky
1759c57577
Replace ENTRYPOINT with CMD
2018-10-20 11:14:51 +03:00
Denis Isaev
6f6d496eb4
update golang.org/x/tools in go.mod
2018-10-20 10:54:47 +03:00
Cezar Sa Espinola
b307cc3765
Fix formatting with updated goimports version
2018-10-20 10:40:40 +03:00
Cezar Sa Espinola
0e2be20016
vendor: update golang.org/x/tools including goimports formatting changes
...
A recent change was introduced in goimports improving how it sort and
format imports in https://go-review.googlesource.com/c/tools/+/116795
This commit updates the vendored version of the golang.org/x/tools
repository to include these changes.
2018-10-20 10:40:40 +03:00
Alexander Menzhinsky
889e38c2fa
Make it build with go1.11
2018-10-20 10:38:06 +03:00