Skip to content

Commit

Permalink
[WINDUP-3420] Remove YAML matching from rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jmle committed Aug 11, 2023
1 parent 0b61983 commit b75b9be
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</rule>
<rule id="configuration-management-0200">
<when>
<file filename="application{profile}.{extension}" />
<file filename="application{profile}.properties" />
</when>
<perform>
<classification title="Application properties file detected" category-id="information" effort="0">
Expand All @@ -40,13 +40,10 @@
<where param="profile">
<matches pattern=".*" />
</where>
<where param="extension">
<matches pattern="(properties|yml|yaml)" />
</where>
</rule>
<rule id="configuration-management-0300">
<when>
<filecontent filename="application{profile}.{extension}" pattern="spring.datasource" />
<filecontent filename="application{profile}.properties" pattern="spring.datasource" />
</when>
<perform>
<classification title="Spring datasource properties detected" category-id="information" effort="0">
Expand All @@ -57,9 +54,6 @@
<where param="profile">
<matches pattern=".*" />
</where>
<where param="extension">
<matches pattern="(properties|yml|yaml)" />
</where>
</rule>
<rule id="configuration-management-0400">
<when>
Expand All @@ -75,7 +69,7 @@
<matches pattern=".*" />
</where>
<where param="extension">
<matches pattern="(properties|yml|yaml)" />
<matches pattern="properties" />
</where>
</rule>
<rule id="configuration-management-0500">
Expand Down

0 comments on commit b75b9be

Please sign in to comment.