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.

You should follow ObjectScript Package Naming Convention by using lowercase in package naming except for the class itself..

Detects when a method argument is passed by using Output modifier but is never assigned in the body of the method.

This either means that this argument does not need to be passed by output, or that the code forgets to assign a value to it.

While IRIS holds %ZEN package for backwards compatibility, it is not actively maintained and its use is discouraged by InterSystems.

The result of %Save() method should always be checked after it's called.

TODO tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.

Sometimes the developer will not have the time or will simply forget to get back to that tag.

This rule is meant to track those tags and to ensure that they do not go unnoticed.

FIXME tags are commonly used to mark places where a bug is suspected, but which the developer wants to deal with later.

Sometimes the developer will not have the time or will simply forget to get back to that tag.

This rule is meant to track those tags and to ensure that they do not go unnoticed.

The usage of $ZF(-2) is deprecated and should be used $ZF(-100) instead.

The usage of $ZF(-1) is deprecated and should be used $ZF(-100) instead.

The usage of $ZERROR is discouraged. You should use a TRY/CATCH block instead.

Pages