public void run ( ) { boolean validation_fail = false ; boolean arg_seen = true ; for ( String file : files ) { final Report v = new Report ( new File ( file ) . getAbsoluteFile ( ) , recursive ) ; if ( v . hasErrors ( ) ) validation_fail = true ; if ( arg_seen ) { arg_seen = false ; } else { System . out . println ( Stream . generate ( ( ) -> "-" ) . limit ( 72 ) . collect ( Collectors . joining ( ) ) ) ; } System . out . print ( v . configString ( ) . filter ( ( x ) - > print ) . orElseGet ( ( ) -> v . toString ( ) ) ) ; } if ( validation_fail ) System . exit ( EX_TEMPFAIL ) ; }
Perform validation .