File tree Expand file tree Collapse file tree 5 files changed +70
-8
lines changed Expand file tree Collapse file tree 5 files changed +70
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,22 @@ cNumber: CHECK_41
4
4
rfc : true
5
5
---
6
6
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
+
8
23
9
24
### Configuration
10
25
![ Configuration] ( /img/41_conf.png )
Original file line number Diff line number Diff line change @@ -4,7 +4,18 @@ cNumber: CHECK_42
4
4
rfc : true
5
5
---
6
6
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
+ ```
8
19
9
20
### Configuration
10
21
![ Configuration] ( /img/default_conf.png )
Original file line number Diff line number Diff line change @@ -5,4 +5,17 @@ rfc: true
5
5
---
6
6
7
7
### 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 )
Original file line number Diff line number Diff line change @@ -5,6 +5,24 @@ rfc: true
5
5
---
6
6
7
7
### CLEAR as first use of variable
8
- todo
9
8
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 )
Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ cNumber: CHECK_80
4
4
rfc : true
5
5
---
6
6
7
- ### Space before colon
8
- todo
7
+ ### Spaces before colon
9
8
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 )
You can’t perform that action at this time.
0 commit comments