golangci-lint/pkg
Fabrice Rabaute bc945a157b Improve lll parsing for very long lines
lll is using scanner.Scan() to read the file line by line.
scanner.Scan() might fail if the line is longer than bufio.MaxScanTokenSize
In the case where the specified maxLineLen is smaller than bufio.MaxScanTokenSize
we can return this line as a long line instead of returning an error.
The reason for this change is that this case might happen with autogenerated files
The go-bindata tool for instance might generate a file with a very long line.
In this case, as it's a auto generated file, the warning returned by lll will
be ignored.
But if we return a linter error here, and this error happens for an autogenerated
file the error will be discarded (fine), but all the subsequent errors for lll will
be discarded for other files and we'll miss legit error.
2018-08-02 21:35:02 +03:00
..
commands Closes #75: golangci-lint linters now prints current linters configuration 2018-07-29 20:28:27 +03:00
config Add tab-width option to lll linter 2018-07-25 23:13:14 +03:00
exitcodes Fix #78: log all warnings 2018-06-14 23:09:04 +03:00
fsutils Fix #126: fix working with symlinks 2018-07-29 22:45:35 +03:00
golinters Improve lll parsing for very long lines 2018-08-02 21:35:02 +03:00
goutils Fix #126: fix working with symlinks 2018-07-29 22:45:35 +03:00
lint remove GOLANGCI_COM_RUN: make runs in golangci.com and local runs identical 2018-07-29 23:52:10 +03:00
logutils Fix #124: support unparam linter 2018-06-30 12:24:07 +03:00
packages Fix #126: fix working with symlinks 2018-07-29 22:45:35 +03:00
printers Fix #96: support lll 2018-06-28 23:03:11 +03:00
report add all warnings and error to json if out-format=json 2018-06-24 11:29:41 +03:00
result Fix #126: fix working with symlinks 2018-07-29 22:45:35 +03:00
timeutils Fix #78: log all warnings 2018-06-14 23:09:04 +03:00