112 Commits

Author SHA1 Message Date
Denis Isaev
2192097e7f
docs: update changelog 2019-01-21 09:43:37 +03:00
Denis Isaev
8d8ba245e1
docs: update information about Atom integration 2019-01-20 20:48:23 +03:00
Denis Isaev
87aae77943 Update gocritic
Fix #324, relates #314

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
Denis Isaev
7705f82591 Update megacheck to the latest version
Also do following improvements:
  - show proper sublinter name for megacheck sublinters
  - refactor and make more simple and robust megacheck
  merging/optimizing
  - improve handling of unknown linter names in //nolint directives
  - minimize diff of our megacheck version from the upstream,
  https://github.com/golang/go/issues/29612 blocks usage of the upstream
  version
  - support the new `stylecheck` linter
  - improve tests coverage for megacheck and nolint related cases
  - update and use upstream versions of unparam and interfacer instead of forked
  ones
  - don't use golangci/tools repo anymore
  - fix newly found issues after updating linters

Also should be noted that megacheck works much faster and consumes less
memory in the newest release, therefore golangci-lint works noticeably
faster and consumes less memory for large repos.

Relates: #314
2019-01-08 21:16:15 +03:00
Denis Isaev
93b2d10537 docs: make readme after the last README fix 2019-01-08 10:02:12 +03:00
Isaev Denis
21a8185fd2 remove extra --version from README.md 2019-01-08 09:59:24 +03:00
David López
0192cb3955 gocritic: update default checks list
Update gocritic default checks list, add the current gocritic stable checks list
2019-01-08 09:59:24 +03:00
Denis Isaev
658f4addbd
docs: fix errcheck ignore example 2018-12-23 13:03:17 +03:00
Denis Isaev
609de3254c Fix #331: fix errcheck "ignore" config directive.
Make tests for "ignore" and "exclude" directives.
Mark all hidden command-line options as deprecated.
2018-12-23 12:33:41 +03:00
Denis Isaev
f5902eb01f
docs: regenerate README.md 2018-12-22 15:26:06 +03:00
Alexander Morozov
baa2415ddf Use go env GOPATH for installation
People these days tend to use default GOPATH, so environment variable will be empty.

go env GOPATH will work for all cases

Signed-off-by: Alexander Morozov <lk4d4math@gmail.com>
2018-12-22 14:05:24 +03:00
Koichi Shiraishi
85cf013e2b README: run 'make readme' 2018-12-22 14:00:49 +03:00
Denis Isaev
09c65fcf42 rework modules download mode option 2018-12-22 13:37:17 +03:00
Nicolae Vartolomei
b693037af0 Allow configure module download mode 2018-12-22 13:37:17 +03:00
Ben Wells
ef78643830 Fix typo in gometalinter comparison example 2018-11-28 08:31:11 +03:00
Denis Isaev
b3f4d6a9b2
docs: add info about new linters to changelog 2018-11-07 10:47:51 +03:00
Denis Isaev
7d51954355 fix #199: support gochecknoinits, gochecknoglobals
Add 2 new linters
2018-11-07 10:47:08 +03:00
Denis Isaev
0935ce1b8d fix #132: support go-critic linter 2018-11-07 09:11:08 +03:00
Dale Hui
89b7e42dbf Use git describe --tags to get most recent tag reachable from HEAD 2018-11-06 08:16:19 +03:00
Denis Isaev
84c9c65f39 fix #243: support Scopelint linter 2018-11-06 08:11:25 +03:00
Denis Isaev
0bc25236b8 fix #266: docs: reorder sections and update changelog 2018-11-04 13:27:59 +03:00
Denis Isaev
71b940e3b2 fix markdownlint issues 2018-11-04 13:27:59 +03:00
Denis Isaev
14f4dcebe5
docs: update Trusted By section 2018-10-28 21:53:00 +03:00
Denis Isaev
f9e1c6550b
docs: write about Atom integration 2018-10-28 19:45:29 +03:00
Denis Isaev
8fceb7fc47
Fix #209: support goimports.local-prefix option for goimports 2018-10-28 18:47:56 +03:00
Denis Isaev
6aeecb7817
docs for #222: add info about VS Code configuration 2018-10-28 18:18:24 +03:00
Denis Isaev
0421bac259 Fix #237, fix #178: use go/packages
Use go/packages instead of x/tools/loader: it allows to work
with go modules and speedups loading of packages with the help
of build cache.

A lot of linters became "fast": they are enabled by --fast now and
work in 1-2 seconds. Only unparam, interfacer and megacheck
are "slow" linters now.

Average project is analyzed 20-40% faster than before if all linters are
enabled! If we enable all linters except unparam, interfacer and
megacheck analysis is 10-20x faster!
2018-10-28 17:55:15 +03:00
bartfokker
e5a60caa97 update generated readme 2018-10-28 16:45:05 +03:00
bartfokker
4cc6ed7db9 update generated README.md 2018-10-28 16:45:05 +03:00
Denis Isaev
13ce836c33 docs: write about supported go versions 2018-10-21 11:56:13 +03:00
Diego Pontoriero
6ecea1cddc config: gas => gosec defaults.
Updates the strings to reflect the linter rename.
2018-10-20 11:17:41 +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
vterdunov
d55cc8808b Fix nolint comment in readme 2018-10-10 21:55:17 +03:00
Kishan B
59c3d20303 Add install.sh to the repo and update readme. Fixes #233 2018-10-03 23:28:30 +03:00
Sascha Grunert
8d4075ba6d Update readme 2018-10-03 23:19:27 +03:00
Denis Isaev
0c82b64123 return gosec default excludes: it's too annoying for users 2018-09-05 20:49:57 +03:00
Denis Isaev
8cef10eed6 #164: update README 2018-09-02 09:34:35 +03:00
Denis Isaev
ec1208924a add info about Spacemacs to README 2018-08-25 10:35:16 +03:00
Denis Isaev
a2b901227c Close #196: disable GAS (gosec) by default 2018-08-12 22:27:04 +03:00
Denis Isaev
b900926bfc Fix #121, fix #186: remove --silent,-s flag: be silent by default 2018-08-08 23:55:01 +03:00
Romanos Skiadas
d3eb3ed74d point users to --new-from-rev=HEAD~ for CI setups in --help
Although the FAQ does eventually mention that
--new-from-rev=origin/master is the right way, --help does not and
using --new in CI is a terrible pitfall.

Make --help point users to -new-from-rev=HEAD~ for CI setups.

Also use HEAD~ instead of origin/master, since HEAD~ is more
universally applicable, e.g. if golangci-lint is ran against a release
branch.
2018-08-08 20:06:49 +03:00
Denis Isaev
55cdda4166
Fix #159: add silent option to .golangci.example.yml 2018-07-29 23:43:19 +03:00
Denis Isaev
8156b9f7e9 Closes #104: improve readability of memory comparison 2018-07-29 20:28:35 +03:00
Denis Isaev
069e66aa91 Closes #75: golangci-lint linters now prints current linters configuration 2018-07-29 20:28:27 +03:00
Fabrice Rabaute
e17b9543e7 Add tab-width option to lll linter 2018-07-25 23:13:14 +03:00
Eldar Rakhimberdin
9b866bcff1 Fix comment message 2018-07-03 19:47:05 +03:00
Denis Isaev
79776b41f9 Fix #150: don't recommend vendoring of golangci-lint in README 2018-07-03 09:52:13 +03:00
Denis Isaev
894ba0df9f Resolve #146: prealloc linter support 2018-06-30 22:07:12 +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
facc3a096a Fix #98: nakedret linter support 2018-06-30 15:41:47 +03:00