Skip to content

Commit ed128ce

Browse files
g-backlarshp
authored andcommitted
Add rudimentary description to empty docs (#882)
1 parent 9667f7c commit ed128ce

File tree

5 files changed

+70
-8
lines changed

5 files changed

+70
-8
lines changed

docs/_checks/41.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ cNumber: CHECK_41
44
rfc: true
55
---
66

7-
todo
7+
Checks for empty lines and comment lines inside of statements.
8+
9+
Examples:
10+
11+
```abap
12+
READ TABLE lt_table
13+
14+
INDEX 1 INTO ls_table.
15+
```
16+
17+
```abap
18+
READ TABLE lt_table
19+
" read index 1
20+
INDEX 1 INTO ls_table.
21+
```
22+
823

924
### Configuration
1025
![Configuration](/img/41_conf.png)

docs/_checks/42.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ cNumber: CHECK_42
44
rfc: true
55
---
66

7-
todo
7+
Checks for identical WHEN-Blocks.
8+
9+
Example:
10+
11+
```abap
12+
CASE lv_foo.
13+
WHEN 1.
14+
WRITE lv_bar.
15+
WHEN 2.
16+
WRITE lv_bar. " <- identical to WHEN 1
17+
ENDCASE.
18+
```
819

920
### Configuration
1021
![Configuration](/img/default_conf.png)

docs/_checks/78.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,17 @@ rfc: true
55
---
66

77
### EC CI_SUBRC can be removed
8-
todo
8+
9+
If the SUBRC is checked, the pseudo comment 'EC CI_SUBRC' can be removed.
10+
11+
Example:
12+
13+
```abap
14+
SELECT * FROM TADIR. "#EC CI_SUBRC <- can be removed, since SUBRC is checked afterwards
15+
IF sy-subrc = 0.
16+
..
17+
ENDIF.
18+
```
19+
20+
## Configuration
21+
![Configuration](/img/default_conf.png)

docs/_checks/79.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ rfc: true
55
---
66

77
### CLEAR as first use of variable
8-
todo
98

10-
Only works for local variables in global classes.
9+
Checks if a variable is cleared in it's first usage after it has been defined.
10+
11+
Note: Only works for local variables in global classes.
12+
13+
Example:
14+
15+
```abap
16+
..
17+
METHOD foobar.
18+
19+
DATA lv_index TYPE i.
20+
CLEAR lv_index.
21+
..
22+
23+
ENDMETHOD.
24+
..
25+
```
26+
27+
## Configuration
28+
![Configuration](/img/default_conf.png)

docs/_checks/80.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ cNumber: CHECK_80
44
rfc: true
55
---
66

7-
### Space before colon
8-
todo
7+
### Spaces before colon
98

10-
[https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#condense-your-code](https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#condense-your-code)
9+
Checks for spaces before colons.
10+
11+
See also
12+
[https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#condense-your-code](https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#condense-your-code) for reference.
13+
14+
## Configuration
15+
![Configuration](/img/default_conf.png)

0 commit comments

Comments
 (0)