AI Mentor - Detect hard coded values
460
Views
2
Comments
New
Architecture & Governance 

One of the worst problems is when literals are hard coded. It is really bad for maintainability, you have to change them one by one and you can never know if you have changed them all.

I would like it if there was a way to have an overview of all the places where hard coded strings are used for coding. For example if a text is used in an if-statement or together with an '=' mark it as a finding.

Agree, if only we have a nice and easy way to define constants... like any other traditional language.

Yes, hard coded values should be classified into both Security and maintainability category in AI mentor studio as it does not adhere to best practices.
Also, I agree with Daniel about a way to define constants in OutSystems.