Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WINDUP-3420] Remove YAML matching from rules #1018

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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