33 Commits

Author SHA1 Message Date
Anton Telyshev
c65868c105
gocritic: support of enable-all and disable-all options ()
Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
2024-02-19 14:50:25 +01:00
Oleksandr Redko
521a6763ce
dev: replace raw loops with funcs from slices and maps ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2024-01-04 22:43:50 +01:00
Ludovic Fernandez
ea4481a196
build(deps): bump github.com/quasilyte/go-ruleguard from v0.3.19 to v0.4.0 () 2023-08-10 12:11:03 +02:00
Ludovic Fernandez
e0a8bd8543
go1.21 support () 2023-08-09 12:09:20 +02:00
dependabot[bot]
bc616e8b65
build(deps): bump github.com/go-critic/go-critic from 0.7.0 to 0.8.0 ()
Co-authored-by: Oleksandr Redko <Oleksandr_Redko@epam.com>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-04-30 15:36:15 +02:00
Oleksandr Redko
1e700732e7
dev: gofmt -w -r 'interface{} -> any' pkg scripts () 2023-03-28 16:22:55 +02:00
Oleg Kovalov
e27b129e74
build(deps): bump github.com/go-critic/go-critic from 0.6.7 to 0.7.0 () 2023-03-17 17:33:56 +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
dependabot[bot]
a775985f5d
build(deps): bump github.com/go-critic/go-critic from 0.6.5 to 0.6.6 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-02-19 15:27:57 +01:00
Ludovic Fernandez
19a338706a
dev: reference all the debug keys and env vars () 2022-09-06 11:48:25 +00:00
dependabot[bot]
28d7095413
build(deps): bump github.com/go-critic/go-critic from 0.6.4 to 0.6.5 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-29 02:11:48 +02:00
dependabot[bot]
9da04f5070
build(deps): bump github.com/go-critic/go-critic from 0.6.3 to 0.6.4 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-14 18:21:32 +02:00
Ludovic Fernandez
f9d815115c
bump golang.org/x/tools to HEAD ()
* bump golang.org/x/tools to HEAD
* fix: adapt linters to the new validation system.
2022-05-23 12:39:57 +02:00
Denis Limarev
3d17f2fac1
gocritic: support autofix () 2022-01-03 22:57:05 +01:00
dependabot[bot]
56f27d0ad2
build(deps): bump github.com/securego/gosec/v2 from 2.9.3 to 2.9.5 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-12-14 05:18:18 +01:00
Maik Schreiber
7f25fee16b
bump varnamelen from v0.4.0 to v0.5.0 () 2021-11-20 16:36:07 +01:00
Ludovic Fernandez
aa3550ab83
fix: reduce flaky in the CI and clean the .golangci.yml of the project ()
* fix: clean linter configuration
* fix: minor changes
* fix: increase timeout
2021-11-14 16:03:40 +01:00
Sebastien Rosset
2c01ea7ff2
gocritic: add support for variable substitution in ruleguard path settings ()
* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add unit tests

* Add unit tests for ruleguard

* Add unit tests for ruleguard

* Add unit tests for ruleguard

* Add unit tests for ruleguard, fix package name
2021-11-02 11:34:19 -07:00
dependabot[bot]
4ce9a19e7d
build(deps): bump github.com/go-critic/go-critic from 0.5.6 to 0.6.0 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-23 00:51:11 +02:00
Ludovic Fernandez
ee30b44e4e
go-critic: fix invalid type conversions. () 2021-08-20 09:30:05 +02:00
Sebastien Rosset
ce3ff22a81
docs: improve gocritic description () 2021-02-25 00:16:16 +01:00
Sebastien Rosset
443e5b6c73
Print error message and exit with non-zero status when ruleguard parse error occurs () 2021-02-01 12:50:25 +01:00
iwankgb
306cbb0e6e
Upgrading to go-critic v0.5.0 () 2020-07-04 20:07:26 +00: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
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
3e9b681cf0 fix : fix go-critic configuration broken in v1.13 2019-01-26 18:35:45 +03:00
Denis Isaev
87aae77943 Update gocritic
Fix , relates 

1. Update gocritic to the latest version
2. Use proper gocritic checkers repo, old repo was archived
3. Get enabled by default gocritic checks in sync with go-critic: don't
enable performance, experimental and opinionated checks by default
4. Support of `enabled-tags` options for gocritic
5. Enable almost all gocritic checks for the project
6. Make rich debugging for gocritic
7. Meticulously validate gocritic checks config
2019-01-09 09:51:48 +03:00
David López
37e6995b45 lintpack/gocritic: update lintpack & gocritic versions
update lintpack & gocritic versions to support all the new gocritic checks
2018-12-22 15:34:16 +03:00
Denis Isaev
ac77eaac68 Fix , fix : revert goimports commit
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests
for local mode of goimports and do refactoring of tests.
2018-11-10 11:46:37 +03:00
Denis Isaev
0935ce1b8d fix : support go-critic linter 2018-11-07 09:11:08 +03:00