3636 * override predicate shown(DataFlow::Node n) { n.getFile().getBaseName() = "server-core.js" }
3737 * }
3838 *
39- * class RouteHandlerPoI extends DefaultEnabledPoI {
39+ * class RouteHandlerPoI extends ActivePoI {
4040 * RouteHandlerPoI() { this = "RouteHandlerPoI" }
4141 * override predicate is(DataFlow::Node l0) { l0 instanceof Express::RouteHandler }
4242 * }
4343 *
44- * class RouteSetupAndRouteHandlerPoI extends DefaultEnabledPoI {
44+ * class RouteSetupAndRouteHandlerPoI extends ActivePoI {
4545 * RouteSetupAndRouteHandlerPoI() { this = "RouteSetupAndRouteHandlerPoI" }
4646 *
4747 * override predicate is(DataFlow::Node l0, DataFlow::Node l1, string t1) {
@@ -62,11 +62,11 @@ private import semmle.javascript.RestrictedLocations
6262 * Provides often used points of interest.
6363 *
6464 * 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
6666 * demand like this:
6767 *
6868 * ```
69- * class MyPoI extends ServerRelatedPoI, DefaultEnabledPoI {}
69+ * class MyPoI extends ServerRelatedPoI, ActivePoI {}
7070 * ```
7171 */
7272private module StandardPoIs {
@@ -172,11 +172,11 @@ private module StandardPoIs {
172172 }
173173
174174 /**
175- * Provides groups of often used point of interest.
175+ * Provides groups of often used points of interest.
176176 */
177177 module StandardPoIGroups {
178178 /**
179- * A server-related points of interest.
179+ * A server-related point of interest.
180180 */
181181 class ServerRelatedPoI extends PoI {
182182 ServerRelatedPoI ( ) {
@@ -187,7 +187,7 @@ private module StandardPoIs {
187187 }
188188
189189 /**
190- * A configuration-related points of interest.
190+ * A configuration-related point of interest.
191191 */
192192 class DataFlowConfigurationPoI extends PoI {
193193 DataFlowConfigurationPoI ( ) {
@@ -207,13 +207,13 @@ import StandardPoIs
207207 * enabled in the absence of an explicit
208208 * `PoIConfiguration::enabled/1`.
209209 */
210- abstract class DefaultEnabledPoI extends PoI {
210+ abstract class ActivePoI extends PoI {
211211 bindingset [ this ]
212- DefaultEnabledPoI ( ) { any ( ) }
212+ ActivePoI ( ) { any ( ) }
213213}
214214
215215private module PoIConfigDefaults {
216- predicate enabled ( PoI poi ) { poi instanceof DefaultEnabledPoI }
216+ predicate enabled ( PoI poi ) { poi instanceof ActivePoI }
217217
218218 predicate shown ( Node n ) { not classify ( n .getFile ( ) , _) }
219219}
0 commit comments