Call to a method that belongs to a csp class is discouraged

objectscriptQuality release 
3.4.6
Id 
OS0105
Rule type 
Code Smell
Severity 

Info

Info
SQALE characteristic 
  • Reusability
    • Reusability Compliance
    • Modularity
  • Maintainability
    • Understandability
Tags 
coding-guidelines, design
Remediation function 
Constant/issue
Remediation cost 
30min

The call to methods in csp classes is discouraged.

The following code uses a csp class:

class Company.Project.SubPackage.TheClass
{
Method m()
{
 set ex=##class(csp.example).myCspMethod()
}
}     

In this case, the file example.csp contains a method myCspMethod which should not be called externally from the csp. Instead, you should create, for example, a utility class with methods that can be used by both the csp and other ObjectScript classes.