mwittrock / cpilint

Automating your SAP Cloud Integration governance since 2019.
MIT License
58 stars 20 forks source link

Added new rule for IFlow name checks #8

Closed codebude closed 1 year ago

codebude commented 5 years ago

This merge request contains a new rule that allows to check an IFlow's name against a Regex pattern. Feel free to merge it. If you want me to change something, let me know. Feedback is appreciated.

codebude commented 5 years ago

A valid rule could look like:

<?xml version="1.0"?>
<cpilint>
  <rules>       
    <iflow-matches-name>
      <naming-pattern>PR[0-9]{3}_IF[0-9]{3}_.+?_(to|TO)_.+?_.+</naming-pattern>
    </iflow-matches-name>
  </rules>
</cpilint>

The factory class checks for exisitence of all necessary tags in the rules.xml as also if the given Regex is valid.

mwittrock commented 1 year ago

A general naming rule was introduced in CPILint 1.0.4.