@@ -32,25 +32,26 @@ public static int runAndReturnExitCode(String[] args) throws IOException, Interr
32
32
33
33
List <MavenPackage > mavenPackages = mavenPackages (options );
34
34
ScipSemanticdbReporter reporter =
35
- new ScipSemanticdbReporter () {
36
- private boolean hasErrors = false ;
37
- @ Override
38
- public void error (Throwable e ) {
39
- e .printStackTrace (System .err );
40
- hasErrors = true ;
41
- }
35
+ new ScipSemanticdbReporter () {
36
+ private boolean hasErrors = false ;
42
37
43
- @ Override
44
- public void error (String message ) {
45
- System .err . println ( "ERROR[scip-semanticdb]: " + message );
46
- hasErrors = true ;
47
- }
38
+ @ Override
39
+ public void error (Throwable e ) {
40
+ e . printStackTrace ( System .err );
41
+ hasErrors = true ;
42
+ }
48
43
49
- @ Override
50
- public boolean hasErrors () {
51
- return this .hasErrors ;
52
- }
53
- };
44
+ @ Override
45
+ public void error (String message ) {
46
+ System .err .println ("ERROR[scip-semanticdb]: " + message );
47
+ hasErrors = true ;
48
+ }
49
+
50
+ @ Override
51
+ public boolean hasErrors () {
52
+ return this .hasErrors ;
53
+ }
54
+ };
54
55
ScipSemanticdbOptions scipOptions =
55
56
new ScipSemanticdbOptions (
56
57
options .targetroots ,
@@ -67,11 +68,11 @@ public boolean hasErrors() {
67
68
ScipSemanticdb .run (scipOptions );
68
69
69
70
if (!scipOptions .reporter .hasErrors ()) {
70
- System .out .println ("done: " + scipOptions .output );
71
- return 0 ;
71
+ System .out .println ("done: " + scipOptions .output );
72
+ return 0 ;
72
73
} else {
73
- System .out .println ("SCIP index generation failed" );
74
- return 1 ;
74
+ System .out .println ("SCIP index generation failed" );
75
+ return 1 ;
75
76
}
76
77
}
77
78
0 commit comments