Skip to content

Commit 6322b40

Browse files
Update number-methods.md
1 parent 857c028 commit 6322b40

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

docs/checks/number-methods.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
# code pal for ABAP
2-
31
[code pal for ABAP](../../README.md) > [Documentation](../check_documentation.md) > [Number of Methods Check](number-methods.md)
42

53
## Number of Methods Check
64

75
### What is the Intent of the Check?
86

9-
The "Number of Methods" Check counts the number of methods up to a maximum. If there are too many methods in a class, it is probable that the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle) is violated.
7+
This check counts the number of methods up to a maximum. If there are too many methods in a class, it is an indicator that the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle) is violated.
108

119
### How does the check work?
1210

13-
This check counts `METHODS` and `CLASS-METHODS` within a global or local, `CLASS DEFINITION` or `INTERFACE`. Inherited methods aren't counted, however `REDEFINED METHODS` increment the counter.
14-
15-
### Which attributes can be maintained?
16-
17-
![Attributes](./imgs/number_of_methods.png)
11+
This check counts `METHODS` and `CLASS-METHODS` within a global or local, `CLASS DEFINITION` or `INTERFACE`. Inherited methods are not counted, however `REDEFINED METHODS` increment the counter.
1812

1913
### How to solve the issue?
2014

2115
The solution is to split the class or interface into multiple classes or interfaces which then contain less methods.
2216

2317
### What to do in case of exception?
2418

25-
You can suppress Code Inspector findings generated by this check using the pseudo comment `"#EC NUMBER_METHODS`.
26-
The pseudo comment must be placed right after the class definition header.
19+
In exceptional cases, you can suppress this finding by using the pseudo comment `"#EC NUMBER_METHODS` which should be placed right after the class definition header:
2720

2821
```abap
2922
CLASS class_name DEFINITION. "#EC NUMBER_METHODS

0 commit comments

Comments
 (0)