400 Commits

Author SHA1 Message Date
Denis Isaev
97ea1cbb21
docs: march updates v1.16.0 2019-03-31 22:37:05 +03:00
Denis Isaev
396a04630d dev: improve memory tracking 2019-03-31 22:33:18 +03:00
Denis Isaev
9ce2182d05
docs: update vim-go info 2019-03-31 19:47:32 +03:00
Denis Isaev
2c69ef2eb0 Update megacheck (staticcheck) to 2019.1.1
Relates to 
2019-03-31 19:41:37 +03:00
Hui Zhu
8319caf63f Makefile: Add target build
kata-containers's ci will re-build and re-install golangci-lint every
time it did the staic check.
So run test of golangci-lint with build will make it slow.
Add target build to make golangci-lint just build but not test.

Fixes: 

Signed-off-by: Hui Zhu <teawater@hyper.sh>
2019-03-31 19:37:26 +03:00
jumpeiMano
cad10b2a35 Update go version to 1.12 in Dockerfile 2019-03-31 19:35:45 +03:00
Denis Isaev
f516771a92 Fix : sort linters list in help commands 2019-03-18 08:46:13 +03:00
Denis Isaev
fd825488bf
dev: add test for govet custom formatter 2019-03-18 00:31:30 +03:00
Denis Isaev
85dec0c61b
docs: march updates 2019-03-17 23:17:49 +03: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
7289a90245 modify goanalysis 2019-03-17 23:12:44 +03:00
Denis Isaev
926e99aed0 copy go/analysis internal/checker into the project as is
use commit f0bfdbff1f9c986484a9f02fc198b1efcfe76ebe
2019-03-17 23:12:44 +03:00
Denis Isaev
d278457390 add LICENSE for x/tools 2019-03-17 23:12:44 +03:00
Rodrigo Brito
099f2ae41a Include log level option 2019-03-17 23:06:27 +03:00
Denis Isaev
22c0580cc7
docs: update march changes 2019-03-17 15:32:55 +03:00
Vitaly Isaev
0fdd91dc3d Update golang.org/x/tools package to fix false IllTyped error 2019-03-17 15:29:58 +03:00
Ben Paxton
f13d8387d3 fix help generation; update README 2019-03-17 15:27:45 +03:00
Ben Paxton
c41b1e2034 Add --color flag to force colored output on/off 2019-03-17 15:27:45 +03:00
Denis Isaev
cfff8fd30a
docs: march updates 2019-03-17 15:22:43 +03:00
Denis Isaev
3d2dfac47e Support excluding issues by source line regexp
See issues.exclude-rules[i].source.
Also introduced file data and file lines cache.
2019-03-17 15:17:29 +03:00
Trevor Pounds
7514bf8239 Fix AST cache key consistency.
Ensures the AST cache always consistently loads/stores
by using the normalized file path as the key.
2019-03-05 21:59:44 +03:00
Denis Isaev
a5c44d2076 go1.11 compatibility fixed 2019-03-05 21:44:52 +03:00
Denis Isaev
be0679ee71 build on go 1.12 and fix go 1.11 compatibility 2019-03-05 21:34:53 +03:00
Denis Isaev
466006b463 go1.12: migrate from perl GOROOT/test/errcheck 2019-03-05 21:20:43 +03:00
Evgeniy Kulikov
c55a62a8de Add Go1.12 to TravisCI 2019-03-04 09:49:05 +03:00
Denis Isaev
407c3f0465 go1.12: add nolint for gochecknoinits in mod_version.go 2019-03-04 09:48:45 +03:00
Denis Isaev
d3bc69dc5b docs: update changelog 2019-02-18 11:35:25 +03:00
Denis Isaev
901cf25e20 dev: add gosec test case v1.15.0 2019-02-18 11:05:28 +03:00
Denis Isaev
96af958205 fix : eval symlinks in AST cache 2019-02-18 00:21:49 +03:00
Denis Isaev
307c287356 Fix : include staticcheck check name into a message 2019-02-17 23:50:11 +03:00
Denis Isaev
ebadb7a679 Fix : support ignore-words option for misspell 2019-02-17 23:47:29 +03:00
Denis Isaev
193a751f80 dev: improve test for auto-fixing of misspell 2019-02-17 23:34:07 +03:00
Denis Isaev
25a630d206 docker: install golangci-lint into /usr/bin
Relates 
2019-02-17 20:37:45 +03:00
Francisco Souza
f7d2e92011 Dockerfile: copy the binary to /bin/ instead of $GOPATH/bin/
Closes .
2019-02-17 20:33:34 +03:00
Denis Isaev
d437ac8629 Implement auto-fixing for gofmt,goimports,misspell
Also, add more identifier marking patterns.
2019-02-17 20:31:31 +03:00
Viacheslav Poturaev
1eb712544c Add version information to built artifact when go get with go1.12 2019-02-17 19:00:52 +03:00
Denis Isaev
deb63b191f docs: update README after 2019-02-17 18:51:34 +03:00
Aleksandr Razumov
e672537942 remove obvious TODO about concurrent exclude rule processing 2019-02-17 18:40:22 +03:00
Aleksandr Razumov
30bfd60b2b improve tests for exclude rules 2019-02-17 18:40:22 +03:00
Aleksandr Razumov
edd055f862 config: add validation for exclude rules 2019-02-17 18:40:22 +03:00
Aleksandr Razumov
a3a04552bb add support for exclude rules 2019-02-17 18:40:22 +03:00
Denis Isaev
b607ea387e : run GO111MODULE=on go mod vendor after go-diff update 2019-02-17 18:27:59 +03:00
Chris Drew
08574bf08b Update sourcegraph go-diff
Fixes .
2019-02-17 18:23:26 +03:00
Denis Isaev
6c4d2907fb
add gosec files v1.14.0 2019-02-11 09:49:55 +03:00
Denis Isaev
7c49721144
update gochecknoglobals
Apply
abbdf6ec0a
2019-02-11 09:49:05 +03:00
Denis Isaev
183765e6d4
update gosec
$ git cherry --abbrev -v 8afd9cbb6cfb 66fb7fc33547
+ 63b25c1 Fix typo in README ()
+ 419c929 G107 - SSRF ()
+ 145f1a0 Removed wrapping feature ()
+ ec32ce6 Support Go 1.11 ()
+ 762ff3a Allow quoted strings to be used to format SQL queries ()
+ 7f6509a Update README.md ()
+ 5f98926 Refactor Dockerfile ()
+ d3f1980 Fix false positives for SQL string concatenation with constants from another file ()
+ 64d58c2 Refactor the test code sample to support multiple files per sample
+ 1ecd47e bump Dockerfile golang from 1.10 to 1.11
+ 027dc2b This fixes the html template when using '-fmt=html'  - resolves HTML escaping issues within the template  - resolves reference issues to reportInfo struct i.e. issues -> Issues, metrics -> Stats
+ 8c09a83 Add install.sh script
+ 97bc137 Add CI Installation steps and correct markdown lint errors
+ 3116b07 Fix typos in comments and rulelist ()
+ 443f84f Fix golint link ()
+ 4180994 Make G201 ignore CallExpr with no args ()
+ 9b966a4 add test case for strings.Builder G104 whitelist inclusion
+ adb4222 whitelist strings.Builder method in rule G104
+ ae82798 Fix the WriteSring test by handling the error
+ 2695567 Build the code sample for string builder only fron Go 1.10 onwards
+ f14f17f Add a helper function which extracts the string parameters values of a call expression
+ 9b32fca Fix the bind rule to handle the case when the arguments of the net.Listen are returned by a function call
+ 24e3094 Extend the bind rule to handle the case when the net.Listen address in provided from a const
+ 72e95e8 Geneate and upload the test coverage report to codecove.io
+ 12400f9 Update README with the code coverage batch
+ 14ed63d Do not flag the unhandled errors which are explicitly ignored
+ f87af5f Detect the unhandled errors even though they are explicitly ignored if the 'audit: enabled' setting is defined in the global configuration ()
+ 5d33e6e Update the README with some details about the configuration file
+ b662615 Fix typo
+ a966ff7 Fix -conf example in README.md
+ 04ce7ba add a no-fail flag
+ e2752bc revert to default GOPATH if necessary ()
- c04360f make API
+ 66fb7fc Replace import paths
2019-02-11 09:43:23 +03:00
Denis Isaev
b31cfd6c78
update go-critic
$ git cherry --abbrev -v 0af0999fabfb ee9bf5809ead
+ abd8436 all: enable Go modules on CI ()
+ 3c9d0fb checkers: recognize //line and //nolint in commentFormatting ()
+ 0b517d7 checkers: extend deprecatedComment patterns ()
+ 09100f6 checkers: use astcast package instead of coerce.go ()
+ 2e9e97f checker: simplify boolExprSimplify ()
+ 575701e make: add go-consistent to CI checks list ()
+ b55f431 checkers: fix unlambda handling of builtins ()
+ 5a7dee3 checker: handle lambdas properly in boolExprSimplify ()
+ 5ce3939 checkers: teach boolExprSimplify a few new tricks ()
+ 04d160f checkers: add new patterns to boolExprSimplify ()
+ 09582e2 make: collect coverprofile separately from goveralls ()
+ d8d0ee4 checkers: recognize NOTE pattern in deprecatedComment ()
+ 12f0f85 Update copyright notice to 2019 ()
+ f54bdb6 checkers: add stringXbytes checker
+ 170d65c checkers: followup for  ()
+ 84e9e83 checkers: make stringXbytes more linear ()
+ a800815 checkers: add Depreacted typo pattern ()
+ 6751be9 checkers: add hexLiterals ()
+ ac61906 checkers: add typeAssertChain checker ()
+ d19dbf1 checkers: add codegenComment checker ()
+ d82b576 checkers: proper pkg/obj check for flagName ()
+ dfcf754 ci: enable integration tests ()
+ 5dafc45 checkers: fix equalFold false positive ()
+ ed5e8e7 checkers: refactor and fix hexLiteral checker ()
+ e704e07 checkers: add argOrder checker ()
+ 34c1dc8 checkers: add Split handling to argOrder checker ()
+ cbe095d checkers: add math.Max and math.Min to dupArg ()
+ c986ee5 checkers: add checkers info fields test ()
+ 66e5832 cmd/makedocs: use lintpack, fix build ()
+ 6bce9d0 cmd/makedocs: add enabled/disabled by default info ()
+ 4adbf9a checkers: simplify flagName ()
+ 07de34a checkers: add octalLiteral checker ()
+ 765907a cmd/makedocs: add checker param docs ()
+ ee9bf58 cmd/makedocs: fix headers formatting ()
2019-02-11 09:35:41 +03:00
Denis Isaev
b3bad285d0
Fix : make go-critic example config valid 2019-02-11 09:33:04 +03:00
Elliot Shepherd
186fe37bf8 add code-climate output format
Just the minimum of the format, to support GitLab CI Code Quality - https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html
2019-02-11 14:26:26 +08:00
Isaev Denis
48bea8b6de Update README.md 2019-02-11 14:22:32 +08:00