Skip to content

Commit 758bbe0

Browse files
committed
All inspections which produce LIKE_UNUSED_SYMBOL highlightin reports shouldn't have WEAK WARNING level
1 parent 5c9cc92 commit 758bbe0

12 files changed

+14
-14
lines changed

resources/META-INF/plugin.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@
203203
groupName="Declaration redundancy" enabledByDefault="true" level="WARNING"
204204
implementationClass="com.goide.inspections.GoEmptyDeclarationInspection" cleanupTool="true"/>
205205
<localInspection language="go" displayName="Redundant second index in slices inspection" groupPath="Go"
206-
groupName="Declaration redundancy" enabledByDefault="true" level="WEAK WARNING"
206+
groupName="Declaration redundancy" enabledByDefault="true" level="WARNING"
207207
implementationClass="com.goide.inspections.GoRedundantSecondIndexInSlicesInspection"/>
208208
<localInspection language="go" displayName="Redundant blank argument in range inspection" groupPath="Go"
209-
groupName="Declaration redundancy" enabledByDefault="true" level="WEAK WARNING"
209+
groupName="Declaration redundancy" enabledByDefault="true" level="WARNING"
210210
implementationClass="com.goide.inspections.GoRedundantBlankArgInRangeInspection"/>
211211
<localInspection language="go" displayName="Redundant type declaration in composite literals" groupPath="Go"
212-
groupName="Declaration redundancy" enabledByDefault="true" level="WEAK WARNING"
212+
groupName="Declaration redundancy" enabledByDefault="true" level="WARNING"
213213
implementationClass="com.goide.inspections.GoRedundantTypeDeclInCompositeLit"/>
214214
<!-- /unused inspections -->
215215

testData/inspections/go-simplify/compositeLitWithArrays.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type T struct {
55
}
66

77
var _ = [42]T{
8-
10: <weak_warning descr="Redundant type declaration">T<caret></weak_warning>{1,2},
8+
10: <warning descr="Redundant type declaration">T<caret></warning>{1,2},
99
}
1010

1111
func main (){

testData/inspections/go-simplify/compositeLitWithKeysAndSimpleRedundantTypeDecl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type T struct {
55
}
66

77
var _ = [42]T{
8-
10: <weak_warning descr="Redundant type declaration">T<caret></weak_warning>{1,2},
8+
10: <warning descr="Redundant type declaration">T<caret></warning>{1,2},
99
}
1010

1111
func main (){

testData/inspections/go-simplify/compositeLitWithMap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type T struct {
55
}
66

77
var _ = map[string]T{
8-
"foo": <weak_warning descr="Redundant type declaration">T<caret></weak_warning>{},
8+
"foo": <warning descr="Redundant type declaration">T<caret></warning>{},
99
}
1010

1111
func main (){

testData/inspections/go-simplify/compositeLitWithOneSimpleRedundantTypeDecl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type T struct {
55
}
66

77
var _ = [42]T{
8-
<weak_warning descr="Redundant type declaration">T<caret></weak_warning>{},
8+
<warning descr="Redundant type declaration">T<caret></warning>{},
99
}
1010

1111
func main (){

testData/inspections/go-simplify/compositeLitWithPointers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type T struct {
55
}
66

77
var _ = []*T{
8-
<weak_warning descr="Redundant type declaration">&T<caret></weak_warning>{1, 2},
8+
<warning descr="Redundant type declaration">&T<caret></warning>{1, 2},
99
}
1010

1111
func main (){

testData/inspections/go-simplify/rangeSimplifyWithOneBlankArg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func _() {
44

55
var x []int
66

7-
for <weak_warning descr="Redundant '_' expression">_ =<caret> </weak_warning>range x {
7+
for <warning descr="Redundant '_' expression">_ =<caret> </warning>range x {
88

99
}
1010
}

testData/inspections/go-simplify/rangeSimplifyWithOneNotBlankAndOneBlankArgs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func _() {
44

55
var x []int
66

7-
for a<weak_warning descr="Redundant '_' expression">, _<caret></weak_warning> = range x {
7+
for a<warning descr="Redundant '_' expression">, _<caret></warning> = range x {
88

99
}
1010
}

testData/inspections/go-simplify/rangeSimplifyWithTwoBlankArgs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func _() {
44

55
var x []int
66

7-
for <weak_warning descr="Redundant '_' expression">_, _ =<caret> </weak_warning>range x {
7+
for <warning descr="Redundant '_' expression">_, _ =<caret> </warning>range x {
88

99
}
1010
}

testData/inspections/go-simplify/rangeSimplifyWithVarAssign.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ func _() {
44

55
var x []int
66

7-
for a<weak_warning descr="Redundant '_' expression">, _<caret></weak_warning> := range x {
7+
for a<warning descr="Redundant '_' expression">, _<caret></warning> := range x {
88

99
}
1010
}

testData/inspections/go-simplify/slice.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var (
88
s byte
99
}
1010

11-
_ = a[0: <weak_warning descr="Redundant index">len(a)<caret></weak_warning>]
11+
_ = a[0: <warning descr="Redundant index">len(a)<caret></warning>]
1212
)
1313

1414
func main (){

testData/inspections/go-simplify/sliceWithOnlySecondIndex.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
var (
44
a [10]byte
55

6-
_ = a[: <weak_warning descr="Redundant index">len(a)<caret></weak_warning>]
6+
_ = a[: <warning descr="Redundant index">len(a)<caret></warning>]
77
)
88

99
func main (){

0 commit comments

Comments
 (0)