"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RULE_MAPPINGS = void 0;
const code_analyzer_engine_api_1 = require("@salesforce/code-analyzer-engine-api");
const APP_EXCHANGE_TAG = "AppExchange";
/**
 * The following is a list of the base PMD rules that we have reviewed where we have designated the rule tags and
 * severity (most important to determine if the "Recommended" tag is applied or not). This also helps fixed these values
 * just in case PMD decides to change them.
 *
 * Any base PMD rule not listed here will get flagged by one of our unit tests to be reviewed. All other rules must
 * then be custom rules which the user has added themselves, and thus will automatically get "Recommended" and "Custom"
 * tag applied with a severity level defined by our default mapping from PMD's severity levels.
 */
exports.RULE_MAPPINGS = {
    // =================================================================================================================
    //   PMD-APEX RULES
    // =================================================================================================================
    "AnnotationsNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexAssertionsShouldIncludeMessage": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexBadCrypto": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexCRUDViolation": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexCSRF": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexDangerousMethods": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexDoc": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DOCUMENTATION, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexInsecureEndpoint": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexOpenRedirect": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexSharingViolations": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexSOQLInjection": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexSuggestUsingNamedCred": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexUnitTestClassShouldHaveAsserts": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexUnitTestClassShouldHaveRunAs": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexUnitTestMethodShouldHaveIsTestAnnotation": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexUnitTestShouldNotUseSeeAllDataTrue": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexXSSFromEscapeFalse": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ApexXSSFromURLParam": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidBooleanMethodParameters": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidDebugStatements": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidDeeplyNestedIfStmts": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidDirectAccessTriggerMap": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidGlobalModifier": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodingId": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidLogicInTrigger": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidNonExistentAnnotations": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidNonRestrictiveQueries": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidStatefulDatabaseResult": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ClassNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "CognitiveComplexity": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "CyclomaticComplexity": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "DebugsShouldUseLoggingLevel": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EagerlyLoadedDescribeSObjectResult": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EmptyCatchBlock": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EmptyIfStmt": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EmptyStatementBlock": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EmptyTryOrFinallyBlock": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "EmptyWhileStmt": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ExcessiveClassLength": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ExcessiveParameterList": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ExcessivePublicCount": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "FieldDeclarationsShouldBeAtStart": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "FieldNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "ForLoopsMustUseBraces": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "FormalParameterNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "IfElseStmtsMustUseBraces": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "IfStmtsMustUseBraces": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "InaccessibleAuraEnabledGetter": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "LocalVariableNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "MethodNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "MethodWithSameNameAsEnclosingClass": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "NcssConstructorCount": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "NcssMethodCount": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "NcssTypeCount": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "OneDeclarationPerLine": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "OperationWithHighCostInLoop": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "OperationWithLimitsInLoop": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "OverrideBothEqualsAndHashcode": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "PropertyNamingConventions": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "QueueableWithoutFinalizer": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "StdCyclomaticComplexity": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "TestMethodsMustBeInTestClasses": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "TooManyFields": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "TypeShadowsBuiltInNamespace": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "UnusedLocalVariable": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "UnusedMethod": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.DESIGN, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "WhileLoopsMustUseBraces": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    // =================================================================================================================
    //   PMD-HTML RULES
    // =================================================================================================================
    "AvoidInlineStyles": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.HTML]
    },
    "UnnecessaryTypeAttribute": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.HTML]
    },
    "UseAltAttributeForImages": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.HTML]
    },
    // =================================================================================================================
    //   PMD-JAVASCRIPT RULES
    // =================================================================================================================
    "AssignmentInOperand": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "AvoidConsoleStatements": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.PERFORMANCE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "AvoidTrailingComma": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "AvoidWithStatement": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "ConsistentReturn": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "EqualComparison": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "ForLoopsMustUseBraces-javascript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "GlobalVariable": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "IfElseStmtsMustUseBraces-javascript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "IfStmtsMustUseBraces-javascript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "InaccurateNumericLiteral": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "NoElseReturn": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "ScopeForInVariable": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "UnnecessaryBlock": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "UnnecessaryParentheses": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Low,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "UnreachableCode": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "UseBaseWithParseInt": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    "WhileLoopsMustUseBraces-javascript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.CODE_STYLE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    // =================================================================================================================
    //   PMD-VISUALFORCE RULES
    // =================================================================================================================
    "VfCsrf": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "VfHtmlStyleTagXss": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "VfUnescapeEl": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [code_analyzer_engine_api_1.COMMON_TAGS.RECOMMENDED, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    // =================================================================================================================
    //   PMD-XML RULES
    // =================================================================================================================
    "MissingEncoding": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.BEST_PRACTICES, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "MistypedCDATASection": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.ERROR_PRONE, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    // =================================================================================================================
    //   SFCA-PMD-RULES - APPEXCHANGE HTML RULES
    // =================================================================================================================
    "AvoidHardCodedCredentialsInAura": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.HTML]
    },
    "AvoidUnescapedHtmlInAura": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.HTML]
    },
    // Until further notice, the Product Security team feels it is best to remove this rule until they can make it
    // more stable since the PMD HTML parser seems to throw errors on a number of LWC HTML files.
    // "DetectUseLwcDomManual": {
    //     severity: SeverityLevel.Moderate,
    //     tags: [/* NOT RECOMMENDED */  APP_EXCHANGE_TAG, COMMON_TAGS.CATEGORIES.SECURITY, COMMON_TAGS.LANGUAGES.HTML]
    // },
    // =================================================================================================================
    //   SFCA-PMD-RULES - APPEXCHANGE XML RULES
    // =================================================================================================================
    "AvoidApiSessionId": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidAuraWithLockerDisabled": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidDisableProtocolSecurityRemoteSiteSetting": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidInsecureHttpRemoteSiteSetting": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidJavaScriptCustomObject": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidJavaScriptInUrls": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidJavaScriptWebLink": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidJavaScriptHomePageComponent": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidLmcIsExposedTrue": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "AvoidSControls": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "LimitConnectedAppScope": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "ProtectSensitiveData": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    "UseHttpsCallbackUrlConnectedApp": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.XML]
    },
    // =================================================================================================================
    //   SFCA-PMD-RULES - APPEXCHANGE APEX RULES
    // =================================================================================================================
    "AvoidChangeProtectionUnprotected": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidGetInstanceWithTaint": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidGlobalInstallUninstallHandlers": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodedCredentialsInFieldDecls": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodedCredentialsInHttpHeader": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodedCredentialsInSetPassword": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodedCredentialsInVarAssign": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidHardcodedCredentialsInVarDecls": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidInvalidCrudContentDistribution": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidSecurityEnforcedOldApiVersion": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidUnauthorizedApiSessionIdInApex": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidUnauthorizedGetSessionIdInApex": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    "AvoidUnsafePasswordManagementUse": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Critical,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.APEX]
    },
    // =================================================================================================================
    //   SFCA-PMD-RULES - APPEXCHANGE JAVASCRIPT RULES
    // =================================================================================================================
    "AvoidLwcBubblesComposedTrue": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.JAVASCRIPT]
    },
    // =================================================================================================================
    //   SFCA-PMD-RULES - APPEXCHANGE VISUALFORCE RULES
    // =================================================================================================================
    "AvoidCreateElementScriptLinkTag": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "AvoidHardcodedSecretsInVFAttrs": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "AvoidUnauthorizedApiSessionIdInVisualforce": {
        severity: code_analyzer_engine_api_1.SeverityLevel.Moderate,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "AvoidUnauthorizedGetSessionIdInVisualforce": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "LoadCSSApexStylesheet": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "LoadCSSLinkHref": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "LoadJavaScriptHtmlScript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    },
    "LoadJavaScriptIncludeScript": {
        severity: code_analyzer_engine_api_1.SeverityLevel.High,
        tags: [/* NOT RECOMMENDED */ APP_EXCHANGE_TAG, code_analyzer_engine_api_1.COMMON_TAGS.CATEGORIES.SECURITY, code_analyzer_engine_api_1.COMMON_TAGS.LANGUAGES.VISUALFORCE]
    }
};
//# sourceMappingURL=pmd-rule-mappings.js.map