diff --git a/python/ql/lib/semmle/python/Import.qll b/python/ql/lib/semmle/python/Import.qll index cd62001b41e..c75ef9f0c91 100644 --- a/python/ql/lib/semmle/python/Import.qll +++ b/python/ql/lib/semmle/python/Import.qll @@ -184,7 +184,7 @@ class Import extends Import_ { * For example, for the import statement `import bar` which * is a relative import in package "foo", this would return * "foo.bar". - * The import statment `from foo import bar` would return + * The import statement `from foo import bar` would return * `foo` and `foo.bar` */ string getAnImportedModuleName() { diff --git a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatchPointsTo.qll b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatchPointsTo.qll index 6564d4dc62e..1d50a12364f 100644 --- a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatchPointsTo.qll +++ b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatchPointsTo.qll @@ -172,7 +172,7 @@ module ArgumentPassing { /** * Gets the node representing the argument to `call` that is passed to the parameter at * (zero-based) index `paramN` in `callable`. If this is a positional argument, it must appear - * at an index, `argN`, in `call` wich satisfies `paramN = mapping.getParamN(argN)`. + * at an index, `argN`, in `call` which satisfies `paramN = mapping.getParamN(argN)`. * * `mapping` will be the identity for function calls, but not for method- or constructor calls, * where the first parameter is `self` and the first positional argument is passed to the second positional parameter. diff --git a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll index e60505d9248..0079b259260 100644 --- a/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll +++ b/python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll @@ -305,7 +305,7 @@ cached private module Cached { /** * If needed, call this predicate from `DataFlowImplSpecific.qll` in order to - * force a stage-dependency on the `DataFlowImplCommon.qll` stage and therby + * force a stage-dependency on the `DataFlowImplCommon.qll` stage and thereby * collapsing the two stages. */ cached diff --git a/python/ql/lib/semmle/python/dataflow/old/StateTracking.qll b/python/ql/lib/semmle/python/dataflow/old/StateTracking.qll index 71ca8fd0b20..43b2ece1093 100644 --- a/python/ql/lib/semmle/python/dataflow/old/StateTracking.qll +++ b/python/ql/lib/semmle/python/dataflow/old/StateTracking.qll @@ -45,14 +45,14 @@ abstract class TrackableState extends string { /** * Holds if state starts at `f`. * Either this predicate or `startsAt(ControlFlowNode f, Context ctx)` - * should be overriden by sub-classes. + * should be overridden by sub-classes. */ predicate startsAt(ControlFlowNode f) { none() } /** * Holds if state starts at `f` given context `ctx`. * Either this predicate or `startsAt(ControlFlowNode f)` - * should be overriden by sub-classes. + * should be overridden by sub-classes. */ pragma[noinline] predicate startsAt(ControlFlowNode f, Context ctx) { ctx.appliesTo(f) and this.startsAt(f) } @@ -60,14 +60,14 @@ abstract class TrackableState extends string { /** * Holds if state ends at `f`. * Either this predicate or `endsAt(ControlFlowNode f, Context ctx)` - * may be overriden by sub-classes. + * may be overridden by sub-classes. */ predicate endsAt(ControlFlowNode f) { none() } /** * Holds if state ends at `f` given context `ctx`. * Either this predicate or `endsAt(ControlFlowNode f)` - * may be overriden by sub-classes. + * may be overridden by sub-classes. */ pragma[noinline] predicate endsAt(ControlFlowNode f, Context ctx) { ctx.appliesTo(f) and this.endsAt(f) } diff --git a/python/ql/lib/semmle/python/frameworks/Aiomysql.qll b/python/ql/lib/semmle/python/frameworks/Aiomysql.qll index 112dc58d061..fdcf21afc34 100644 --- a/python/ql/lib/semmle/python/frameworks/Aiomysql.qll +++ b/python/ql/lib/semmle/python/frameworks/Aiomysql.qll @@ -25,7 +25,7 @@ private module Aiomysql { /** * Gets a `Connection` that is created when * - the result of `aiomysql.connect()` is awaited. - * - the result of calling `aquire` on a `ConnectionPool` is awaited. + * - the result of calling `acquire` on a `ConnectionPool` is awaited. * See https://aiomysql.readthedocs.io/en/stable/connection.html#connection */ API::Node connection() { @@ -82,7 +82,7 @@ private module Aiomysql { } /** - * Gets an `SAConnection` that is created when the result of calling `aquire` on an `Engine` is awaited. + * Gets an `SAConnection` that is created when the result of calling `acquire` on an `Engine` is awaited. * See https://aiomysql.readthedocs.io/en/stable/sa.html#connection */ API::Node saConnection() { result = engine().getMember("acquire").getReturn().getAwaited() } diff --git a/python/ql/lib/semmle/python/frameworks/Aiopg.qll b/python/ql/lib/semmle/python/frameworks/Aiopg.qll index 1a60c433150..afc553fe04b 100644 --- a/python/ql/lib/semmle/python/frameworks/Aiopg.qll +++ b/python/ql/lib/semmle/python/frameworks/Aiopg.qll @@ -25,7 +25,7 @@ private module Aiopg { /** * Gets a `Connection` that is created when * - the result of `aiopg.connect()` is awaited. - * - the result of calling `aquire` on a `ConnectionPool` is awaited. + * - the result of calling `acquire` on a `ConnectionPool` is awaited. * See https://aiopg.readthedocs.io/en/stable/core.html#connection */ API::Node connection() { @@ -78,7 +78,7 @@ private module Aiopg { } /** - * Gets an `SAConnection` that is created when the result of calling `aquire` on an `Engine` is awaited. + * Gets an `SAConnection` that is created when the result of calling `acquire` on an `Engine` is awaited. * See https://aiopg.readthedocs.io/en/stable/sa.html#connection */ API::Node saConnection() { result = engine().getMember("acquire").getReturn().getAwaited() } diff --git a/python/ql/lib/semmle/python/frameworks/Asyncpg.qll b/python/ql/lib/semmle/python/frameworks/Asyncpg.qll index 45c274c64ba..5f867fe28ff 100644 --- a/python/ql/lib/semmle/python/frameworks/Asyncpg.qll +++ b/python/ql/lib/semmle/python/frameworks/Asyncpg.qll @@ -20,7 +20,7 @@ private module Asyncpg { /** * Gets a `Connection` that is created when * - the result of `asyncpg.connect()` is awaited. - * - the result of calling `aquire` on a `ConnectionPool` is awaited. + * - the result of calling `acquire` on a `ConnectionPool` is awaited. */ API::Node connection() { result = API::moduleImport("asyncpg").getMember("connect").getReturn().getAwaited() @@ -69,7 +69,7 @@ private module Asyncpg { * Provides models of the `PreparedStatement` class in `asyncpg`. * `PreparedStatement`s are created when the result of calling `prepare(query)` on a connection is awaited. * The result of calling `prepare(query)` is a `PreparedStatementFactory` and the argument, `query` needs to - * be tracked to the place where a `PreparedStatement` is created and then futher to any executing methods. + * be tracked to the place where a `PreparedStatement` is created and then further to any executing methods. * Hence the two type trackers. */ module PreparedStatement { diff --git a/python/ql/lib/semmle/python/objects/TObject.qll b/python/ql/lib/semmle/python/objects/TObject.qll index 67739933ab8..ee6bcb8340d 100644 --- a/python/ql/lib/semmle/python/objects/TObject.qll +++ b/python/ql/lib/semmle/python/objects/TObject.qll @@ -243,7 +243,7 @@ predicate class_method( * Holds if the literal corresponding to the control flow node `n` has class `cls`. * * Helper predicate for `literal_instantiation`. Prevents a bad join with - * `PointsToContext::appliesTo` from occuring. + * `PointsToContext::appliesTo` from occurring. */ pragma[nomagic] private predicate literal_node_class(ControlFlowNode n, ClassObjectInternal cls) { diff --git a/python/ql/lib/semmle/python/security/BadTagFilterQuery.qll b/python/ql/lib/semmle/python/security/BadTagFilterQuery.qll index e22c00ddc47..d935abce37a 100644 --- a/python/ql/lib/semmle/python/security/BadTagFilterQuery.qll +++ b/python/ql/lib/semmle/python/security/BadTagFilterQuery.qll @@ -28,14 +28,14 @@ private module RegexpMatching { * but if `ignorePrefix` is true, it will only match "foo". */ predicate test(string str, boolean ignorePrefix) { - none() // maybe overriden in subclasses + none() // maybe overridden in subclasses } /** * Same as `test(..)`, but where the `fillsCaptureGroup` afterwards tells which capture groups were filled by the given string. */ predicate testWithGroups(string str, boolean ignorePrefix) { - none() // maybe overriden in subclasses + none() // maybe overridden in subclasses } /** diff --git a/python/ql/lib/semmle/python/security/performance/ExponentialBackTracking.qll b/python/ql/lib/semmle/python/security/performance/ExponentialBackTracking.qll index 5e0fe18ea00..99b4062dfdc 100644 --- a/python/ql/lib/semmle/python/security/performance/ExponentialBackTracking.qll +++ b/python/ql/lib/semmle/python/security/performance/ExponentialBackTracking.qll @@ -51,7 +51,7 @@ * either a single character, a set of characters represented by a * character class, or the set of all characters. * * The product automaton is constructed lazily, starting with pair states - * `(q, q)` where `q` is a fork, and proceding along an over-approximate + * `(q, q)` where `q` is a fork, and proceeding along an over-approximate * step relation. * * The over-approximate step relation allows transitions along pairs of * abstract input symbols where the symbols have overlap in the characters they accept. diff --git a/python/ql/lib/semmle/python/security/strings/External.qll b/python/ql/lib/semmle/python/security/strings/External.qll index 48b61666143..a5116e42e4e 100644 --- a/python/ql/lib/semmle/python/security/strings/External.qll +++ b/python/ql/lib/semmle/python/security/strings/External.qll @@ -35,7 +35,7 @@ deprecated class ExternalStringSequenceKind extends SequenceKind { } /** - * An hierachical dictionary or list where the entire structure is externally controlled + * An hierarchical dictionary or list where the entire structure is externally controlled * This is typically a parsed JSON object. */ deprecated class ExternalJsonKind extends TaintKind { diff --git a/python/ql/test/TestUtilities/InlineExpectationsTest.qll b/python/ql/test/TestUtilities/InlineExpectationsTest.qll index a4d264b2703..3891fcf13a1 100644 --- a/python/ql/test/TestUtilities/InlineExpectationsTest.qll +++ b/python/ql/test/TestUtilities/InlineExpectationsTest.qll @@ -181,7 +181,7 @@ private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)( /** * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first * column in a comment. This column is not precedeeded by a name. `TNamedColumn(name)` represents a - * column containing expected results preceeded by the string `name:`. + * column containing expected results preceded by the string `name:`. */ private newtype TColumn = TDefaultColumn() or diff --git a/python/ql/test/experimental/dataflow/testConfig.qll b/python/ql/test/experimental/dataflow/testConfig.qll index 90bd1d47978..03815e2f7f9 100644 --- a/python/ql/test/experimental/dataflow/testConfig.qll +++ b/python/ql/test/experimental/dataflow/testConfig.qll @@ -8,7 +8,7 @@ * s = SOURCE * SINK(s) * ``` - * `SOURCE` will be a source and the second occurance of `s` will be a sink. + * `SOURCE` will be a source and the second occurrence of `s` will be a sink. * * In order to test literals, alternative sources are defined for each type: *