mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Python: Fix grammar
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
32219e58c0
commit
e7c89dc24b
@@ -14,7 +14,7 @@ private import semmle.python.filters.Tests
|
||||
*/
|
||||
Folder projectRoot() { result.getRelativePath() = "" }
|
||||
|
||||
/** A file we ignore because it is a test file, part of a third-part library, or compiled/generated/bundled code. */
|
||||
/** A file we ignore because it is a test file, part of a third-party library, or compiled/generated/bundled code. */
|
||||
class IgnoredFile extends File {
|
||||
IgnoredFile() {
|
||||
any(TestScope ts).getLocation().getFile() = this
|
||||
|
||||
@@ -14,7 +14,7 @@ class RelevantCall extends Call {
|
||||
RelevantCall() { not this.getLocation().getFile() instanceof IgnoredFile }
|
||||
}
|
||||
|
||||
/** Provides classes for call-graph resolution by using points-to */
|
||||
/** Provides classes for call-graph resolution by using points-to. */
|
||||
module PointsTo {
|
||||
/** A call that can be resolved by points-to. */
|
||||
class ResolvableCall extends RelevantCall {
|
||||
@@ -22,7 +22,7 @@ module PointsTo {
|
||||
|
||||
ResolvableCall() { target.getACall() = this.getAFlowNode() }
|
||||
|
||||
/** Gets a resolved target of this call */
|
||||
/** Gets a resolved target of this call. */
|
||||
Value getTarget() { result = target }
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ module PointsTo {
|
||||
}
|
||||
|
||||
/**
|
||||
* A call that can be resolved by points-to, where resolved target is not considered relevant.
|
||||
* A call that can be resolved by points-to, where the resolved target is not considered relevant.
|
||||
* See `ResolvableCallRelevantTarget` for definition of relevance.
|
||||
*/
|
||||
class ResolvableCallIrrelevantTarget extends ResolvableCall {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name Ratio of resolvable call by points-to
|
||||
* @description The percentage (relevant) calls that can be resolved to a target.
|
||||
* @description The percentage of (relevant) calls that can be resolved to a target.
|
||||
* @kind metric
|
||||
* @metricType project
|
||||
* @metricAggregate sum min max avg
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name Resolvable call candidates
|
||||
* @description The number (relevant) calls in the program.
|
||||
* @description The number of (relevant) calls in the program.
|
||||
* @kind metric
|
||||
* @metricType project
|
||||
* @metricAggregate sum
|
||||
|
||||
Reference in New Issue
Block a user