@@ -19,10 +19,12 @@ type BaseIssue struct {
1919 replacement * result.Replacement
2020}
2121
22+ //nolint:gocritic // TODO(ldez) must be change in the future.
2223func (b BaseIssue ) Position () token.Position {
2324 return b .position
2425}
2526
27+ //nolint:gocritic // TODO(ldez) must be change in the future.
2628func (b BaseIssue ) Replacement () * result.Replacement {
2729 return b .replacement
2830}
@@ -31,6 +33,7 @@ type ExtraLeadingSpace struct {
3133 BaseIssue
3234}
3335
36+ //nolint:gocritic // TODO(ldez) must be change in the future.
3437func (i ExtraLeadingSpace ) Details () string {
3538 return fmt .Sprintf ("directive `%s` should not have more than one leading space" , i .fullDirective )
3639}
@@ -41,6 +44,7 @@ type NotMachine struct {
4144 BaseIssue
4245}
4346
47+ //nolint:gocritic // TODO(ldez) must be change in the future.
4448func (i NotMachine ) Details () string {
4549 expected := i .fullDirective [:2 ] + strings .TrimLeftFunc (i .fullDirective [2 :], unicode .IsSpace )
4650 return fmt .Sprintf ("directive `%s` should be written without leading space as `%s`" ,
@@ -53,6 +57,7 @@ type NotSpecific struct {
5357 BaseIssue
5458}
5559
60+ //nolint:gocritic // TODO(ldez) must be change in the future.
5661func (i NotSpecific ) Details () string {
5762 return fmt .Sprintf ("directive `%s` should mention specific linter such as `%s:my-linter`" ,
5863 i .fullDirective , i .directiveWithOptionalLeadingSpace )
@@ -64,6 +69,7 @@ type ParseError struct {
6469 BaseIssue
6570}
6671
72+ //nolint:gocritic // TODO(ldez) must be change in the future.
6773func (i ParseError ) Details () string {
6874 return fmt .Sprintf ("directive `%s` should match `%s[:<comma-separated-linters>] [// <explanation>]`" ,
6975 i .fullDirective ,
@@ -77,6 +83,7 @@ type NoExplanation struct {
7783 fullDirectiveWithoutExplanation string
7884}
7985
86+ //nolint:gocritic // TODO(ldez) must be change in the future.
8087func (i NoExplanation ) Details () string {
8188 return fmt .Sprintf ("directive `%s` should provide explanation such as `%s // this is why`" ,
8289 i .fullDirective , i .fullDirectiveWithoutExplanation )
@@ -89,6 +96,7 @@ type UnusedCandidate struct {
8996 ExpectedLinter string
9097}
9198
99+ //nolint:gocritic // TODO(ldez) must be change in the future.
92100func (i UnusedCandidate ) Details () string {
93101 details := fmt .Sprintf ("directive `%s` is unused" , i .fullDirective )
94102 if i .ExpectedLinter != "" {
0 commit comments