You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- report each element with null key instead of literal
- handle case with literal as slice element value
- made GoPsiImplUtil#getByIndex public
- some extra checks and refactoring
Copy file name to clipboardExpand all lines: testData/inspections/struct-initialization/anonField.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,5 +7,5 @@ type S struct {
7
7
}
8
8
funcmain() {
9
9
varsS
10
-
s=S<weak_warningdescr="Unnamed field initializations">{<caret>"X", "a", Y: 1}</weak_warning>
10
+
s=S{<caret><weak_warningdescr="Unnamed field initializations">"X"</weak_warning>, <weak_warningdescr="Unnamed field initializations">"a"</weak_warning>, Y: 1}
Copy file name to clipboardExpand all lines: testData/inspections/struct-initialization/exceedElementsCountOnlyUnnamed.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,5 +4,5 @@ type S struct {
4
4
X, Yint
5
5
}
6
6
funcmain() {
7
-
s:=S<weak_warningdescr="Unnamed field initializations">{<caret>1, 0, 2}</weak_warning>
7
+
s:=S{<weak_warningdescr="Unnamed field initializations"><caret>1</weak_warning>, <weak_warningdescr="Unnamed field initializations">0</weak_warning>, <weak_warningdescr="Unnamed field initializations">2</weak_warning>}
Copy file name to clipboardExpand all lines: testData/inspections/struct-initialization/innerAnonStruct.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,6 @@ func main() {
11
11
Zint
12
12
}
13
13
14
-
s:=S<weak_warningdescr="Unnamed field initializations">{1<caret>, B{Y: 2}, 3}</weak_warning>
14
+
s:=S{<weak_warningdescr="Unnamed field initializations">1<caret></weak_warning>, <weak_warningdescr="Unnamed field initializations">B{Y: 2}</weak_warning>, <weak_warningdescr="Unnamed field initializations">3</weak_warning>}
Copy file name to clipboardExpand all lines: testData/inspections/struct-initialization/innerStruct.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,6 @@ func main() {
11
11
Zint
12
12
}
13
13
14
-
s:=S<weak_warningdescr="Unnamed field initializations">{1<caret>, B{Y: 2}}</weak_warning>
14
+
s:=S{<weak_warningdescr="Unnamed field initializations">1<caret></weak_warning>, <weak_warningdescr="Unnamed field initializations">B{Y: 2}</weak_warning>}
0 commit comments