mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Merge master into next.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-1
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-2
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* testability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description All functions shall have a cyclomatic complexity number of 20 or less.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-3
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-11
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import external.ExternalArtifact
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-12
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-13
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-14
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-9
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-17
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-18
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-19
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-20
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* portability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-21
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-22
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-23
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-24
|
||||
* @problem.severity warning
|
||||
* @tags portability
|
||||
* @tags correctness
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-25
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-26
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-27
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import semmle.code.cpp.headers.MultipleInclusion
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-28
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import semmle.code.cpp.headers.MultipleInclusion
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-29
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-30
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-31
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import semmle.code.cpp.headers.MultipleInclusion
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
* @id cpp/include-non-header
|
||||
* @tags maintainability
|
||||
* modularity
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import semmle.code.cpp.AutogeneratedFile
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-33
|
||||
* @problem.severity error
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
* @tags efficiency
|
||||
* maintainability
|
||||
* modularity
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import semmle.code.cpp.headers.MultipleInclusion
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-39
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-40
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Source lines will be kept to a length of 120 characters or less.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-41
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Each expression-statement will be on a separate line.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-42
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-43
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description All indentations will be at least two spaces and be consistent within the same source file.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-44
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description All words in an identifier will be separated by the underscore character.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-45
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description User-specified identifiers (internal and external) will not rely on significance of more than 64 characters.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-46
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Identifiers will not begin with the underscore character.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-47
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-48
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description All acronyms in an identifier will be composed of uppercase letters.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-49
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Naming
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description The first word of the name of a class, structure, namespace, enumeration, or type created with typedef will begin with an uppercase letter. All other letters will be lowercase.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-50
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Naming
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description All letters contained in function and variable names will be lowercase.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-51
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Naming
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Identifiers for constant and enumerator values shall be lowercase.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-52
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Naming
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description The following character sequences shall not appear in header file names: ', \, /*, //, or ".
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-53-1
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Header files will always have a file name extension of .h.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-53
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Implementation files will always have a file name extension of .cpp.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-54
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description The public, protected, and private sections of a class will be declared in that order.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-57
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description When declaring and defining functions with more than two parameters, the leading parenthesis and the first argument will be written on the same line as the function name. Each additional argument will be written on a separate line (with the closing parenthesis directly after the last argument).
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-58
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description The statements forming the body of an if, else if, else, while, do-while or for statement shall always be enclosed in braces, even if the braces form an empty block.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-59
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Braces which enclose a block will be placed in the same column, on separate lines directly before and after the block.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-60
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Braces which enclose a block will have nothing else on the line except comments (if necessary).
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-61
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Spaces will not be used around '.' or '->', nor between unary operators and operands.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-63
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Unneeded implicitly generated member functions shall be explicitly disallowed.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-68
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-69
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
* for logical or efficiency reasons.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-70
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-71
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
* @description Unnecessary default constructors shall not be defined.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-73
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @precision low
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-74
|
||||
* @problem.severity warning
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Members of the initialization list shall be listed in the order in which they are declared in the class.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-75
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description A copy constructor and an assignment operator shall be declared for classes that contain pointers to data items or nontrivial destructors. If the copy constructor and assignment operators are not required, they should be explicitly disallowed.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-76
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
* @description All base classes with a virtual function should define a virtual destructor. If an application attempts to delete a derived class object through a base class pointer, the result is undefined if the base class destructor is non-virtual.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision high
|
||||
* @id cpp/jsf/av-rule-78
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags efficiency
|
||||
* readability
|
||||
* external/cwe/cwe-404
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Critical.NewDelete
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-81
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-85
|
||||
* @problem.severity warning
|
||||
* @tags reliability
|
||||
* @tags maintainability
|
||||
* reliability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description A stateful virtual base shall be explicitly declared in each derived class that accesses it. Explicitly declaring a stateful virtual base at each level in a hierarchy (where that base is used), documents that fact that no assumptions can be made with respect to the exclusive use of the data contained within the virtual base.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-88-1
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
* @problem.severity recommendation
|
||||
* @precision high
|
||||
* @id cpp/undisciplined-multiple-inheritance
|
||||
* @tags readability
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* @id cpp/inconsistent-virtual-inheritance
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description An inherited nonvirtual function shall not be redefined in a derived class. Such definitions would hide the function in the base class.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-94
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* @id cpp/redefined-default-parameter
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-96
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-97-1
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Namespaces will not be nested more than two levels deep
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-99
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-104
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* @id cpp/function-in-block
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Functions with variable number of arguments shall not be used.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-108
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-110
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-111
|
||||
* @problem.severity error
|
||||
* @tags reliability
|
||||
* @tags correctness
|
||||
* reliability
|
||||
* external/jsf
|
||||
*/
|
||||
import semmle.code.cpp.pointsto.PointsTo
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Functions will have a single exit point.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-113
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
@@ -38,6 +39,8 @@ predicate functionImperfectlyExtracted(Function f) {
|
||||
exists(CompilerError e | f.getBlock().getLocation().subsumes(e.getLocation()))
|
||||
or
|
||||
exists(ErrorExpr ee | ee.getEnclosingFunction() = f)
|
||||
or
|
||||
count(f.getType()) > 1
|
||||
}
|
||||
|
||||
from Stmt stmt, string msg, Function f, ControlFlowNode blame
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-115
|
||||
* @problem.severity warning
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Functions shall not call themselves, either directly or indirectly (i.e. recursion shall not be allowed).
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-119
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags resources
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Only valid C++ style comments shall be used.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-126
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* documentation
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Code that is not used (commented out) shall be deleted.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-127
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Every source file will be documented with an introductory comment that provides information on the file name, its contents, and any program-required information (eg. legal statements, copyright information, etc)
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-133
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* documentation
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* @id cpp/jsf/av-rule-135
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
import Best_Practices.Hiding.Shadowing
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Identifiers shall not simultaneously have both internal and external linkage in the same translation unit.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-138
|
||||
* @problem.severity error
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
/**
|
||||
* @name AV Rule 139
|
||||
* @description External objects will not be declared in more than one file
|
||||
* @description External objects will not be declared in more than one file.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-139
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-140
|
||||
* @problem.severity warning
|
||||
* @tags portability
|
||||
* @tags maintainability
|
||||
* portability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-142
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-143
|
||||
* @problem.severity warning
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags reliability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* @id cpp/jsf/av-rule-147
|
||||
* @problem.severity error
|
||||
* @tags reliability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* language-features
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Octal constants (other than zero) shall not be used.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-149
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Hexadecimal constants will be represented using all uppercase letters.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-150
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* @id cpp/jsf/av-rule-151-1
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Numeric values in code will not be used; symbolic values will be used instead.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-151
|
||||
* @problem.severity warning
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
* @description Multiple variable declarations shall not be allowed on the same line.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-152
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags maintainability
|
||||
* readability
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
* @description Unions shall not be used.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-153
|
||||
* @problem.severity error
|
||||
* @problem.severity recommendation
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
*/
|
||||
import cpp
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user