Commit Graph

6 Commits

Author SHA1 Message Date
Nic Cope 0c7b1eb549 Bump golangci-lint, copy config from c/c
This copies the latest config from c/c and addresses all the linter
errors that config produces.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-02-20 03:45:27 -08:00
lsviben a6045dd880
introduce Lintable
Signed-off-by: lsviben <sviben.lovro@gmail.com>
2023-09-20 14:55:48 +02:00
Muvaffak Onus 90b7988df4
parser.linter: use strings.Join instead of strings.TrimSuffix to make the flow simpler
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2022-03-09 11:21:56 +03:00
Muvaffak Onus 155dc9d659
package.parser: make Or linter work with arbitrary number of linters instead of only two
Signed-off-by: Muvaffak Onus <me@muvaf.com>
2022-03-07 17:00:48 +03:00
Nic Cope af4e148a11 Replace github.com/pkg/errors with our own pkg/errors.
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-09 07:50:57 +00:00
hasheddan 9918fd7907
Move common linter functionality to parser pkg
Downstream consumers may implement their own linter functions, but the
core linter loop can be generalized, as well as helper functions such as
Or.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-10-05 08:02:55 -05:00