Skip to content

Commit b996479

Browse files
authored
Merge pull request #7458 from erik-krogh/modelling
QL: add "modelling/modeling" to `ql/non-us-spelling`
2 parents 6457f42 + 8019b52 commit b996479

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+117
-113
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/models/interfaces/SimpleRangeAnalysisDefinition.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ abstract class SimpleRangeAnalysisDefinition extends RangeSsaDefinition {
3737
* dependencies. Without this information, range analysis might work for
3838
* simple cases but will go into infinite loops on complex code.
3939
*
40-
* For example, when modelling the definition by reference in a call to an
40+
* For example, when modeling the definition by reference in a call to an
4141
* overloaded `operator=`, written as `v = e`, the definition of `(this, v)`
4242
* depends on `e`.
4343
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module Ssa {
170170
/**
171171
* Gets the control flow node of this SSA definition, if any. Phi nodes are
172172
* examples of SSA definitions without a control flow node, as they are
173-
* modelled at index `-1` in the relevant basic block.
173+
* modeled at index `-1` in the relevant basic block.
174174
*/
175175
final ControlFlow::Node getControlFlowNode() {
176176
exists(ControlFlow::BasicBlock bb, int i | this.definesAt(_, bb, i) | result = bb.getNode(i))

csharp/ql/lib/semmle/code/csharp/frameworks/EntityFramework.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Classes modelling EntityFramework and EntityFrameworkCore.
2+
* Classes modeling EntityFramework and EntityFrameworkCore.
33
*/
44

55
import csharp

csharp/ql/lib/semmle/code/csharp/frameworks/JsonNET.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Classes for modelling Json.NET.
2+
* Classes for modeling Json.NET.
33
*/
44

55
import csharp

csharp/ql/lib/semmle/code/csharp/frameworks/NHibernate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Classes for modelling NHibernate.
2+
* Classes for modeling NHibernate.
33
*/
44

55
import csharp

csharp/ql/lib/semmle/code/csharp/frameworks/ServiceStack.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* General modelling of ServiceStack framework including separate modules for:
2+
* General modeling of ServiceStack framework including separate modules for:
33
* - flow sources
44
* - SQLi sinks
55
* - XSS sinks

javascript/ql/lib/semmle/javascript/Arrays.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ private import semmle.javascript.dataflow.InferredTypes
33
private import semmle.javascript.dataflow.internal.PreCallGraphStep
44

55
/**
6-
* Classes and predicates for modelling TaintTracking steps for arrays.
6+
* Classes and predicates for modeling TaintTracking steps for arrays.
77
*/
88
module ArrayTaintTracking {
99
/**
@@ -88,13 +88,13 @@ module ArrayTaintTracking {
8888
}
8989

9090
/**
91-
* Classes and predicates for modelling data-flow for arrays.
91+
* Classes and predicates for modeling data-flow for arrays.
9292
*/
9393
private module ArrayDataFlow {
9494
private import DataFlow::PseudoProperties
9595

9696
/**
97-
* A step modelling the creation of an Array using the `Array.from(x)` method.
97+
* A step modeling the creation of an Array using the `Array.from(x)` method.
9898
* The step copies the elements of the argument (set, array, or iterator elements) into the resulting array.
9999
*/
100100
private class ArrayFrom extends DataFlow::SharedFlowStep {
@@ -112,7 +112,7 @@ private module ArrayDataFlow {
112112
}
113113

114114
/**
115-
* A step modelling an array copy where the spread operator is used.
115+
* A step modeling an array copy where the spread operator is used.
116116
* The result is essentially array concatenation.
117117
*
118118
* Such a step can occur both with the `push` and `unshift` methods, or when creating a new array.
@@ -260,7 +260,7 @@ private module ArrayDataFlow {
260260
}
261261

262262
/**
263-
* A step modelling that `splice` can insert elements into an array.
263+
* A step modeling that `splice` can insert elements into an array.
264264
* For example in `array.splice(i, del, e)`: if `e` is tainted, then so is `array
265265
*/
266266
private class ArraySpliceStep extends DataFlow::SharedFlowStep {
@@ -275,7 +275,7 @@ private module ArrayDataFlow {
275275
}
276276

277277
/**
278-
* A step for modelling `concat`.
278+
* A step for modeling `concat`.
279279
* For example in `e = arr1.concat(arr2, arr3)`: if any of the `arr` is tainted, then so is `e`.
280280
*/
281281
private class ArrayConcatStep extends DataFlow::SharedFlowStep {
@@ -290,7 +290,7 @@ private module ArrayDataFlow {
290290
}
291291

292292
/**
293-
* A step for modelling that elements from an array `arr` also appear in the result from calling `slice`/`splice`/`filter`.
293+
* A step for modeling that elements from an array `arr` also appear in the result from calling `slice`/`splice`/`filter`.
294294
*/
295295
private class ArraySliceStep extends DataFlow::SharedFlowStep {
296296
override predicate loadStoreStep(DataFlow::Node pred, DataFlow::Node succ, string prop) {
@@ -304,7 +304,7 @@ private module ArrayDataFlow {
304304
}
305305

306306
/**
307-
* A step modelling that elements from an array `arr` are received by calling `find`.
307+
* A step modeling that elements from an array `arr` are received by calling `find`.
308308
*/
309309
private class ArrayFindStep extends DataFlow::SharedFlowStep {
310310
override predicate loadStep(DataFlow::Node pred, DataFlow::Node succ, string prop) {
@@ -320,7 +320,7 @@ private module ArrayDataFlow {
320320
private import ArrayLibraries
321321

322322
/**
323-
* Classes and predicates modelling various libraries that work on arrays or array-like structures.
323+
* Classes and predicates modeling various libraries that work on arrays or array-like structures.
324324
*/
325325
private module ArrayLibraries {
326326
private import DataFlow::PseudoProperties

javascript/ql/lib/semmle/javascript/Collections.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private module CollectionDataFlow {
156156
}
157157

158158
/**
159-
* A step for modelling `for of` iteration on arrays, maps, sets, and iterators.
159+
* A step for modeling `for of` iteration on arrays, maps, sets, and iterators.
160160
*
161161
* For sets and iterators the l-value are the elements of the set/iterator.
162162
* For maps the l-value is a tuple containing a key and a value.

javascript/ql/lib/semmle/javascript/Generators.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import javascript
66
private import semmle.javascript.dataflow.internal.PreCallGraphStep
77

88
/**
9-
* Classes and predicates for modelling data-flow for generator functions.
9+
* Classes and predicates for modeling data-flow for generator functions.
1010
*/
1111
private module GeneratorDataFlow {
1212
private import DataFlow::PseudoProperties

javascript/ql/lib/semmle/javascript/JsonStringifiers.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class JSON2CSVTaintStep extends TaintTracking::SharedTaintStep {
6262
/**
6363
* A step through the [`prettyjson`](https://www.npmjs.com/package/prettyjson) library.
6464
* This is not quite a `JSON.stringify` call, as it e.g. does not wrap keys in double quotes.
65-
* It's therefore modelled as a taint-step rather than as a `JSON.stringify` call.
65+
* It's therefore modeled as a taint-step rather than as a `JSON.stringify` call.
6666
*/
6767
class PrettyJSONTaintStep extends TaintTracking::SharedTaintStep {
6868
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {

0 commit comments

Comments
 (0)