@@ -644,11 +644,13 @@ public static void main(String[] args) throws Exception {
644
644
infoTypesOption .setArgs (Option .UNLIMITED_VALUES );
645
645
commandLineOptions .addOption (infoTypesOption );
646
646
647
- Option customDictionariesOption = Option .builder ("customDictionaries" ).hasArg (true ).required (false ).build ();
647
+ Option customDictionariesOption =
648
+ Option .builder ("customDictionaries" ).hasArg (true ).required (false ).build ();
648
649
customDictionariesOption .setArgs (Option .UNLIMITED_VALUES );
649
650
commandLineOptions .addOption (customDictionariesOption );
650
651
651
- Option customRegexesOption = Option .builder ("customRegexes" ).hasArg (true ).required (false ).build ();
652
+ Option customRegexesOption =
653
+ Option .builder ("customRegexes" ).hasArg (true ).required (false ).build ();
652
654
customRegexesOption .setArgs (Option .UNLIMITED_VALUES );
653
655
commandLineOptions .addOption (customRegexesOption );
654
656
@@ -727,11 +729,15 @@ public static void main(String[] args) throws Exception {
727
729
CustomInfoType customInfoType =
728
730
CustomInfoType
729
731
.newBuilder ()
730
- .setInfoType (InfoType .newBuilder ().setName (String .format ("CUSTOM_DICTIONARY_%s" , i )))
732
+ .setInfoType (
733
+ InfoType .newBuilder ().setName (String .format ("CUSTOM_DICTIONARY_%s" , i )))
731
734
.setDictionary (
732
735
Dictionary
733
736
.newBuilder ()
734
- .setWordList (WordList .newBuilder ().addAllWords (Arrays .<String >asList (dictionaryWords ))))
737
+ .setWordList (
738
+ WordList
739
+ .newBuilder ()
740
+ .addAllWords (Arrays .<String >asList (dictionaryWords ))))
735
741
.build ();
736
742
customInfoTypesList .add (customInfoType );
737
743
}
@@ -752,10 +758,24 @@ public static void main(String[] args) throws Exception {
752
758
// string inspection
753
759
if (cmd .hasOption ("s" )) {
754
760
String val = cmd .getOptionValue (stringOption .getOpt ());
755
- inspectString (val , minLikelihood , maxFindings , infoTypesList , customInfoTypesList , includeQuote , projectId );
761
+ inspectString (
762
+ val ,
763
+ minLikelihood ,
764
+ maxFindings ,
765
+ infoTypesList ,
766
+ customInfoTypesList ,
767
+ includeQuote ,
768
+ projectId );
756
769
} else if (cmd .hasOption ("f" )) {
757
770
String filePath = cmd .getOptionValue (fileOption .getOpt ());
758
- inspectFile (filePath , minLikelihood , maxFindings , infoTypesList , customInfoTypesList , includeQuote , projectId );
771
+ inspectFile (
772
+ filePath ,
773
+ minLikelihood ,
774
+ maxFindings ,
775
+ infoTypesList ,
776
+ customInfoTypesList ,
777
+ includeQuote ,
778
+ projectId );
759
779
// gcs file inspection
760
780
} else if (cmd .hasOption ("gcs" )) {
761
781
String bucketName = cmd .getOptionValue (bucketNameOption .getOpt ());
0 commit comments