Methods failing to return a result on all code paths
objectscriptQuality release
Id
OS0006
Rule type
Bug
Severity
Blocker
Blocker
SQALE characteristic
- Reliability
- Fault tolerance
Remediation function
Constant/issue
Remediation cost
1d
This check ensures that if a method or class method is declared to return a value, such as in:
Method foo() As %String { // code here }
then all code paths eventually either return a value of throw an exception.
Limitations: macros
ObjectScript allows to use macros as statements. But macros are not expanded. It is therefore the choice of the plugin user as to whether to consider macros as violating this rule.
See the project configuration for more details. Note that you must have enough privileges to change this setting.