Skip to content

Commit 8caad12

Browse files
committed
Ruby: fix typos in comments
1 parent 2efa38a commit 8caad12

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

ruby/ql/lib/codeql/ruby/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ module Trees {
12561256

12571257
private class SimpleParameterTree extends NonDefaultValueParameterTree, SimpleParameter { }
12581258

1259-
// Corner case: For duplicated '_' parameters, only the first occurence has a defining
1259+
// Corner case: For duplicated '_' parameters, only the first occurrence has a defining
12601260
// access. For subsequent parameters we simply include the parameter itself in the CFG
12611261
private class SimpleParameterTreeDupUnderscore extends LeafTree, SimpleParameter {
12621262
SimpleParameterTreeDupUnderscore() { not exists(this.getDefiningAccess()) }

ruby/ql/lib/codeql/ruby/controlflow/internal/ControlFlowGraphImplShared.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ cached
744744
private module Cached {
745745
/**
746746
* If needed, call this predicate from `ControlFlowGraphImplSpecific.qll` in order to
747-
* force a stage-dependency on the `ControlFlowGraphImplShared.qll` stage and therby
747+
* force a stage-dependency on the `ControlFlowGraphImplShared.qll` stage and thereby
748748
* collapsing the two stages.
749749
*/
750750
cached

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ cached
305305
private module Cached {
306306
/**
307307
* If needed, call this predicate from `DataFlowImplSpecific.qll` in order to
308-
* force a stage-dependency on the `DataFlowImplCommon.qll` stage and therby
308+
* force a stage-dependency on the `DataFlowImplCommon.qll` stage and thereby
309309
* collapsing the two stages.
310310
*/
311311
cached

ruby/ql/lib/codeql/ruby/frameworks/ActionDispatch.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module ActionDispatch {
279279
* ```rb
280280
* get "/photos", to: "photos#index"
281281
* ```
282-
* or via a convenience method like `resources`, which defines mutiple routes at once:
282+
* or via a convenience method like `resources`, which defines multiple routes at once:
283283
* ```rb
284284
* resources :photos
285285
* ```

ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* A `(package,type)` pair may refer to a static type or a synthetic type name used internally in the model.
6060
* Synthetic type names can be used to reuse intermediate sub-paths, when there are multiple ways to access the same
6161
* element.
62-
* See `ModelsAsData.qll` for the langauge-specific interpretation of packages and static type names.
62+
* See `ModelsAsData.qll` for the language-specific interpretation of packages and static type names.
6363
*
6464
* By convention, if one wants to avoid clashes with static types from the package, the type name
6565
* should be prefixed with a tilde character (`~`). For example, `(foo, ~Bar)` can be used to indicate that
@@ -396,7 +396,7 @@ predicate isValidTokenNameInIdentifyingAccessPath(string name) {
396396
}
397397

398398
/**
399-
* Holds if `name` is a valid name for an access path token with no arguments, occuring
399+
* Holds if `name` is a valid name for an access path token with no arguments, occurring
400400
* in an identifying access path.
401401
*/
402402
bindingset[name]

ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModelsSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ predicate isExtraValidTokenNameInIdentifyingAccessPath(string name) {
163163
}
164164

165165
/**
166-
* Holds if `name` is a valid name for an access path token with no arguments, occuring
166+
* Holds if `name` is a valid name for an access path token with no arguments, occurring
167167
* in an identifying access path.
168168
*/
169169
predicate isExtraValidNoArgumentTokenInIdentifyingAccessPath(string name) {

ruby/ql/lib/codeql/ruby/security/BadTagFilterQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ private module RegexpMatching {
2828
* but if `ignorePrefix` is true, it will only match "foo".
2929
*/
3030
predicate test(string str, boolean ignorePrefix) {
31-
none() // maybe overriden in subclasses
31+
none() // maybe overridden in subclasses
3232
}
3333

3434
/**
3535
* Same as `test(..)`, but where the `fillsCaptureGroup` afterwards tells which capture groups were filled by the given string.
3636
*/
3737
predicate testWithGroups(string str, boolean ignorePrefix) {
38-
none() // maybe overriden in subclasses
38+
none() // maybe overridden in subclasses
3939
}
4040

4141
/**

ruby/ql/lib/codeql/ruby/security/performance/ExponentialBackTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* either a single character, a set of characters represented by a
5252
* character class, or the set of all characters.
5353
* * The product automaton is constructed lazily, starting with pair states
54-
* `(q, q)` where `q` is a fork, and proceding along an over-approximate
54+
* `(q, q)` where `q` is a fork, and proceeding along an over-approximate
5555
* step relation.
5656
* * The over-approximate step relation allows transitions along pairs of
5757
* abstract input symbols where the symbols have overlap in the characters they accept.

ruby/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)(
181181
/**
182182
* The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
183183
* column in a comment. This column is not precedeeded by a name. `TNamedColumn(name)` represents a
184-
* column containing expected results preceeded by the string `name:`.
184+
* column containing expected results preceded by the string `name:`.
185185
*/
186186
private newtype TColumn =
187187
TDefaultColumn() or

0 commit comments

Comments
 (0)