We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4057a commit 107a7fcCopy full SHA for 107a7fc
pom.xml
@@ -468,6 +468,17 @@
468
<replacement>INVALID IMPORTS (GUAVA)</replacement>
469
</replaceRegex>
470
</format>
471
+ <!-- prevents empty SnakeYaml constructor -->
472
+ <format>
473
+ <includes>
474
+ <include>src/**/*.java</include>
475
+ </includes>
476
+ <replaceRegex>
477
+ <name>Forbids new Yaml()</name>
478
+ <searchRegex>^.*new Yaml\(\).*$</searchRegex>
479
+ <replacement>INVALID CONSTRUCTOR (SNAKEYAML)</replacement>
480
+ </replaceRegex>
481
+ </format>
482
</formats>
483
<java>
484
<removeUnusedImports /> <!-- self-explanatory -->
0 commit comments