From 7cec7101c450f88daf73e436c598e2302130d660 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 2 Sep 2022 23:54:45 +0200 Subject: [PATCH] linting: tabwriter: ignore stylecheck We try to keep this package close to upstream golang's code, so suppress the linter warning. cli/command/formatter/tabwriter/tabwriter.go:200:1: ST1020: comment on exported method Init should be of the form "Init ..." (stylecheck) // A Writer must be initialized with a call to Init. The first parameter (output) ^ cli/command/formatter/tabwriter/tabwriter.go:425:1: ST1022: comment on exported const Escape should be of the form "Escape ..." (stylecheck) // To escape a text segment, bracket it with Escape characters. ^ Signed-off-by: Sebastiaan van Stijn --- cli/command/formatter/tabwriter/tabwriter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/formatter/tabwriter/tabwriter.go b/cli/command/formatter/tabwriter/tabwriter.go index 2dcbcd0eb8..0fbaeb5010 100644 --- a/cli/command/formatter/tabwriter/tabwriter.go +++ b/cli/command/formatter/tabwriter/tabwriter.go @@ -12,7 +12,7 @@ // based on https://github.com/golang/go/blob/master/src/text/tabwriter/tabwriter.go Last modified 690ac40 on 31 Jan -//nolint:gocyclo,nakedret,revive,unused // ignore linting errors, so that we can stick close to upstream +//nolint:gocyclo,nakedret,revive,stylecheck,unused // ignore linting errors, so that we can stick close to upstream package tabwriter import (