code pal for ABAP > Documentation > Interface in Class Check
The Is Interface in Class check searches for public methods without an interface.
This check counts only DATA
and CLASS-DATA
within a global or local, CLASS DEFINITION
or INTERFACE
. Inherited attributes and all constants are not counted. A structure is counted as one attribute, no matter how many attributes are in the structure.
Make sure to implement an interface for the public methods.
You can suppress Code Inspector findings generated by this check using the pseudo comment "#EC INTF_IN_CLASS
.
The pseudo comment must be placed right after the PUBLIC SECTION
statement.
CLASS class_name DEFINITION.
PUBLIC SECTION. "#EC INTF_IN_CLASS
ENDCLASS.