Ludovic Fernandez
15c57c176e
fix: speed up "fast" linters ( #4653 )
2024-04-18 21:45:50 +02:00
Ludovic Fernandez
87a35e63a9
dev: organize golinters package ( #4578 )
2024-03-26 20:55:39 +01:00
Ludovic Fernandez
f9d815115c
bump golang.org/x/tools to HEAD ( #2875 )
...
* bump golang.org/x/tools to HEAD
* fix: adapt linters to the new validation system.
2022-05-23 12:39:57 +02:00
Ludovic Fernandez
9aea4aee1c
typecheck: display compilation errors as report instead of error ( #1861 )
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2021-03-25 23:52:55 +01:00
Isaev Denis
9ba730e989
Make incremental analysis ( #808 )
...
Cache linting results. Reanalyze only changed packages
and packages tree depending on them.
Fixes #768 , fixes #809
2019-10-13 17:40:51 +03:00
Isaev Denis
95ec0cf21e
dramatically reduce memory usage ( #758 )
...
Run all linters per package. It allows unloading package data when it's
processed. It dramatically reduces memory (and CPU because of GC) usage.
Relates: #337
2019-09-30 16:19:41 +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
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
8fceb7fc47
Fix #209 : support goimports.local-prefix option for goimports
2018-10-28 18:47:56 +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
Denis Isaev
284447fc07
prettify issue texts
2018-08-18 23:04:27 +03:00
Denis Isaev
5d04557a1f
#156 , #157 : properly detect type errors in dependencies
2018-07-28 23:47:22 +03:00
golangci
034728ec94
generate parts of README automatically
2018-06-02 11:37:17 +03:00
golangci
0a111acaab
refactor and don't print congrats if timeouted
2018-06-02 00:30:39 +03:00
golangci
5646c61c73
#40 : fix panic in fast mode
2018-05-30 09:18:13 +03:00
golangci
b12c5591cd
#33 : don't pass not compiling packages to linters accepting loader.Program
2018-05-29 18:41:04 +03:00
golangci
b361146df8
#12 : add TypeCheck linter to report compilation errors
2018-05-26 20:02:26 +03:00