Skip to content

Commit 990a898

Browse files
committed
C#: Remove the Csv name where appropriate.
1 parent d11bca0 commit 990a898

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* INTERNAL use only. This is an experimental API subject to change without notice.
33
*
4-
* Provides classes and predicates for dealing with flow models specified in CSV format.
4+
* Provides classes and predicates for dealing with MaD flow models specified
5+
* in data extensions and CSV format.
56
*
67
* The CSV specification has the following columns:
78
* - Sources:
@@ -380,7 +381,7 @@ private predicate canonicalNamespaceLink(string namespace, string subns) {
380381
}
381382

382383
/**
383-
* Holds if CSV framework coverage of `namespace` is `n` api endpoints of the
384+
* Holds if MaD framework coverage of `namespace` is `n` api endpoints of the
384385
* kind `(kind, part)`.
385386
*/
386387
predicate modelCoverage(string namespace, int namespaces, string kind, string part, int n) {
@@ -412,8 +413,8 @@ predicate modelCoverage(string namespace, int namespaces, string kind, string pa
412413
)
413414
}
414415

415-
/** Provides a query predicate to check the CSV data for validation errors. */
416-
module CsvValidation {
416+
/** Provides a query predicate to check the MaD models for validation errors. */
417+
module ModelValidation {
417418
private string getInvalidModelInput() {
418419
exists(string pred, AccessPath input, string part |
419420
sinkModel(_, _, _, _, _, _, input, _, _) and pred = "sink"
@@ -536,7 +537,7 @@ module CsvValidation {
536537
)
537538
}
538539

539-
/** Holds if some row in a CSV-based flow model appears to contain typos. */
540+
/** Holds if some row in a MaD flow model appears to contain typos. */
540541
query predicate invalidModelRow(string msg) {
541542
msg =
542543
[
@@ -709,7 +710,7 @@ predicate hasSummary(Callable c, boolean generated) { summaryElement(c, _, _, _,
709710
cached
710711
private module Cached {
711712
/**
712-
* Holds if `node` is specified as a source with the given kind in a CSV flow
713+
* Holds if `node` is specified as a source with the given kind in a MaD flow
713714
* model.
714715
*/
715716
cached
@@ -718,7 +719,7 @@ private module Cached {
718719
}
719720

720721
/**
721-
* Holds if `node` is specified as a sink with the given kind in a CSV flow
722+
* Holds if `node` is specified as a sink with the given kind in a MaD flow
722723
* model.
723724
*/
724725
cached

csharp/ql/lib/semmle/code/csharp/dataflow/internal/AccessPathSyntax.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Module for parsing access paths from CSV models, both the identifying access path used
2+
* Module for parsing access paths from MaD models, both the identifying access path used
33
* by dynamic languages, and the input/output specifications for summary steps.
44
*
55
* This file is used by the shared data flow library and by the JavaScript libraries

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ string parameterQualifiedTypeNamesToString(DotNet::Callable c) {
22462246
}
22472247

22482248
/**
2249-
* A module containing predicates related to generating models as data.
2249+
* A module containing predicates related to generating MaD models.
22502250
*/
22512251
module Csv {
22522252
/** Holds if the summary should apply for all overrides of `c`. */

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ module Private {
892892
}
893893

894894
/**
895-
* Provides a means of translating externally (e.g., CSV) defined flow
895+
* Provides a means of translating externally (e.g., MaD) defined flow
896896
* summaries into a `SummarizedCallable`s.
897897
*/
898898
module External {
@@ -1121,7 +1121,7 @@ module Private {
11211121
}
11221122

11231123
/**
1124-
* Holds if `node` is specified as a source with the given kind in a CSV flow
1124+
* Holds if `node` is specified as a source with the given kind in a MaD flow
11251125
* model.
11261126
*/
11271127
predicate isSourceNode(InterpretNode node, string kind) {
@@ -1132,7 +1132,7 @@ module Private {
11321132
}
11331133

11341134
/**
1135-
* Holds if `node` is specified as a sink with the given kind in a CSV flow
1135+
* Holds if `node` is specified as a sink with the given kind in a MaD flow
11361136
* model.
11371137
*/
11381138
predicate isSinkNode(InterpretNode node, string kind) {

csharp/ql/test/library-tests/dataflow/external-models/ExternalFlow.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import csharp
66
import DataFlow::PathGraph
77
import semmle.code.csharp.dataflow.ExternalFlow
8-
import CsvValidation
8+
import ModelValidation
99

1010
class Conf extends TaintTracking::Configuration {
1111
Conf() { this = "ExternalFlow" }

csharp/ql/test/library-tests/dataflow/external-models/sinks.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import csharp
22
import DataFlow
33
import semmle.code.csharp.dataflow.ExternalFlow
4-
import CsvValidation
4+
import ModelValidation
55

66
from DataFlow::Node node, string kind
77
where sinkNode(node, kind)

csharp/ql/test/library-tests/dataflow/external-models/srcs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import csharp
22
import DataFlow
33
import semmle.code.csharp.dataflow.ExternalFlow
4-
import CsvValidation
4+
import ModelValidation
55

66
from DataFlow::Node node, string kind
77
where sourceNode(node, kind)

csharp/ql/test/library-tests/dataflow/external-models/steps.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import csharp
22
import DataFlow
33
import semmle.code.csharp.dataflow.ExternalFlow
4-
import CsvValidation
4+
import ModelValidation
55
import semmle.code.csharp.dataflow.FlowSummary
66
import semmle.code.csharp.dataflow.internal.DataFlowDispatch as DataFlowDispatch
77
import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl

0 commit comments

Comments
 (0)