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 06132f3 commit 4fc622cCopy full SHA for 4fc622c
pom.xml
@@ -470,6 +470,17 @@
470
<replacement>INVALID IMPORTS (GUAVA)</replacement>
471
</replaceRegex>
472
</format>
473
+ <!-- prevents empty SnakeYaml constructor -->
474
+ <format>
475
+ <includes>
476
+ <include>src/**/*.java</include>
477
+ </includes>
478
+ <replaceRegex>
479
+ <name>Forbids new Yaml()</name>
480
+ <searchRegex>^.*new Yaml\(\).*$</searchRegex>
481
+ <replacement>INVALID CONSTRUCTOR (SNAKEYAML)</replacement>
482
+ </replaceRegex>
483
+ </format>
484
</formats>
485
<java>
486
<removeUnusedImports /> <!-- self-explanatory -->
0 commit comments