Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.1 KB

comment-usage.md

File metadata and controls

29 lines (15 loc) · 1.1 KB

code pal for ABAP

code pal for ABAP > Documentation > Comment Usage Check

Comment Usage Check

What is the Intent of the Check?

The “Comment Usage” Check is part of the Clean Code Check Repository. Express yourself in code, not in comments. Clean Code does not forbid you to comment your code - it encourages you to exploit better means, and resort to comments only if that fails.

How does the check work?

This check calculates the percentage of comments in relation to the absolute number of statements (productive code).

Which attributes can be maintained?

Attributes

How to solve the issue?

Remove unimportant comments.

What to do in case of exception?

There should be no exception as the check works as an indication. Thus, it is also not possible to suppress Code Inspector findings from this check.

Further Readings & Knowledge