19 Commits

Author SHA1 Message Date
Ludovic Fernandez
f00c89f86b
dev: unifying processors code style () 2024-03-29 21:00:18 +01:00
Oleksandr Redko
6709c974a4
dev: refactor .golangci.yml configuration and fix up nolintlint issues () 2024-03-19 16:38:59 +01:00
Denis Limarev
1b0dbb0965
fix: use first issue without inline on mergeLineIssues on multiplie issues ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2024-03-07 20:18:09 +01:00
Patrick Ohly
d92b38cc3e
fix: combination of --fix and --path-prefix ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-03-20 21:44:36 +01:00
Oleksandr Redko
b673c5c1af
dev: replace pkg/errors with native error wrapping ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-02-22 01:35:43 +01:00
Ludovic Fernandez
8f00a10ad7
dev: improve tests on Windows () 2022-09-12 09:01:27 +02:00
Ludovic Fernandez
fce3949d5b
Deprecate 'scopelint' linter ()
* Deprecate scopelint linter

* clean code base.
2021-03-09 10:19:22 -08:00
Andrew Shannon Brown
ef44e11e17
Merge branch 'master' into asb/nolintlint-internal 2020-04-29 15:27:35 -07:00
Aleksandr Razumov
56f2b7d59d
fixer: add warning about possible line range issue 2020-04-27 20:11:42 +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
Craig Silverstein
06d26d5c12 Change writeFixedFile to replace the right line-range.
The function assumed, previously, that issue.Line always equals
issue.LineRange.From.  But this needn't be true, and the code needn't
assume it.  Now we actually replace the specified line-range.
2020-01-22 09:14:40 -08:00
Isaev Denis
9ba730e989
Make incremental analysis ()
Cache linting results. Reanalyze only changed packages
and packages tree depending on them.

Fixes , fixes 
2019-10-13 17:40:51 +03:00
Trevor Pounds
fd997edeeb Cleanup nolint directives. () 2019-10-03 19:34:19 +03:00
Trevor Pounds
6d786b50ae Group imports by package. 2019-10-01 18:09:47 -04:00
Isaev Denis
95ec0cf21e
dramatically reduce memory usage ()
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: 
2019-09-30 16:19:41 +03:00
Isaev Denis
f1c1dbfab4
Feature/enable autofix on whitespace ()
The whitespace linter was added in . Enable it and fix found issues.
Add auto-fixing to the whitespace linter.
2019-09-10 16:56:44 +03:00
Denis Isaev
3d78f64b60 fix : run misspell in text mode
Treat Go source files as plain text files by misspell: it allows detecting
issues in strings, variable names, etc. Also, it's the default mode of
a standalone misspell tool.

Also, implement richer and more stable auto-fix of misspell issues:
now it can fix multiple issues in one line.
2019-06-09 20:14:19 +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
d437ac8629 Implement auto-fixing for gofmt,goimports,misspell
Also, add more identifier marking patterns.
2019-02-17 20:31:31 +03:00