Fix variable names in QLDocs

This commit is contained in:
Owen Mansel-Chan
2023-02-17 14:51:44 +00:00
parent 513409e082
commit cf89b00f47
4 changed files with 5 additions and 5 deletions

View File

@@ -310,7 +310,7 @@ private newtype TSsaWithFields =
TStep(SsaWithFields base, Field f) { exists(accessPathAux(base, f)) }
/**
* Gets a representation of `nd` as an ssa-with-fields value if there is one.
* Gets a representation of `insn` as an ssa-with-fields value if there is one.
*/
private TSsaWithFields accessPath(IR::Instruction insn) {
exists(SsaVariable v | insn = v.getAUse() | result = TRoot(v))

View File

@@ -86,7 +86,7 @@ class GoModDependency extends Dependency, GoModRequireLine {
}
/**
* Holds if this require line originally states dependency `path` had version `ver`.
* Holds if this require line originally states dependency `path` had version `v`.
*
* The actual info of this dependency can change based on `replace` directives in the same go.mod
* file, which replace a dependency with another one.

View File

@@ -14,7 +14,7 @@
import go
/**
* Holds if `src` is a pattern for a collection of alternatives where
* Holds if `re` is a pattern for a collection of alternatives where
* only the first or last alternative is anchored, indicating a
* precedence mistake explained by `msg`.
*
@@ -46,7 +46,7 @@ predicate isInterestingSemiAnchoredRegexpString(string re, string msg) {
}
/**
* Holds if `src` is an unanchored pattern for a URL, indicating a
* Holds if `re` is an unanchored pattern for a URL, indicating a
* mistake explained by `msg`.
*/
bindingset[re]

View File

@@ -166,7 +166,7 @@ class FlowsFromUntrusted extends TaintTracking::Configuration {
}
/**
* Holds if the provided `dst` is also destination of a `UntrustedFlowSource`.
* Holds if the provided `allowOriginHW` is also destination of a `UntrustedFlowSource`.
*/
predicate flowsToGuardedByCheckOnUntrusted(AllowOriginHeaderWrite allowOriginHW) {
exists(FlowsFromUntrusted cfg, DataFlow::Node sink, ControlFlow::ConditionGuardNode cgn |