Skip to content

Commit 9d5972a

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Shared: update qldocs
1 parent 3f1dc8e commit 9d5972a

File tree

14 files changed

+35
-7
lines changed

14 files changed

+35
-7
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ module ModelValidation {
205205
)
206206
}
207207

208+
/** Gets an error message relating to an invalid kind in a model. */
208209
private string getInvalidModelKind() {
209210
exists(string kind | summaryModel(_, _, _, _, _, _, _, _, kind, _) |
210211
not kind instanceof ValidSummaryKind and

csharp/ql/lib/semmle/code/csharp/dataflow/SharedModelValidation.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* INTERNAL: Do not use.
33
*
4-
* Provides classes for validating kinds in models as data rows.
4+
* Provides classes and predicates related to validating models as data rows.
55
* Such that we can share this logic across our CodeQL analysis of different languages.
66
*/
77

@@ -40,6 +40,7 @@ class ValidSinkKind extends string {
4040
}
4141
}
4242

43+
/** An outdated models-as-data sink kind. */
4344
class OutdatedSinkKind extends string {
4445
OutdatedSinkKind() {
4546
this =
@@ -51,6 +52,7 @@ class OutdatedSinkKind extends string {
5152
]
5253
}
5354

55+
/** Gets a replacement kind for an outdated sink kind. */
5456
private string replacementKind() {
5557
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
5658
result = this + "-injection"
@@ -84,6 +86,7 @@ class OutdatedSinkKind extends string {
8486
this = "uncontrolled-format-string" and result = "format-string"
8587
}
8688

89+
/** Gets an error message for an outdated sink kind. */
8790
string outdatedMessage() {
8891
result =
8992
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ module ModelValidation {
189189
)
190190
}
191191

192+
/** Gets an error message relating to an invalid kind in a model. */
192193
private string getInvalidModelKind() {
193194
exists(string kind | summaryModel(_, _, _, _, _, _, _, _, kind, _) |
194195
not kind instanceof ValidSummaryKind and

go/ql/lib/semmle/go/dataflow/SharedModelValidation.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* INTERNAL: Do not use.
33
*
4-
* Provides classes for validating kinds in models as data rows.
4+
* Provides classes and predicates related to validating models as data rows.
55
* Such that we can share this logic across our CodeQL analysis of different languages.
66
*/
77

@@ -40,6 +40,7 @@ class ValidSinkKind extends string {
4040
}
4141
}
4242

43+
/** An outdated models-as-data sink kind. */
4344
class OutdatedSinkKind extends string {
4445
OutdatedSinkKind() {
4546
this =
@@ -51,6 +52,7 @@ class OutdatedSinkKind extends string {
5152
]
5253
}
5354

55+
/** Gets a replacement kind for an outdated sink kind. */
5456
private string replacementKind() {
5557
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
5658
result = this + "-injection"
@@ -84,6 +86,7 @@ class OutdatedSinkKind extends string {
8486
this = "uncontrolled-format-string" and result = "format-string"
8587
}
8688

89+
/** Gets an error message for an outdated sink kind. */
8790
string outdatedMessage() {
8891
result =
8992
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ module ModelValidation {
266266
)
267267
}
268268

269+
/** Gets an error message relating to an invalid kind in a model. */
269270
private string getInvalidModelKind() {
270271
exists(string kind | summaryModel(_, _, _, _, _, _, _, _, kind, _) |
271272
not kind instanceof ValidSummaryKind and

java/ql/lib/semmle/code/java/dataflow/SharedModelValidation.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* INTERNAL: Do not use.
33
*
4-
* Provides classes for validating kinds in models as data rows.
4+
* Provides classes and predicates related to validating models as data rows.
55
* Such that we can share this logic across our CodeQL analysis of different languages.
66
*/
77

@@ -40,6 +40,7 @@ class ValidSinkKind extends string {
4040
}
4141
}
4242

43+
/** An outdated models-as-data sink kind. */
4344
class OutdatedSinkKind extends string {
4445
OutdatedSinkKind() {
4546
this =
@@ -51,6 +52,7 @@ class OutdatedSinkKind extends string {
5152
]
5253
}
5354

55+
/** Gets a replacement kind for an outdated sink kind. */
5456
private string replacementKind() {
5557
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
5658
result = this + "-injection"
@@ -84,6 +86,7 @@ class OutdatedSinkKind extends string {
8486
this = "uncontrolled-format-string" and result = "format-string"
8587
}
8688

89+
/** Gets an error message for an outdated sink kind. */
8790
string outdatedMessage() {
8891
result =
8992
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."

javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ module ModelOutput {
655655
import Specific::ModelOutputSpecific
656656
private import SharedModelValidation
657657

658+
/** Gets an error message relating to an invalid kind in a model. */
658659
private string getInvalidModelKind() {
659660
exists(string kind | summaryModel(_, _, _, _, kind) |
660661
not kind instanceof ValidSummaryKind and

javascript/ql/lib/semmle/javascript/frameworks/data/internal/SharedModelValidation.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* INTERNAL: Do not use.
33
*
4-
* Provides classes for validating kinds in models as data rows.
4+
* Provides classes and predicates related to validating models as data rows.
55
* Such that we can share this logic across our CodeQL analysis of different languages.
66
*/
77

@@ -40,6 +40,7 @@ class ValidSinkKind extends string {
4040
}
4141
}
4242

43+
/** An outdated models-as-data sink kind. */
4344
class OutdatedSinkKind extends string {
4445
OutdatedSinkKind() {
4546
this =
@@ -51,6 +52,7 @@ class OutdatedSinkKind extends string {
5152
]
5253
}
5354

55+
/** Gets a replacement kind for an outdated sink kind. */
5456
private string replacementKind() {
5557
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
5658
result = this + "-injection"
@@ -84,6 +86,7 @@ class OutdatedSinkKind extends string {
8486
this = "uncontrolled-format-string" and result = "format-string"
8587
}
8688

89+
/** Gets an error message for an outdated sink kind. */
8790
string outdatedMessage() {
8891
result =
8992
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."

python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ module ModelOutput {
655655
import Specific::ModelOutputSpecific
656656
private import SharedModelValidation
657657

658+
/** Gets an error message relating to an invalid kind in a model. */
658659
private string getInvalidModelKind() {
659660
exists(string kind | summaryModel(_, _, _, _, kind) |
660661
not kind instanceof ValidSummaryKind and

python/ql/lib/semmle/python/frameworks/data/internal/SharedModelValidation.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* INTERNAL: Do not use.
33
*
4-
* Provides classes for validating kinds in models as data rows.
4+
* Provides classes and predicates related to validating models as data rows.
55
* Such that we can share this logic across our CodeQL analysis of different languages.
66
*/
77

@@ -40,6 +40,7 @@ class ValidSinkKind extends string {
4040
}
4141
}
4242

43+
/** An outdated models-as-data sink kind. */
4344
class OutdatedSinkKind extends string {
4445
OutdatedSinkKind() {
4546
this =
@@ -51,6 +52,7 @@ class OutdatedSinkKind extends string {
5152
]
5253
}
5354

55+
/** Gets a replacement kind for an outdated sink kind. */
5456
private string replacementKind() {
5557
this = ["sql", "xpath", "groovy", "jexl", "mvel", "xslt", "ldap", "code", "html"] and
5658
result = this + "-injection"
@@ -84,6 +86,7 @@ class OutdatedSinkKind extends string {
8486
this = "uncontrolled-format-string" and result = "format-string"
8587
}
8688

89+
/** Gets an error message for an outdated sink kind. */
8790
string outdatedMessage() {
8891
result =
8992
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."

0 commit comments

Comments
 (0)