diff --git a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll index fb978544eb3..58e0335be72 100644 --- a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll +++ b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll @@ -411,7 +411,22 @@ class EnclosingFunctionBody extends EndpointFeature, TEnclosingFunctionBody { } } -/** The feature for the imports defined in the file containing an endpoint. */ +/** + * The feature for the imports defined in the file containing an endpoint. + * + * ### Example + * + * ```javascript + * import { findOne } from 'mongoose'; + * import * as _ from 'lodash'; + * const pg = require('pg'); + * + * // ... + * ``` + * + * In this file, all endpoints will have the value `lodash mongoose pg` for the feature `fileImports`. + * + * */ class FileImports extends EndpointFeature, TFileImports { override string getName() { result = "fileImports" }