176 Commits

Author SHA1 Message Date
Denis Isaev
6e12ea5734
docs: add FAQ entry about go install 2018-06-12 10:07:10 +03:00
Denis Isaev
1ff1d6733f
ignore 'comment on exported type ... should be of the form' by default 2018-06-11 18:57:33 +03:00
Denis Isaev
84520c527e
dev: add forgotten file test/testdata/autogenerated/mockgen.go 2018-06-11 12:51:06 +03:00
Isaev Denis
7c70250d8c
Merge pull request #84 from golangci/support/detect-mockgen-properly
Properly detect generated files: fix detection when
v1.6.1
2018-06-11 12:47:17 +03:00
Denis Isaev
7f833070b1
Properly detect generated files: fix detection when
there is extra line between comment about generated file and package
name
2018-06-11 12:38:52 +03:00
Isaev Denis
89921943e1
Merge pull request #83 from golangci/feature/improve-json-output
Write JSON output more compactly and output object, not array
2018-06-11 11:46:43 +03:00
Denis Isaev
541656cc20
Write JSON output more compactly and output object, not array 2018-06-11 11:19:40 +03:00
Denis Isaev
2a8eec1f70
dev: add release target to Makefile 2018-06-11 10:30:29 +03:00
Isaev Denis
34fa0b0715
Merge pull request #82 from golangci/feature/match-more-autogenerated-files
Fix #72: match more autogenerated files patterns.
v1.6
2018-06-11 09:46:34 +03:00
Denis Isaev
adb6be78bb
Fix #72: match more autogenerated files patterns.
We skip all issues from autogenerated files.
Also reuse AST parsing for nolint and autogenerated exclude processors:
decrease processing time on golang source code from 3s to 800ms.
2018-06-11 00:51:23 +03:00
Isaev Denis
46088deacf
Merge pull request #81 from golangci/feature/fix-common-failures
Feature/fix common failures
2018-06-10 23:53:30 +03:00
Denis Isaev
2b587b63d6
Load AST for fast linters in different way.
Use build.Import instead of manual parser.ParseFile and paths traversal. It allows:
1. support build tags for all linters.
2. analyze files only for current GOOS/GOARCH: less false-positives.
3. analyze xtest packages (*_test) by golint: upstream golint and
gometalinter can't do it! And don't break analysis on the first xtest
package like it was before.
4. proper handling of xtest packages for linters like goconst where
package boundary is important: less false-positives is expected.

Also:
1. reuse AST parsing for golint and goconst: minor speedup.
2. allow to specify path (not only name) regexp for --skip-files and
--skip-dirs
3. add more default exclude filters for golint about commits:
`(comment on exported (method|function)|should have( a package)?
    comment|comment should be of the form)`
4. print skipped dir in verbose (-v) mode
5. refactor per-linter tests: declare arguments in comments, run only
one linter and in combination with slow linter
2018-06-10 23:46:24 +03:00
Denis Isaev
f5a9bbb140
don't run megacheck if there are not compiling packages and warn about it 2018-06-10 09:22:21 +03:00
Isaev Denis
616bc37d6a
Merge pull request #79 from alecthomas/master
Allow --enable, --enable-all and --fast to coexist.
2018-06-09 17:29:33 +03:00
Alec Thomas
581a3564ff Allow --enable, --enable-all and --fast to coexist.
This is useful to first enable all linters (including fast ones), then
only enable fast linters, then add extra linters. eg.

