You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/checks/interface-in-class.md
+2-9Lines changed: 2 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,22 @@
1
-
# code pal for ABAP
2
-
3
1
[code pal for ABAP](../../README.md) > [Documentation](../check_documentation.md) > [Interface in Class Check](interface-in-class.md)
4
2
5
3
## Interface Missing Check
6
4
7
5
### What is the Intent of the Check?
8
6
9
-
The "Interface Missing" (is interface in class?) check searches for public methods without an interface.
7
+
This check searches for classes having public methods without an interface.
10
8
11
9
### How does the check work?
12
10
13
11
Since every class having at least one public method should implement an interface, this check searches for public methods within a class without having an associated interface (being implemented).
14
12
15
-
### Which attributes can be maintained?
16
-
17
-

18
-
19
13
### How to solve the issue?
20
14
21
15
Make sure to implement an interface for the public methods. Even though this seems to be unnecessary in some cases, having an interface will easily allow mocking data in the future.
22
16
23
17
### What to do in case of exception?
24
18
25
-
You can suppress Code Inspector findings generated by this check using the pseudo comment `"#EC INTF_IN_CLASS`.
26
-
The pseudo comment must be placed right after the `PUBLIC SECTION` statement.
19
+
In exceptional cases, you can suppress this finding by using the pseudo comment `"#EC INTF_IN_CLASS` which should be placed right after the `PUBLIC SECTION` statement:
0 commit comments