Case/Regex for naming convention. To accept prefixes like "out_", "in_", and "dt_"

Hi!,
I am trying to clean-up my project right now, after executing the workflow analyzer. I noticed that it keeps on giving me an STG-NMG-001 Error for my variables. I am sure I set it the same as the Pascal Case(I name them like “JsonResponse”, “SourceFileLocation”, “IsElementExists”) Also, I have a lot of datatables on retrieve varaibles from config that has prefixes like. "dt_Sales, dt_Accounts, “Path_SourceFile”). Right now, my Regex on STG_NMG-001 is set to ([A-Z]|[0-9])+([A-Z]|[a-z]|[0-9]) . I hope you can help me with this. Thank you.

Hi,

Recent STG-NMG-001 default pattern is ^(dt_)?([A-Z]|[a-z])+([0-9])*$.
How about the following which is added some prefixes?

^(dt_|out_|in_|Path_)?([A-Z]|[a-z])+([0-9])*$

Regards,

Thank you very much! I forgot to add some other items like “DT_” so I just added on the part, thankfully it worked. Thanks for the help.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.