UNPKG

website-auditfy

Version:

> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y

21 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DetectPossibleTimingAttacksRule = void 0; const eslint_helper_1 = require("../../../linters/eslint.helper"); class DetectPossibleTimingAttacksRule { constructor(dom, lightHouse, htmlValidator, eslint) { this.id = 'detect-possible-timing-attacks'; this.tags = ['javascript', 'security']; this.ruleUrl = 'https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-possible-timing-attacks.md'; this.description = 'Detects insecure comparisons (==, !=, !== and ===), which check input sequentially.'; this.dom = dom; this.eslint = eslint; this.lightHouse = lightHouse; this.htmlValidator = htmlValidator; } check() { return eslint_helper_1.EslintHelper.identifyRuleSecurity(this.id, this.ruleFlow, this.eslint); } } exports.DetectPossibleTimingAttacksRule = DetectPossibleTimingAttacksRule; //# sourceMappingURL=detect-possible-timing-attacks.rule.js.map