GolangCI Updates for July-August 2018

Denis Isaev
golangci
Published in
2 min readAug 29, 2018

golangci.com

We’ve launched repository reports. Every repository connected to GolangCI already has such report.

Repository report example for google/trillian

To view this report for your repo go to repo list and click to Report button.

Also, we’ve made improvements to repo and pull requests reports:

  1. show lines with the source code and ability to hide them (switch Show Code).
  2. extract and mark identifier (variable, type, function, constant) name in issue text for almost all issue types.
  3. show only the first 3 issues, hide other issues (see button Show n more issues); also, we show only the first 50 issue in a report.
  4. shorten the file path to the only name of the file and commit SHA to first 7 characters to preserve visual space.

Repository analysis is automatically updated after pushing to default branch (usually it’s a master branch): you don’t need to restart it manually. An analysis is first executed after repo connecting.

golangci-lint

We’ve added the following features for golangci-lint:

  1. build golangci-lint on go1.11 to support go1.11
  2. golangci-lint linters command: it prints current linters configuration
  3. remove -s flag: be silent by default
  4. tab-width option for lll linter
  5. glob matching support in updated Depguard
  6. merge 3 pending pull requests for Misspell into our fork and use it: now we have more word checking rules
  7. disable GAS by default: it was too noisy for a lot of our users

Also, we’ve fixed some bugs. The latest version of golangci-lint is v1.10.1.

And we have totally 792 GitHub stars now!

--

--