```
golangci-lint run --no-config --enable-all --fast --print-issued-lines=false \
    --exclude-use-default=false --tests --enable typecheck .
```
2018-06-09 19:49:24 +10:00
Denis Isaev
9ed7dad894
#77: move changes from README.md to README.md.tmpl 2018-06-09 00:01:54 +03:00
Isaev Denis
94ba831a89
Merge pull request #77 from charl/master
Language changes and fixed some typos.
2018-06-08 23:23:54 +03:00
Charl Matthee
5862a4b8a4
Language changes and fixed some typos.
Language changes and fixed some typos.
2018-06-08 09:21:23 +02:00
Denis Isaev
61c0974323
improved warnings logging 2018-06-08 08:43:43 +03:00
Denis Isaev
1fad9ea1d7
add information about GoLand support into README.md 2018-06-07 23:42:52 +03:00
Denis Isaev
c144a3c731
update information about editor integration and nolint in README.md 2018-06-07 23:17:24 +03:00
Isaev Denis
a37c6e62f3
Merge pull request #74 from golangci/feature/support-skip-files-and-dirs
#30: support --skip-files and --skip-dirs options: they skip files an…
2018-06-07 09:52:53 +03:00
Denis Isaev
eee7e73dc1
#30: support --skip-files and --skip-dirs options: they skip files and dirs by regexps 2018-06-07 09:39:33 +03:00
Isaev Denis
110f584ad9
Merge pull request #71 from golangci/feature/full-support-of-nolint-directives
#65, #68: make //nolint processing like in gometalinter
v1.5
2018-06-06 23:59:28 +03:00
Denis Isaev
8a9b3a5143
#65, #68: make //nolint processing like in gometalinter 2018-06-06 23:51:15 +03:00
Isaev Denis
af77076207
Merge pull request #70 from golangci/feature/skip-cgo-issues
skip all cgo issues
2018-06-06 22:12:50 +03:00
Denis Isaev
f6a7e89d69
skip all cgo issues 2018-06-06 22:06:01 +03:00
Isaev Denis
58b4d28a3f
Merge pull request #69 from golangci/support/properly-merge-slice-flags-from-config-and-cmd
#66: properly merge (not overwrite) slice flags from config and comma…
2018-06-06 10:01:10 +03:00
Denis Isaev
afc4b4344f
#66: properly merge (not overwrite) slice flags from config and command-line 2018-06-06 09:11:21 +03:00
Isaev Denis
9c07341b36
Merge pull request #64 from ashanbrown/patch-1
Fix typo in includeGoRoot config field
2018-06-04 09:06:35 +03:00
Andrew Shannon Brown
41719ec87e
Fix typo in includeGoRoot config field 2018-06-03 19:24:24 -07:00
Denis Isaev
ad3bf1eb58
fix --version option and improve installation section of docs v1.4.1 2018-06-03 09:25:53 +03:00
Denis Isaev
e8fb3a5166
docs: update contact info 2018-06-03 00:37:22 +03:00
Isaev Denis
963db7c4bc
Merge pull request #62 from golangci/feature/tab-output-format
#37: add tab output format: --out-format=tab
v1.4
2018-06-02 21:08:09 +03:00
Denis Isaev
f62d607410
#37: add tab output format: --out-format=tab 2018-06-02 21:01:09 +03:00
Isaev Denis
1e0cacf411
Merge pull request #61 from golangci/feature/search-config-file
#60: search config file in directories from file path up to root
2018-06-02 20:34:01 +03:00
Denis Isaev
0f6213dbc2
#60: search config file in directories from file path up to root 2018-06-02 20:28:53 +03:00
Isaev Denis
68e1295340
Merge pull request #59 from golangci/feature/enabled-tests-linting-by-default
#52: #36: lint test files by default
2018-06-02 18:30:08 +03:00
Denis Isaev
b0826710b5
#52: #36: lint test files by default: set --tests=false to disable it 2018-06-02 18:24:00 +03:00
Isaev Denis
7dfc117592
Merge pull request #58 from golangci/support/fix-double-parsing-of-options
#49: don't fill string slice 2 times because of double parsing of opt…
2018-06-02 17:58:21 +03:00
Denis Isaev
4fd5ebe7c7
#49: don't fill string slice 2 times because of double parsing of options 2018-06-02 17:50:38 +03:00
Isaev Denis
594197d0ac
Merge pull request #57 from golangci/feature/generate-cmd-help-section-of-readme
generate command line options section of README
2018-06-02 16:28:48 +03:00
golangci
9133ef4271 generate command line options section of README 2018-06-02 16:01:20 +03:00
golangci
4df5df2ab7
Merge pull request #56 from golangci/feature/svg-demo
add svg demo
2018-06-02 14:24:02 +03:00
golangci
d4d2697f8a add svg demo 2018-06-02 14:10:34 +03:00
golangci
efc97a374a
Merge pull request #55 from golangci/feature/generate-parts-of-readme
generate parts of README automatically
2018-06-02 11:44:32 +03:00
golangci
034728ec94 generate parts of README automatically 2018-06-02 11:37:17 +03:00
golangci
5236feb1ae
Merge pull request #53 from golangci/support/dont-print-congrats-if-timeout
refactor and don't print congrats if timeouted
2018-06-02 09:28:43 +03:00
golangci
0a111acaab refactor and don't print congrats if timeouted 2018-06-02 00:30:39 +03:00
golangci
2f333be584
Merge pull request #47 from dixonwille/feature/add-depguard
Add Depguard to supported linters
2018-06-01 23:40:41 +03:00