-
Type:
Finding Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:None
-
Message:The regular expression matches this comment.
-
List of parameters:
-
Default Severity:Major
-
Impact:Low
-
Likelihood:High
-
Template Rule:Yes
-
Legacy Key:comment-regular-expression, CommentRegularExpression, CommentRegularExpressionCheckPlSql
-
Targeted languages:C#, C++, Objective-C, VB.Net
-
Covered Languages:C, Cobol, Flex, Java, JavaScript, PL/I, PL/SQL, Python
-
Analysis Level:Syntactic Analysis
-
Common Rule:Yes
This rule template can be used to create rules which will be triggered when a comment matches a given regular expression.
For example, one can create a rule with the regular expression .REVIEW. to match all comment containing "REVIEW".
Note that, in order to match REVIEW regardless of the case, the (?i) modifier should be prepended to the expression, as in (?i).REVIEW..
- is implemented by
-
CPP-63 Rule: Regular expression on comment
-
- Closed
-
-
SONARCOBOL-1534 Rule S124: Track comments matching a regular expression
-
- Closed
-
-
SONARJAVA-1350 Rule S124: Comments matching a regular expression should be handled
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
- is related to
-
SUPPORT-4859 Loading...
-
SUPPORT-9567 Loading...
- links to
1.
|
RPG | RSPEC-2034 |
|
Active | Unassigned | |
2.
|
JavaScript | RSPEC-4295 |
|
Active | Unassigned | |
3.
|
C-Family | RSPEC-4355 |
|
Active | Unassigned | |
4.
|
PL/SQL | RSPEC-4393 |
|
Active | Unassigned | |
5.
|
Python | RSPEC-4401 |
|
Active | Unassigned | |
6.
|
Java | RSPEC-4616 |
|
Active | Unassigned | |
7.
|
Cobol | RSPEC-5051 |
|
Active | Unassigned |