@@ -379,19 +379,21 @@ Future<int> main(List<String> args) async {
379379 final WorkerJob jobNoFix = command.createLintJob (noFixOptions);
380380 expect (jobNoFix.command[0 ], endsWith ('../../buildtools/mac-x64/clang/bin/clang-tidy' ));
381381 expect (jobNoFix.command[1 ], endsWith (filePath.replaceAll ('/' , io.Platform .pathSeparator)));
382- expect (jobNoFix.command[2 ], '--' );
383- expect (jobNoFix.command[3 ], '' );
384- expect (jobNoFix.command[4 ], endsWith (filePath));
382+ expect (jobNoFix.command[2 ], '--warnings-as-errors=*' );
383+ expect (jobNoFix.command[3 ], '--' );
384+ expect (jobNoFix.command[4 ], '' );
385+ expect (jobNoFix.command[5 ], endsWith (filePath));
385386
386387 final Options fixOptions = Options (buildCommandsPath: io.File ('.' ), fix: true );
387388 final WorkerJob jobWithFix = command.createLintJob (fixOptions);
388389 expect (jobWithFix.command[0 ], endsWith ('../../buildtools/mac-x64/clang/bin/clang-tidy' ));
389390 expect (jobWithFix.command[1 ], endsWith (filePath.replaceAll ('/' , io.Platform .pathSeparator)));
390- expect (jobWithFix.command[2 ], '--fix' );
391- expect (jobWithFix.command[3 ], '--format-style=file' );
392- expect (jobWithFix.command[4 ], '--' );
393- expect (jobWithFix.command[5 ], '' );
394- expect (jobWithFix.command[6 ], endsWith (filePath));
391+ expect (jobWithFix.command[2 ], '--warnings-as-errors=*' );
392+ expect (jobWithFix.command[3 ], '--fix' );
393+ expect (jobWithFix.command[4 ], '--format-style=file' );
394+ expect (jobWithFix.command[5 ], '--' );
395+ expect (jobWithFix.command[6 ], '' );
396+ expect (jobWithFix.command[7 ], endsWith (filePath));
395397 });
396398
397399 test ('Command getLintAction flags third_party files' , () async {
0 commit comments