14 Commits

Author SHA1 Message Date
Ludovic Fernandez
7beb2fb734
staticcheck: bump to v0.4.0 (#3551) 2023-02-03 15:41:37 +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
f79bc883fb
unused: fix false-positive (#2772) 2022-04-19 09:26:01 +02:00
Mitsuo Heijo
a68a88ee02
build(deps): bump honnef.co/go/tools from v0.1.4 to v0.2.0 (#2019) 2021-05-29 20:44:40 +02:00
Ludovic Fernandez
b916c9318b
staticcheck: configuration for staticcheck, gosimple, stylecheck (#2017) 2021-05-27 20:11:30 +02:00
Ludovic Fernandez
12ed5facc9
staticcheck: configurable Go version. (#1946) 2021-04-30 22:28:50 +02:00
Ludovic Fernandez
809be02635
fix: linters load mode (#1862) 2021-03-21 23:06:40 +01:00
Ludovic Fernandez
2e7c389deb
Update staticcheck to v0.1.2 (2020.2.2) (#1756) 2021-02-21 16:27:32 +01:00
Isaev Denis
52c9b88c25
reduce mem. usage of unused and update staticcheck (#1063)
The primary improvement is in early clearing of
analyzed package's TypeInfo, facts, etc for
whole program analyzers (`unused`). Clear it when it
becomes unused and GC collects them early. Initially this
clearing was performed for all analyzers except `unused`.

Update staticcheck from v0.0.1-2019.2.3 to v0.0.1-2020.1.4

Also in this commit:
  * speed up loading packages from export data (2.5s -> 2.1s for std)
    by not using mutex for export data since it was allowed in
    x/tools#07722704da13
  * make an order of execution of linters stable
  * update renameio and robustio
  * use robustio in caching

Relates: #987, #994, #995, #1011
2020-05-03 15:20:17 +03:00
Aleksandr Razumov
3deb9d80ab
unused: check line range before suggesting fix
Fix #1048
2020-04-27 19:59:38 +03:00
Chris Koch
7a58a86d38 unused: suggest deleting unused stuff
Signed-off-by: Chris Koch <chrisko@google.com>
2019-12-29 17:47:50 -05: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
Trevor Pounds
6d786b50ae Group imports by package. 2019-10-01 18:09:47 -04: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