Skip to content

Commit

Permalink
[WINDUP-3420] Remove YAML matching from rules (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmle authored Aug 16, 2023
1 parent 261e0be commit 88e8d39
Showing 1 changed file with 3 additions and 12 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,13 +54,10 @@
<where param="profile">
<matches pattern=".*" />
</where>
<where param="extension">
<matches pattern="(properties|yml|yaml)" />
</where>
</rule>
<rule id="configuration-management-0400">
<when>
<filecontent filename="application{profile}.{extension}" pattern="logging.level.org.springframework" />
<filecontent filename="application{profile}.properties" pattern="logging.level.org.springframework" />
</when>
<perform>
<classification title="Spring logging properties detected" category-id="information" effort="0">
Expand All @@ -74,9 +68,6 @@
<where param="profile">
<matches pattern=".*" />
</where>
<where param="extension">
<matches pattern="(properties|yml|yaml)" />
</where>
</rule>
<rule id="configuration-management-0500">
<when>
Expand Down

0 comments on commit 88e8d39

Please sign in to comment.