Changed Default Regex for Variable & Arguments Naming Convention Rules
Two rules of the Workflow Analyzer were updated with better default Regex expression values:
Couple of things to keep in mind:
- If you previously edited these values, you will keep your values after update.
- Fresh Studio installations will get the new default values
Observed Behavior
Auto-update of Studio Community Edition from 2019.10 to 2019.12 does not update the following default Workflow Analyzer rules.
ST-NMG-01: Variables Naming Convention
Before update:
([a-z]|[A-Z])([0-9])+_([a-z]|[A-Z])([0-9])+
After update:
^([A-Z]|[a-z])+([0-9])*$
ST-NMG-02: Arguments Naming Convention
Before update:
in_([a-z]|[A-Z]|[0-9])+_([a-z]|[A-Z]|[0-9])+
out_([a-z]|[A-Z]|[0-9])+_([a-z]|[A-Z]|[0-9])+
io_([a-z]|[A-Z]|[0-9])+_([a-z]|[A-Z]|[0-9])+
After update:
^in_([A-Z]|[a-z])+([0-9])*$
^out_([A-Z]|[a-z])+([0-9])*$
^io_([A-Z]|[a-z])+([0-9])*$
Solution:
To continue using these rules with the new default Regex expression, modify them manually via your Workflow Analyzer Settings:
However, if you’re already using your own defined Regex expressions, there’s no need to fallback to the new defaults.