fix exit status for assert-tidy/untidy options
authorJi-Hyeon Gim <potatogim@potatogim.net>
Thu, 29 Oct 2020 04:56:08 +0000 (13:56 +0900)
committerJi-Hyeon Gim <potatogim@potatogim.net>
Thu, 29 Oct 2020 04:56:08 +0000 (13:56 +0900)
Signed-off-by: Ji-Hyeon Gim <potatogim@potatogim.net>
lib/Perl/Tidy.pm

index a34099142864018bb0856eb5f034c9a72993a91a..adc885943f7e435bb250967153561da4369fe6e3 100644 (file)
@@ -1528,6 +1528,7 @@ EOM
                     $logger_object->interrupt_logfile();
                     $logger_object->warning( $diff_msg . "\n" );
                     $logger_object->resume_logfile();
+                    $Warn_count++;
                 }
             }
             if ( $rOpts->{'assert-untidy'} ) {
@@ -1536,6 +1537,7 @@ EOM
                     $logger_object->warning(
 "assertion failure: '--assert-untidy' is set but output equals input\n"
                     );
+                    $Warn_count++;
                 }
             }