@@ -19,10 +19,12 @@ type BaseIssue struct {
19
19
replacement * result.Replacement
20
20
}
21
21
22
+ //nolint:gocritic // TODO(ldez) must be change in the future.
22
23
func (b BaseIssue ) Position () token.Position {
23
24
return b .position
24
25
}
25
26
27
+ //nolint:gocritic // TODO(ldez) must be change in the future.
26
28
func (b BaseIssue ) Replacement () * result.Replacement {
27
29
return b .replacement
28
30
}
@@ -31,6 +33,7 @@ type ExtraLeadingSpace struct {
31
33
BaseIssue
32
34
}
33
35
36
+ //nolint:gocritic // TODO(ldez) must be change in the future.
34
37
func (i ExtraLeadingSpace ) Details () string {
35
38
return fmt .Sprintf ("directive `%s` should not have more than one leading space" , i .fullDirective )
36
39
}
@@ -41,6 +44,7 @@ type NotMachine struct {
41
44
BaseIssue
42
45
}
43
46
47
+ //nolint:gocritic // TODO(ldez) must be change in the future.
44
48
func (i NotMachine ) Details () string {
45
49
expected := i .fullDirective [:2 ] + strings .TrimLeftFunc (i .fullDirective [2 :], unicode .IsSpace )
46
50
return fmt .Sprintf ("directive `%s` should be written without leading space as `%s`" ,
@@ -53,6 +57,7 @@ type NotSpecific struct {
53
57
BaseIssue
54
58
}
55
59
60
+ //nolint:gocritic // TODO(ldez) must be change in the future.
56
61
func (i NotSpecific ) Details () string {
57
62
return fmt .Sprintf ("directive `%s` should mention specific linter such as `%s:my-linter`" ,
58
63
i .fullDirective , i .directiveWithOptionalLeadingSpace )
@@ -64,6 +69,7 @@ type ParseError struct {
64
69
BaseIssue
65
70
}
66
71
72
+ //nolint:gocritic // TODO(ldez) must be change in the future.
67
73
func (i ParseError ) Details () string {
68
74
return fmt .Sprintf ("directive `%s` should match `%s[:<comma-separated-linters>] [// <explanation>]`" ,
69
75
i .fullDirective ,
@@ -77,6 +83,7 @@ type NoExplanation struct {
77
83
fullDirectiveWithoutExplanation string
78
84
}
79
85
86
+ //nolint:gocritic // TODO(ldez) must be change in the future.
80
87
func (i NoExplanation ) Details () string {
81
88
return fmt .Sprintf ("directive `%s` should provide explanation such as `%s // this is why`" ,
82
89
i .fullDirective , i .fullDirectiveWithoutExplanation )
@@ -89,6 +96,7 @@ type UnusedCandidate struct {
89
96
ExpectedLinter string
90
97
}
91
98
99
+ //nolint:gocritic // TODO(ldez) must be change in the future.
92
100
func (i UnusedCandidate ) Details () string {
93
101
details := fmt .Sprintf ("directive `%s` is unused" , i .fullDirective )
94
102
if i .ExpectedLinter != "" {
0 commit comments