52 Commits

Author SHA1 Message Date
dependabot[bot]
a6caf8bf99
build(deps): bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 in /scripts/gen_github_action_config (#3991) 2023-08-07 23:14:45 +02:00
AlduLonghi
d58f140171
docs: add linters description (#3945)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-07-11 15:46:37 +02:00
dependabot[bot]
a56dfe8c3a
build(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 in /scripts/gen_github_action_config (#3946) 2023-07-11 01:15:39 +02:00
Ludovic Fernandez
79c78d6f6f
feat: explain typecheck and remove it from the linter list (#3929) 2023-06-29 22:40:59 +02:00
dependabot[bot]
043c368f2d
build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 in /scripts/gen_github_action_config (#3920) 2023-06-20 01:30:03 +02:00
dependabot[bot]
cb6390d7ca
build(deps): bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 in /scripts/gen_github_action_config (#3838) 2023-05-16 00:37:58 +02:00
dependabot[bot]
f5bbb3bd17
build(deps): bump golang.org/x/oauth2 from 0.6.0 to 0.7.0 in /scripts/gen_github_action_config (#3773) 2023-04-10 23:29:38 +02:00
Oleksandr Redko
1e700732e7
dev: gofmt -w -r 'interface{} -> any' pkg scripts (#3742) 2023-03-28 16:22:55 +02:00
dependabot[bot]
c01eca8ae6
build(deps): bump golang.org/x/oauth2 from 0.5.0 to 0.6.0 in /scripts/gen_github_action_config (#3664) 2023-03-06 21:43:30 +01:00
dependabot[bot]
6792509707
build(deps): bump golang.org/x/net from 0.0.0-20220624214902-1bab6f366d9e to 0.7.0 in /scripts/gen_github_action_config (#3647)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-03-02 01:58:27 +01:00
Oleksandr Redko
f4fec8c6d0
dev: bytes.NewBuffer/bytes.NewBufferString to shorten initialization (#3632) 2023-02-24 16:40:18 +01:00
Ludovic Fernandez
2fa3b6f8e4
chore: update go.mod for gen_github_action_config script (#3300)
fix: apply the workaround suggested by the GitHub team.
2022-10-20 12:42:10 +00:00
Ludovic Fernandez
d286cb910c
docs: add a section about default exclusions (#3117) 2022-08-20 19:05:13 +02:00
Ludovic Fernandez
f8f8f9a6e7
nolint: drop allow-leading-space option and add "nolint:all" (#3002) 2022-08-01 14:21:04 +02:00
Sasha Melentyev
a9dc1ce178
dev: change format like function without args (#3012)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-24 18:24:01 +02:00
Ludovic Fernandez
a7bfc66740
docs: add thanks page (#2893) 2022-06-06 13:20:19 +02:00
Ludovic Fernandez
4deb32f2c0
docs: rename .golangci.example.yml to .golangci.reference.yml (#2857) 2022-05-16 12:26:25 +02:00
Ludovic Fernandez
8bdc4d3f80
fix: help command (#2681)
Some checks failed
Release a tag / release (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
2022-03-24 12:49:36 +01:00
Ludovic Fernandez
0831dacc29
docs: add "back to the top" button (#2602)
* feat: use non-breaking space
* feat: add back on top button
2022-02-19 04:55:30 +01:00
Ludovic Fernandez
d7e110ebbd
docs: add link to configuration in the linters list (#2587) 2022-02-17 15:20:55 +01:00
Ludovic Fernandez
c84de88229
docs: split configuration page into multiple sections (#2484) 2022-01-20 01:20:51 +01:00
Benjamin
e5cd59a607
dev: replace ioutil with io and os (#2318) 2021-11-01 20:21:26 +01:00
dependabot[bot]
4ce9a19e7d
build(deps): bump github.com/go-critic/go-critic from 0.5.6 to 0.6.0 (#2041)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-23 00:51:11 +02:00
Ludovic Fernandez
fcef82475c
docs: improve linters page (#1995)
* TOC level 3
* drop `.golangci.yaml` from the Configuration page
* generate a dedicated configuration section for each linters.
* fix changelog heading
2021-05-17 23:56:46 +02:00
Ludovic Fernandez
c610079e1d
feat: set the minimum Go version to go1.15 (#1926) 2021-05-01 12:12:39 +03:00
Ludovic Fernandez
8db518cee0
Add versions, improve deprecation system, improve linters page (#1854) 2021-03-17 16:17:33 +01:00
Ludovic Fernandez
92adaa4497
docs: improve linters page (#1842) 2021-03-14 14:15:52 +01:00
Ludovic Fernandez
2ebc9d7202
dev: clean configuration and code (#1830) 2021-03-09 19:46:18 +01:00
Sergey Vilgelm
b77118fdac
Use errcheck from main repo instead of golangci-lint fork (#1319)
Co-authored-by: Roman Leventov <leventov@ya.ru>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-02-25 13:16:48 +01:00
Renato Suero
89e94823d6
Added func to sort linters (#1451) 2020-10-18 17:14:31 +11:00
Sergey Vilgelm
20083f78d3
Update docs state (#1284) 2020-08-03 13:51:50 +08:00
Sergey Vilgelm
cb2f12e7e1
Update the gen_github_action_config to add latest to assets (#1260) 2020-07-23 14:22:04 +08:00
Denis Isaev
a1e1226977
docs: list contributors 2020-05-19 14:41:16 +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
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
Denis Isaev
645e79404d
docs: update the latest release to v1.21.0 2019-10-15 20:55:02 +03:00
Denis Isaev
f13436112d
dev: fix go1.12 compilation 2019-10-13 20:17:43 +03:00
Isaev Denis
ca6effbeec
dev: discourage bad practices (#803) 2019-10-12 12:36:03 +03:00
David López
064c0e3d67 readme: split changelog into own file (#689)
split changelog into own file. closes #688.
2019-09-14 14:07:14 +03:00
Luke Shumaker
9ce337296b Makefile: Set GO111MODULE=on for consistency, adjust tests accordingly 2019-06-05 00:52:23 -04:00
Denis Isaev
8c1237b667 Use the newest go vet
The newest go vet based on go/analysis
2019-03-17 23:12:44 +03:00
Denis Isaev
2b7ea844ab
dev: add script for printing AST of file 2019-01-20 21:36:05 +03:00
David López
d9a1bdb831 gocritic: fix code to pass newly added gocritic checks
Fix code to pass newly added gocritic checks, mainly pointer receivers and import shadows
2019-01-08 09:59:24 +03:00
Diego Pontoriero
9f0dcd6e34 readme: fix typo in sample config.
Should be `max-same-issues`, not `max-same`.

Also adds a trailing newline to files, which is good form, and updates
the generator to handle that cleanly.

Fixes #216.
2018-10-20 11:16:49 +03:00
Denis Isaev
8a478c47ac Prepare for #164: rename GAS to gosec
1. Rename in a backward compatible way
2. Remove gosec default exclude list because gosec is already disabled
by default.
3. Warn about unmatched linter names in //nolint directives
4. Process linter names in //nolint directives in upper case
5. Disable gosec for golangci-lint in .golangci.yml
2018-09-02 09:34:35 +03:00
Denis Isaev
47440bc2cc don't print config parsing info logs twice 2018-09-02 09:34:35 +03:00
Denis Isaev
069e66aa91 Closes #75: golangci-lint linters now prints current linters configuration 2018-07-29 20:28:27 +03:00
Denis Isaev
815d13148f docs: add changelog, rewrite internal section, add trusted by section 2018-06-30 21:00:47 +03:00
Denis Isaev
5514c4393e Fix #17, #87: govet becomes SLOW linter by default
1. Allow govet to work in 2 modes: fast and slow. Default is slow.
In fast mode golangci-lint runs `go install -i` and `go test -i`
for analyzed packages. But it's fast only when:
  - go >= 1.10
  - it's repeated run or $GOPATH/pkg or `go env GOCACHE` is cached
  between CI builds
In slow mode we load program from source code like for another linters
and do it only once for all linters.

3. Patch govet code to warn about any troubles with the type
information. Default behaviour of govet was to hide such warnings.
Fail analysis if there are any troubles with type loading: it will
prevent false-positives and false-negatives from govet.

4. Describe almost all options in .golangci.example.yml and
include it into README. Describe when to use slow or fast mode of govet.

5. Speed up govet: reuse AST parsing: it's already parsed once by
golangci-lint.
For "slow" runs (when we run at least one slow linter) speedup by
not loading type information second time.

6. Improve logging, debug logging

7. Fix crash in logging of AST cache warnings (#118)
2018-06-18 09:47:15 +03:00