From 246441e46ebbaff080910a7e893d0830a09d9cf5 Mon Sep 17 00:00:00 2001 From: Stephen Carter Date: Wed, 18 Dec 2024 16:28:43 -0500 Subject: [PATCH] Remove metadata based file extensions --- .../main/resources/sfca/rulesets/AppExchange_xml.xml | 4 ---- packages/code-analyzer-pmd-engine/src/constants.ts | 10 +--------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/code-analyzer-pmd-engine/pmd-rules/src/main/resources/sfca/rulesets/AppExchange_xml.xml b/packages/code-analyzer-pmd-engine/pmd-rules/src/main/resources/sfca/rulesets/AppExchange_xml.xml index 90497845..3bf7b20b 100644 --- a/packages/code-analyzer-pmd-engine/pmd-rules/src/main/resources/sfca/rulesets/AppExchange_xml.xml +++ b/packages/code-analyzer-pmd-engine/pmd-rules/src/main/resources/sfca/rulesets/AppExchange_xml.xml @@ -13,7 +13,6 @@ Detects use of Api.Session_ID or GETSESSIONID() to retrieve a session ID. 2 - Detects use of API versions with Lightning Locker disabled in Aura components. Use API version 40 or greater. 1 - Detects if "Disable Protocol Security" setting is true. 3 - Detects instances of a Remote Site Settings that use HTTP. Use HTTPS instead. 3 - = { [Language.XML]: [ // FROM PMD's XmlLanguageModule: - '.xml', - - // Salesforce metadata file extensions to associate to XML language, specifically for the AppExchange rules: - // Note: The metadata api pages over at - // https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_types_list.htm - // helps to list the file extensions for each metadata type. For example, the RemoteSiteSettings page - // https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_remotesitesetting.htm - // specifies that .remoteSite is the file extension for remote site settings files. - '.object', '.tab', '.remoteSite' + '.xml' ] }