@forge/lint
5.15.0-next.85.15.0-next.9
out/lint/linters/permission-linter/permission-linter.js~
out/lint/linters/permission-linter/permission-linter.jsModified+9−3
Index: package/out/lint/linters/permission-linter/permission-linter.js
===================================================================
--- package/out/lint/linters/permission-linter/permission-linter.js
+++ package/out/lint/linters/permission-linter/permission-linter.js
@@ -189,9 +189,10 @@
new visitors_1.ProductNodeVisitor(),
new visitors_1.UIHookNodeVisitor(),
new visitors_1.StorageAPINodeVisitor(),
new visitors_1.ExternalApiCallVisitor(),
- new visitors_1.ImageUrlVisitor()
+ new visitors_1.ImageUrlVisitor(),
+ new visitors_1.NotificationAPINodeVisitor()
];
const humanReadableEnvironment = (0, cli_shared_1.environmentToOption)(this.environment);
this.verifiers = {
bitbucket: new verifiers_1.ProductVerifier(humanReadableEnvironment, this.manifest, this.bitbucket, 'bitbucket'),
@@ -199,9 +200,10 @@
jira: new verifiers_1.ProductVerifier(humanReadableEnvironment, this.manifest, this.jira, 'jira'),
storage: new verifiers_1.StorageAPIVerifier(humanReadableEnvironment, this.manifest),
uiHook: new verifiers_1.UIHookVerifier(humanReadableEnvironment, this.manifest),
external: new verifiers_1.ExternalFetchVerifier(humanReadableEnvironment, this.manifest),
- image: new verifiers_1.ImageUrlVerifier(humanReadableEnvironment, this.manifest)
+ image: new verifiers_1.ImageUrlVerifier(humanReadableEnvironment, this.manifest),
+ notification: new verifiers_1.NotificationVerifier(humanReadableEnvironment, this.manifest)
};
}
setupMatchesMap(filepath) {
if (!this.jira || !this.confluence || !this.bitbucket)
@@ -212,9 +214,10 @@
jira: [],
uiHook: [],
storage: [],
external: [],
- image: []
+ image: [],
+ notification: []
});
}
getFixer() {
return exports.fixMissingPermissions;
@@ -236,8 +239,11 @@
break;
case api_call_interface_1.ApiCallTypes.IMAGE:
criteriaMatches.image.push(apiCall);
break;
+ case api_call_interface_1.ApiCallTypes.NOTIFICATION:
+ criteriaMatches.notification.push(apiCall);
+ break;
}
}
async getProductPaths(cacheKey, url) {
const cached = this.cache?.get(cacheKey);