36
36
* override predicate shown(DataFlow::Node n) { n.getFile().getBaseName() = "server-core.js" }
37
37
* }
38
38
*
39
- * class RouteHandlerPoI extends DefaultEnabledPoI {
39
+ * class RouteHandlerPoI extends ActivePoI {
40
40
* RouteHandlerPoI() { this = "RouteHandlerPoI" }
41
41
* override predicate is(DataFlow::Node l0) { l0 instanceof Express::RouteHandler }
42
42
* }
43
43
*
44
- * class RouteSetupAndRouteHandlerPoI extends DefaultEnabledPoI {
44
+ * class RouteSetupAndRouteHandlerPoI extends ActivePoI {
45
45
* RouteSetupAndRouteHandlerPoI() { this = "RouteSetupAndRouteHandlerPoI" }
46
46
*
47
47
* override predicate is(DataFlow::Node l0, DataFlow::Node l1, string t1) {
@@ -62,11 +62,11 @@ private import semmle.javascript.RestrictedLocations
62
62
* Provides often used points of interest.
63
63
*
64
64
* Note that these points of interest should not extend
65
- * `DefaultEnabledPoI `, and that they can be enabled by default on
65
+ * `ActivePoI `, and that they can be enabled on
66
66
* demand like this:
67
67
*
68
68
* ```
69
- * class MyPoI extends ServerRelatedPoI, DefaultEnabledPoI {}
69
+ * class MyPoI extends ServerRelatedPoI, ActivePoI {}
70
70
* ```
71
71
*/
72
72
private module StandardPoIs {
@@ -172,11 +172,11 @@ private module StandardPoIs {
172
172
}
173
173
174
174
/**
175
- * Provides groups of often used point of interest.
175
+ * Provides groups of often used points of interest.
176
176
*/
177
177
module StandardPoIGroups {
178
178
/**
179
- * A server-related points of interest.
179
+ * A server-related point of interest.
180
180
*/
181
181
class ServerRelatedPoI extends PoI {
182
182
ServerRelatedPoI ( ) {
@@ -187,7 +187,7 @@ private module StandardPoIs {
187
187
}
188
188
189
189
/**
190
- * A configuration-related points of interest.
190
+ * A configuration-related point of interest.
191
191
*/
192
192
class DataFlowConfigurationPoI extends PoI {
193
193
DataFlowConfigurationPoI ( ) {
@@ -207,13 +207,13 @@ import StandardPoIs
207
207
* enabled in the absence of an explicit
208
208
* `PoIConfiguration::enabled/1`.
209
209
*/
210
- abstract class DefaultEnabledPoI extends PoI {
210
+ abstract class ActivePoI extends PoI {
211
211
bindingset [ this ]
212
- DefaultEnabledPoI ( ) { any ( ) }
212
+ ActivePoI ( ) { any ( ) }
213
213
}
214
214
215
215
private module PoIConfigDefaults {
216
- predicate enabled ( PoI poi ) { poi instanceof DefaultEnabledPoI }
216
+ predicate enabled ( PoI poi ) { poi instanceof ActivePoI }
217
217
218
218
predicate shown ( Node n ) { not classify ( n .getFile ( ) , _) }
219
219
}
0 commit comments