@@ -21,9 +21,9 @@ func TestOutput_lineNumber(t *testing.T) {
2121 testshared .NewRunnerBuilder (t ).
2222 WithArgs (
2323 "--disable-all" ,
24- "--print-issued-lines=false" ,
25- "--print-linter-name=false" ,
26- "--out-format=line-number " ,
24+ "--output.text. print-issued-lines=false" ,
25+ "--output.text. print-linter-name=false" ,
26+ "--output.text.path=stdout " ,
2727 ).
2828 WithDirectives (sourcePath ).
2929 WithTargetPath (sourcePath ).
@@ -40,9 +40,7 @@ func TestOutput_Stderr(t *testing.T) {
4040 testshared .NewRunnerBuilder (t ).
4141 WithArgs (
4242 "--disable-all" ,
43- "--print-issued-lines=false" ,
44- "--print-linter-name=false" ,
45- "--out-format=json:stderr" ,
43+ "--output.json.path=stderr" ,
4644 ).
4745 WithDirectives (sourcePath ).
4846 WithTargetPath (sourcePath ).
@@ -60,9 +58,7 @@ func TestOutput_File(t *testing.T) {
6058 testshared .NewRunnerBuilder (t ).
6159 WithArgs (
6260 "--disable-all" ,
63- "--print-issued-lines=false" ,
64- "--print-linter-name=false" ,
65- fmt .Sprintf ("--out-format=json:%s" , resultPath ),
61+ fmt .Sprintf ("--output.json.path=%s" , resultPath ),
6662 ).
6763 WithDirectives (sourcePath ).
6864 WithTargetPath (sourcePath ).
@@ -82,9 +78,10 @@ func TestOutput_Multiple(t *testing.T) {
8278 testshared .NewRunnerBuilder (t ).
8379 WithArgs (
8480 "--disable-all" ,
85- "--print-issued-lines=false" ,
86- "--print-linter-name=false" ,
87- "--out-format=line-number,json:stdout" ,
81+ "--output.text.print-issued-lines=false" ,
82+ "--output.text.print-linter-name=false" ,
83+ "--output.text.path=stdout" ,
84+ "--output.json.path=stdout" ,
8885 ).
8986 WithDirectives (sourcePath ).
9087 WithTargetPath (sourcePath ).
0 commit comments