Skip to content

Commit 69d8d09

Browse files
authored
Fix line length violations
1 parent 541920c commit 69d8d09

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

dlp/src/main/java/com/example/dlp/Inspect.java

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,13 @@ public static void main(String[] args) throws Exception {
644644
infoTypesOption.setArgs(Option.UNLIMITED_VALUES);
645645
commandLineOptions.addOption(infoTypesOption);
646646

647-
Option customDictionariesOption = Option.builder("customDictionaries").hasArg(true).required(false).build();
647+
Option customDictionariesOption =
648+
Option.builder("customDictionaries").hasArg(true).required(false).build();
648649
customDictionariesOption.setArgs(Option.UNLIMITED_VALUES);
649650
commandLineOptions.addOption(customDictionariesOption);
650651

651-
Option customRegexesOption = Option.builder("customRegexes").hasArg(true).required(false).build();
652+
Option customRegexesOption =
653+
Option.builder("customRegexes").hasArg(true).required(false).build();
652654
customRegexesOption.setArgs(Option.UNLIMITED_VALUES);
653655
commandLineOptions.addOption(customRegexesOption);
654656

@@ -727,11 +729,15 @@ public static void main(String[] args) throws Exception {
727729
CustomInfoType customInfoType =
728730
CustomInfoType
729731
.newBuilder()
730-
.setInfoType(InfoType.newBuilder().setName(String.format("CUSTOM_DICTIONARY_%s", i)))
732+
.setInfoType(
733+
InfoType.newBuilder().setName(String.format("CUSTOM_DICTIONARY_%s", i)))
731734
.setDictionary(
732735
Dictionary
733736
.newBuilder()
734-
.setWordList(WordList.newBuilder().addAllWords(Arrays.<String>asList(dictionaryWords))))
737+
.setWordList(
738+
WordList
739+
.newBuilder()
740+
.addAllWords(Arrays.<String>asList(dictionaryWords))))
735741
.build();
736742
customInfoTypesList.add(customInfoType);
737743
}
@@ -752,10 +758,24 @@ public static void main(String[] args) throws Exception {
752758
// string inspection
753759
if (cmd.hasOption("s")) {
754760
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);
756769
} else if (cmd.hasOption("f")) {
757770
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);
759779
// gcs file inspection
760780
} else if (cmd.hasOption("gcs")) {
761781
String bucketName = cmd.getOptionValue(bucketNameOption.getOpt());

0 commit comments

Comments
 (0)