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

Rules for long Mulesoft implementations #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions src/test/resources/rules-4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
<rule id="1"
name="Configuration files should not have so many flows"
description="Configuration files should not have so many flows"
severity="MAJOR" type="code_smell">
not(count(//mule:mule/mule:flow)>=10)
severity="MINOR" type="code_smell">
not(count(//mule:mule/mule:flow)>=45)
</rule>
<rule id="2"
name="Configuration files should not have so many subflows"
description="Configuration files should not have so many subflows"
severity="MAJOR" type="code_smell">
not(count(//mule:mule/mule:sub-flow)>=5)
severity="MINOR" type="code_smell">
not(count(//mule:mule/mule:sub-flow)>=45)
</rule>
<rule id="3" name="Flows names should match a naming convention"
description="Flows names should match a naming convention"
Expand Down Expand Up @@ -97,7 +97,7 @@
</rule>
<rule id="7" name="HTTP Listener should use HTTPS protocol"
description="HTTP Listener should use HTTPS protocol"
severity="MAJOR" type="vulnerability"
severity="MINOR" type="vulnerability"
locationHint="//*[local-name()='listener-config']">
count(//mule:mule/http:listener-config)=0
or
Expand All @@ -106,7 +106,7 @@
<rule id="8"
name="HTTP Listener should use a specific port property"
description="HTTP Listener should use a specific port property"
severity="MAJOR" type="code_smell"
severity="MINOR" type="code_smell"
locationHint="//*[local-name()='listener-config']">
count(//mule:mule/http:listener-config)=0
or
Expand Down