mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
- added problem descriptions
This commit is contained in:
parent
21fa408633
commit
b179923338
1 changed files with 5 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
name="Assignment in condition">
|
||||
<problem
|
||||
defaultSeverity="Warning"
|
||||
description="Finds statements like 'if (a=b)'"
|
||||
id="org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem"
|
||||
name="Assignment in condition">
|
||||
</problem>
|
||||
|
@ -24,10 +25,10 @@
|
|||
<problem
|
||||
category="org.eclipse.cdt.codan.core.categories.ProgrammingProblems"
|
||||
defaultSeverity="Warning"
|
||||
description="Finds statements like 'a;' or '-a;' or 'a-b;' which do no seems to have any side effect therefore suspicious"
|
||||
id="org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem"
|
||||
name="Statement has no effect"
|
||||
messagePattern="Statement has no effect"
|
||||
/>
|
||||
name="Statement has no effect"/>
|
||||
</checker>
|
||||
|
||||
<checker
|
||||
|
@ -60,6 +61,7 @@
|
|||
<problem
|
||||
category="org.eclipse.cdt.codan.core.categories.ProgrammingProblems"
|
||||
defaultSeverity="Warning"
|
||||
description="This checker finds a problems that caused by lack of understanding operator precedence in C. Example (! x>0 && x<10). Parenthesis should be used to clarify programmer's intent."
|
||||
id="org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem"
|
||||
name="Suggested parenthesis around expression">
|
||||
</problem>
|
||||
|
@ -73,6 +75,7 @@
|
|||
category="org.eclipse.cdt.codan.core.categories.CodeStyle"
|
||||
defaultEnabled="false"
|
||||
defaultSeverity="Info"
|
||||
description="Finds and reports functions name of which does not match pattern parameter"
|
||||
id="org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker"
|
||||
messagePattern="Bad function name "{0}" (pattern /{1}/)"
|
||||
name="Name convention for function">
|
||||
|
|
Loading…
Add table
Reference in a new issue