Skip to content

Commit 2ed42c3

Browse files
committed
JS: fix typos in comments
1 parent 128fac4 commit 2ed42c3

26 files changed

+30
-30
lines changed

javascript/ql/examples/queries/dataflow/BackendIdor/BackendIdor.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class IdorTaint extends TaintTracking::Configuration {
3434
}
3535

3636
/**
37-
* A sanitizer for values that have succesfully been compared to another value.
37+
* A sanitizer for values that have successfully been compared to another value.
3838
*/
3939
class EqualityGuard extends TaintTracking::SanitizerGuardNode, ValueNode {
4040
override EqualityTest astNode;

javascript/ql/lib/semmle/javascript/ES2015Modules.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private predicate hasDefaultExport(ES2015Module mod) {
6868
* Holds if `mod` contains both named and `default` exports.
6969
*
7070
* This is used to determine whether a default-import of the module should be reinterpreted
71-
* as a namespace-import, to accomodate the non-standard behavior implemented by some compilers.
71+
* as a namespace-import, to accommodate the non-standard behavior implemented by some compilers.
7272
*/
7373
private predicate hasBothNamedAndDefaultExports(ES2015Module mod) {
7474
hasNamedExports(mod) and
@@ -615,7 +615,7 @@ class ReExportDefaultSpecifier extends ExportDefaultSpecifier {
615615
}
616616

617617
/**
618-
* A namespace export specifier, that is `*` or `* as x` occuring in an export declaration.
618+
* A namespace export specifier, that is `*` or `* as x` occurring in an export declaration.
619619
*
620620
* Examples:
621621
*

javascript/ql/lib/semmle/javascript/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2904,7 +2904,7 @@ class ImportMetaExpr extends @import_meta_expr, Expr {
29042904
* let data2 = {{{ user_data2 }}};
29052905
* ```
29062906
*
2907-
* Note that templating placeholders occuring inside strings literals are not parsed,
2907+
* Note that templating placeholders occurring inside strings literals are not parsed,
29082908
* and are simply seen as being part of the string literal.
29092909
* For example, following snippet does not contain any `GeneratedCodeExpr` nodes:
29102910
* ```js

javascript/ql/lib/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ module AccessPath {
420420
*/
421421
module DominatingPaths {
422422
/**
423-
* A classification of acccess paths into reads and writes.
423+
* A classification of access paths into reads and writes.
424424
*/
425425
private newtype AccessPathKind =
426426
AccessPathRead() or

javascript/ql/lib/semmle/javascript/PrintAst.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private module PrintJavaScript {
193193

194194
/**
195195
* Gets the `i`th child of `element`.
196-
* Can be overriden in subclasses to get more specific behavior for `getChild()`.
196+
* Can be overridden in subclasses to get more specific behavior for `getChild()`.
197197
*/
198198
AstNode getChildNode(int childIndex) { result = getLocationSortedChild(element, childIndex) }
199199
}

javascript/ql/lib/semmle/javascript/Regexp.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ module RegExp {
13091309
}
13101310

13111311
/**
1312-
* Holds if `term` can match any occurence of `char` within a string (not taking into account
1312+
* Holds if `term` can match any occurrence of `char` within a string (not taking into account
13131313
* the context in which `term` appears).
13141314
*
13151315
* This predicate is under-approximate and never considers sequences to guarantee a match.

javascript/ql/lib/semmle/javascript/Variables.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class ArgumentsVariable extends Variable {
226226
*/
227227
class VarRef extends @varref, Identifier, BindingPattern, LexicalRef {
228228
/** Gets the variable this identifier refers to. */
229-
override Variable getVariable() { none() } // Overriden in VarAccess and VarDecl
229+
override Variable getVariable() { none() } // Overridden in VarAccess and VarDecl
230230

231231
override string getName() { result = Identifier.super.getName() }
232232

javascript/ql/lib/semmle/javascript/frameworks/Fastify.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ module Fastify {
413413
/**
414414
* A call to `rep.view('file', { ... })`, seen as a template instantiation.
415415
*
416-
* Assumes the presense of a plugin that provides the `view` method, such as the `point-of-view` plugin.
416+
* Assumes the presence of a plugin that provides the `view` method, such as the `point-of-view` plugin.
417417
*/
418418
private class ViewCall extends Templating::TemplateInstantiation::Range, DataFlow::CallNode {
419419
ViewCall() { this = any(ReplySource rep).ref().getAMethodCall("view") }

javascript/ql/lib/semmle/javascript/frameworks/JWT.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import javascript
66

77
/**
8-
* Provides classes and predicates modeling the `jwt-decode` libary.
8+
* Provides classes and predicates modeling the `jwt-decode` library.
99
*/
1010
private module JwtDecode {
1111
/**
@@ -23,7 +23,7 @@ private module JwtDecode {
2323
}
2424

2525
/**
26-
* Provides classes and predicates modeling the `jsonwebtoken` libary.
26+
* Provides classes and predicates modeling the `jsonwebtoken` library.
2727
*/
2828
private module JsonWebToken {
2929
/**

javascript/ql/lib/semmle/javascript/frameworks/Koa.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module Koa {
7474
* Gets a reference to a request parameter defined by this route handler.
7575
*/
7676
DataFlow::Node getARequestParameterAccess() {
77-
none() // overriden in subclasses.
77+
none() // overridden in subclasses.
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)