No rule selected
G-7170 – Avoid using an IN OUT parameter as IN or OUT only.
Avoid using parameter mode `in out` unless you actually use the parameter both as input and output. If the code body only reads from the parameter, use `in`; if the code body only assigns to the parameter, use `out`. If at the beginning of a project you expect a parameter to be both input and output and therefore choose `in out` just in case, but later development shows the parameter actually is only `in` or `out`, you should change the parameter mode accordingly.
Tags: Stored Object, Performance.
Quality area: Reliability. Severity: Major. Fixing time: Local-medium.
Press p or n to quickly navigate to the previous/next rule.
