73 Commits

Author SHA1 Message Date
Ludovic Fernandez
2c666ed4eb
dev: group linter implementation and integration tests (#4603) 2024-04-09 21:34:55 +00:00
Ludovic Fernandez
eaafdf3623
feat: add verify command (#4527) 2024-03-19 21:35:21 +01:00
Ludovic Fernandez
7489d44c50
dev: clean up (#4502) 2024-03-14 18:25:27 +01:00
Ludovic Fernandez
c047ed6005
docs: publish JSON schema on golangci-lint.run (#4488) 2024-03-13 00:19:26 +01:00
Ludovic Fernandez
85e1dee09a
docs: use information from the previous release to create pages (#4457) 2024-03-11 20:24:12 +01:00
Ludovic Fernandez
1aa28ec6a4
dev: remove unused release target (#4481) 2024-03-10 19:45:31 +01:00
Ludovic Fernandez
0f8b1e2570
dev: remove netlify (#4014) 2023-08-17 16:35:40 +02:00
Ludovic Fernandez
bddc63a234
dev: fix CI workflow for Windows (#3134) 2022-08-24 22:10:51 +02:00
Timon Wong
f48530e25e
feat: add logrlint (#3093)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-22 22:49:39 +02:00
Ludovic Fernandez
2b4c9ab4fc
dev: follow standards by using 'want' instead of 'ERROR' for tests (#3104) 2022-08-20 18:53:45 +02:00
Denis Limarev
3d17f2fac1
gocritic: support autofix (#2450) 2022-01-03 22:57:05 +01:00
Darlez
d3705d0e8b
Build docker images with go1.17 (#2188) 2021-08-19 16:11:34 +02:00
Ludovic Fernandez
123da8e6c7
Add go1.16 support (#1740) 2021-02-17 05:17:41 +01:00
Ludovic Fernandez
1f79767c5a
fix MIPS release (#1697) 2021-02-07 19:18:33 +01:00
Sergey Vilgelm
4ea3adc621
Update assets and README (#1234) 2020-07-11 19:22:01 -05:00
Denis Isaev
a1e1226977
docs: list contributors 2020-05-19 14:41:16 +03:00
Isaev Denis
b49d2df623
dev: use fast_check_generated in CI (#1104) 2020-05-17 00:08:16 +03:00
Isaev Denis
e560b3f76e
dev: expand website templates during build (#1095) 2020-05-16 14:41:39 +03:00
Isaev Denis
2d4d503a79
docs: migrate README.md to a website (#1094)
Make a website https://golangci-lint.run
for golangci-lint documentation.
The website is backed by Gatsby static site generator
and deployed into Netlify.
2020-05-16 14:10:03 +03:00
Isaev Denis
55cd9f78a1
dev: generate assets/github-action-config.json (#1073)
It will be used by GitHub action `golangci-lint-action`.

Relates: golangci/golangci-lint-action#11
2020-05-09 15:30:54 +03:00
Isaev Denis
cb58d1f82e
speed up CI and golangci-lint (#1070)
Run CI on mac os only with go1.13 and on windows only on go1.14.
Speed up tests. Introduce --allow-parallel-runners.
Block on parallel run lock 5s instead of 60s.
Don't invalidate analysis cache for minor config changes.
2020-05-09 15:15:34 +03:00
iwankgb
77e211ba75
Replacing Travis with Github actions (#1056)
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@critical.today>
2020-05-03 15:17:41 +03:00
Aleksandr Razumov
883305174d
make: add snapshot command 2020-04-23 01:40:32 +03:00
Aleksandr Razumov
ef317c460d
dev: disable vendoring
Fix #743
2020-04-22 01:53:36 +03:00
Trevor Pounds
c46c1b3224
Update to latest x/tools (#930)
* Update to latest x/tools (2020/01/19).

Fixes #893

* Initialize vet analyzers as unexportd global vars.

Fixes #915

* Support testing Go 1.14beta1.

* ci: reset go.mod and go.sum before generated diff check

* Update to latest x/tools (2020/02/04)

Co-authored-by: Aleksandr Razumov <ar@gortc.io>
2020-02-05 01:11:14 +03:00
David Braley
be3c688da4 I473 (#841)
Support custom linters integration by plugins

Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 13:51:55 +03:00
Trevor Pounds
258eb9b807 Cleanup duplicate test run command. 2019-12-29 22:02:00 -05:00
Trevor Pounds
0e7f88e07b Cleanup make targets. 2019-12-29 21:35:49 -05:00
Denis Titusov
0cc87df732 Rename deadline option to timeout and mark deadline as deprecated. (#793) 2019-10-08 09:37:54 +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
Trevor Pounds
86d7c05c6b Build godownloader/goreleaser tools before use. (#744) 2019-09-25 17:26:46 +03:00
Trevor Pounds
c427c61253 Use separate go.mod/go.sum to manage tool deps. (#736)
Fixes downstream `go get` issues due to broken/invalid
transitive goreleaser dependencies.

Fixes #730
2019-09-24 21:44:57 +03:00
Trevor Pounds
a16b4d872b Use stretchr/testify to mock log.
Simplifies test log usage and removes additional
targets and dependencies to go:generate mocks.
2019-09-24 11:58:40 -04:00
Trevor Pounds
abad4c9933 Cleanup obsolete go.mod/go.sum diff. (#729)
Unnecessary since Go 1.11 is no longer supported.
2019-09-24 08:42:22 +03:00
Trevor Pounds
21fda1d67c Enable consistent GOPROXY Go 1.12/1.13 behavior. 2019-09-23 15:30:15 -04:00
Trevor Pounds
49297189a1 Manage build tools via go.mod. 2019-09-23 21:30:20 +03:00
Trevor Pounds
358ce7c20c Enable Go module support across all commands. (#717) 2019-09-21 08:35:45 +03:00
Isaev Denis
6a979fb40d
Update staticcheck and cache go/analysis facts (#699)
* update staticcheck

Don't fork staticcheck: use the upstream version.
Remove unneeded SSA loading.

* Cache go/analysis facts

Don't load unneeded packages for go/analysis.
Repeated run of go/analysis linters now 10x faster
(2s vs 20s on this repo) than before.
2019-09-17 08:42:16 +03:00
Will Dixon
9161de5b7d Upgrade depguard to fix performance issue with go modules (#698)
* Upgrade depguard to fix performance issue with go modules

* Fix linting error of unused function
2019-09-15 14:13:16 +03:00
Trevor Pounds
2e8d83266f Update dependencies. (#684)
* Update deps.

* Update to Node.js v10.16.3 LTS.

* Fix mock logutils generation.
2019-09-12 16:02:43 +03:00
Denis Isaev
4495f893b9
Log go/analysis panics, don't crash
go/analysis panics were propagated to main and crashed golangci-lint.
Just log them, as with other linters.
Found in #608.
2019-09-10 18:49:34 +03:00
Isaev Denis
f1c1dbfab4
Feature/enable autofix on whitespace (#674)
The whitespace linter was added in #673. Enable it and fix found issues.
Add auto-fixing to the whitespace linter.
2019-09-10 16:56:44 +03:00
Isaev Denis
c87c37210f
dev: update install.sh (#672) 2019-09-10 11:09:39 +03:00
Isaev Denis
6163a8a790
Support go1.13 (#670)
Setup Travis CI to run on go 1.12 and 1.13.
Update info about go versions in README.
Rebuild go.mod,go.sum on go1.13.
2019-09-09 21:54:56 +03:00
Duco van Amstel
0b49095bae Make generation of demo.svg deterministic (#625) 2019-09-09 17:37:06 +03:00
Denis Isaev
e39e8fb5d5 update x/tools
Significantly improve CPU and memory usage when not using SSA-powered linters.
Improve readability of go/packages errors.
Improve debugging capabilities and write doc about debugging.
2019-09-09 15:04:32 +03:00
Denis Isaev
ad9de15a58
dev: fix go1.11 builds 2019-06-09 16:24:04 +03:00
Denis Isaev
6508d1623a fix #513: don't add gofmt "with -s" if not needed
Output
  File is not `gofmt`-ed
insted of
  File is not `gofmt`-ed  with `-s`
when gofmt.simplify == false
2019-06-09 16:22:41 +03:00
Luke Shumaker
2508856219 Makefile: Be clear about exactly which files are generated, and how
This mostly aims to document how everything was generated, and the steps
necessary to re-generate the same files verbatim; the goal is to figure
out how to reproduce the files as they currently are.  The exception is
that we strip out the timestamp out of install.sh.
2019-06-05 01:04:00 -04:00
Luke Shumaker
9ce337296b Makefile: Set GO111MODULE=on for consistency, adjust tests accordingly 2019-06-05 00:52:23 -04:00