Skip to content

Commit 249f771

Browse files
authored
Merge pull request #8952 from cklin/fix-ql-comments-syntax
Fix syntax errors in QL comments
2 parents 904ff1a + d6f0bbb commit 249f771

File tree

17 files changed

+23
-23
lines changed

17 files changed

+23
-23
lines changed

cpp/ql/lib/semmle/code/cpp/Function.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
3838
* int z = min(5, 7);
3939
* ```
4040
* The full signature of the function called on the last line would be
41-
* "min<int>(int, int) -> int", and the full signature of the uninstantiated
42-
* template on the first line would be "min<T>(T, T) -> T".
41+
* `min<int>(int, int) -> int`, and the full signature of the uninstantiated
42+
* template on the first line would be `min<T>(T, T) -> T`.
4343
*/
4444
string getFullSignature() {
4545
exists(string name, string templateArgs, string args |

cpp/ql/src/Likely Bugs/Memory Management/SuspiciousCallToMemset.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Suspicious call to memset
33
* @description Use of memset where the size argument is computed as the size of
44
* some non-struct type. When initializing a buffer, you should specify
5-
* its size as <number of elements> * <size of one element> to ensure
5+
* its size as `<number of elements> * <size of one element>` to ensure
66
* portability.
77
* @kind problem
88
* @id cpp/suspicious-call-to-memset

csharp/ql/lib/semmle/code/csharp/exprs/Call.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ class Call extends DotNet::Call, Expr, @call {
175175
* - Line 10: The static target is `Type.InvokeMember()`, whereas the run-time targets
176176
* are both `A.M()` and `B.M()`.
177177
*
178-
* - Line 16: There is no static target (delegate call) but the delegate `i => { }` (line
179-
* 20) is a run-time target.
178+
* - Line 16: There is no static target (delegate call) but the delegate `i => { }`
179+
* (line 20) is a run-time target.
180180
*/
181181
override Callable getARuntimeTarget() {
182182
exists(DispatchCall dc | dc.getCall() = this | result = dc.getADynamicTarget())

csharp/ql/src/API Abuse/IncorrectCompareToSignature.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Potentially incorrect CompareTo(...) signature
3-
* @description The declaring type of a method with signature 'CompareTo(T)' does not implement 'IComparable<T>'.
3+
* @description The declaring type of a method with signature `CompareTo(T)` does not implement `IComparable<T>`.
44
* @kind problem
55
* @problem.severity warning
66
* @precision medium

csharp/ql/src/Documentation/XmldocExtraParam.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Incorrect parameter name in documentation
3-
* @description The parameter name given in a '<param>' tag does not exist. Rename the parameter or
3+
* @description The parameter name given in a `<param>` tag does not exist. Rename the parameter or
44
* change the name in the documentation to ensure that they are the same.
55
* @kind problem
66
* @problem.severity recommendation

csharp/ql/src/Documentation/XmldocExtraTypeParam.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Incorrect type parameter name in documentation
3-
* @description The type parameter name given in a '<typeparam>' tag does not exist. Rename the parameter or
3+
* @description The type parameter name given in a `<typeparam>` tag does not exist. Rename the parameter or
44
* change the name in the documentation to ensure that they are the same.
55
* @kind problem
66
* @problem.severity recommendation

csharp/ql/src/Documentation/XmldocMissingException.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Missing documentation for exception
3-
* @description Exceptions thrown by the method should be documented using '<exception cref="..."> </exception>' tags.
3+
* @description Exceptions thrown by the method should be documented using `<exception cref="..."> </exception>` tags.
44
* Ensure that the correct type of the exception is given in the 'cref' attribute.
55
* @kind problem
66
* @problem.severity recommendation

csharp/ql/src/Documentation/XmldocMissingParam.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Missing documentation for parameter
3-
* @description All parameters should be documented using '<param name="..."> </param>' tags.
3+
* @description All parameters should be documented using `<param name="..."> </param>` tags.
44
* Ensure that the name attribute matches the name of the parameter.
55
* @kind problem
66
* @problem.severity recommendation

csharp/ql/src/Documentation/XmldocMissingReturn.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Missing documentation for return value
33
* @description The method returns a value, but the return value is not documented using
4-
* a '<returns>' tag.
4+
* a `<returns>` tag.
55
* @kind problem
66
* @problem.severity recommendation
77
* @precision low

csharp/ql/src/Documentation/XmldocMissingSummary.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Missing a summary in documentation comment
3-
* @description The documentation comment does not contain a '<summary>' tag.
3+
* @description The documentation comment does not contain a `<summary>` tag.
44
* @kind problem
55
* @problem.severity recommendation
66
* @precision high

0 commit comments

Comments
 (0)