Skip to content

Commit

Permalink
Add rudimentary description to empty docs (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-back authored and larshp committed Nov 15, 2019
1 parent 9667f7c commit ed128ce
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 8 deletions.
17 changes: 16 additions & 1 deletion docs/_checks/41.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,22 @@ cNumber: CHECK_41
rfc: true
---

todo
Checks for empty lines and comment lines inside of statements.

Examples:

```abap
READ TABLE lt_table
INDEX 1 INTO ls_table.
```

```abap
READ TABLE lt_table
" read index 1
INDEX 1 INTO ls_table.
```


### Configuration
![Configuration](/img/41_conf.png)
13 changes: 12 additions & 1 deletion docs/_checks/42.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ cNumber: CHECK_42
rfc: true
---

todo
Checks for identical WHEN-Blocks.

Example:

```abap
CASE lv_foo.
WHEN 1.
WRITE lv_bar.
WHEN 2.
WRITE lv_bar. " <- identical to WHEN 1
ENDCASE.
```

### Configuration
![Configuration](/img/default_conf.png)
15 changes: 14 additions & 1 deletion docs/_checks/78.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@ rfc: true
---

### EC CI_SUBRC can be removed
todo

If the SUBRC is checked, the pseudo comment 'EC CI_SUBRC' can be removed.

Example:

```abap
SELECT * FROM TADIR. "#EC CI_SUBRC <- can be removed, since SUBRC is checked afterwards
IF sy-subrc = 0.
..
ENDIF.
```

## Configuration
![Configuration](/img/default_conf.png)
22 changes: 20 additions & 2 deletions docs/_checks/79.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ rfc: true
---

### CLEAR as first use of variable
todo

Only works for local variables in global classes.
Checks if a variable is cleared in it's first usage after it has been defined.

Note: Only works for local variables in global classes.

Example:

```abap
..
METHOD foobar.
DATA lv_index TYPE i.
CLEAR lv_index.
..
ENDMETHOD.
..
```

## Configuration
![Configuration](/img/default_conf.png)
11 changes: 8 additions & 3 deletions docs/_checks/80.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ cNumber: CHECK_80
rfc: true
---

### Space before colon
todo
### Spaces before colon

[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)
Checks for spaces before colons.

See also
[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.

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

0 comments on commit ed128ce

Please sign in to comment.