Commit Graph

62 Commits

Author SHA1 Message Date
Sven Rebhan e2578462a5
fix(inputs): Linter issues (#11576) 2022-08-02 13:52:17 +02:00
Paweł Żak f3904d3e2a
fix: Linter fixes for config/config.go (#10710) 2022-02-22 18:47:04 -07:00
Paweł Żak 1143a50da3
chore: Forbids "log" package only for aggregators, inputs, outputs, parsers and processors (#10191)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-12-03 11:50:51 -06:00
Joshua Powers b4cafff535
fix: remove telegraflinter from in-tree (#10053) 2021-11-03 16:11:47 -06:00
Sebastian Spaink a4d8a4b84f
chore: lint ignore fmt.Printf unhandled error (#9967) 2021-10-21 14:22:56 -05:00
Paweł Żak 9a794919e3
Linter fixes for plugins/inputs/[de]* (#9379) 2021-06-21 10:07:52 -05:00
Sebastian Spaink 598990b469
Private linter for Telegraf (#9168)
* Custom linter

* Telegraf private linter

Co-authored-by: Bas <3441183+BattleBas@users.noreply.github.com>
2021-04-26 16:12:58 -05:00
Steven Soroka 9c54c8e233
new linter commands (#9020) 2021-03-30 13:11:31 -05:00
Paweł Żak 74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984)
* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* "nolint"'s removed

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Paweł Żak 9ddd189cd3
Proposal of enabled linters and their settings. (#8951)
* Proposal of enabled linters and their settings.

* Workaround to skip weird "plugins/parsers/influx/plugins/parsers/influx" directory

* Update to reflect changes in github actions

* Back to the last state

* Fix

Co-authored-by: Pawel Zak <Pawel Zak>
Co-authored-by: Sebastian Spaink <sspaink@influxdata.com>
2021-03-12 12:14:31 -06:00
Paweł Żak 8a6907a186
Revive fixes - part 3 (#8872)
* * Revive fixes regarding following set of rules: [rule.var-naming]
2021-03-01 16:04:35 -05:00
Sebastian Spaink 660eb5b63c
Run revive linter in CI (#8798)
* Run revive linter in CI
Just output the results, don't fail on it
Removed the rule.exported rule

* Move revive install to CI

* new line

* Use golangci-lint

* Get v1.37

* increase timeout by a minute

* try five minutes

* newline missing

* Update config
2021-02-18 10:56:10 -06:00