Skip to content

Commit 0a0abd1

Browse files
committed
Remove unused settings and update PMD rules to use correct Visualforce category
1 parent 9de623f commit 0a0abd1

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

.vscode/settings.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,5 @@
3030
"[visualforce]": {
3131
"editor.defaultFormatter": "salesforce.salesforcedx-vscode-visualforce",
3232
"editor.formatOnSave": false
33-
},
34-
"workbench.colorCustomizations": {
35-
"editorRuler.foreground": "#ff4081",
36-
"statusBar.background": null,
37-
"activityBar.background": null
38-
},
39-
"xml.preferences.showSchemaDocumentationType": "none"
33+
}
4034
}

pmd/deployRules.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
<!-- <rule ref="category/apex/errorprone.xml/OverrideBothEqualsAndHashcode" /> -->
309309

310310
<!-- VISUALFORCE RULES -->
311-
<rule ref="category/vf/security.xml/VfHtmlStyleTagXss" message="Dynamic EL content within URL in style tag should be URLENCODED or JSINHTMLENCODED as appropriate">
311+
<rule ref="category/visualforce/security.xml/VfHtmlStyleTagXss" message="Dynamic EL content within URL in style tag should be URLENCODED or JSINHTMLENCODED as appropriate">
312312
<!--
313313
<apex:page>
314314
<style>
@@ -324,12 +324,13 @@
324324
<priority>3</priority>
325325
</rule>
326326

327-
<!--Example <apex:outputText value="Potential XSS is {! here }" escape="false" /> -->
328-
<!-- <rule ref="category/vf/security.xml/VfUnescapeEl" message="Avoid unescaped user controlled content in EL as it results in XSS.">
327+
<!--Example
328+
<apex:outputText value="Potential XSS is {! here }" escape="false" /> -->
329+
<!-- <rule ref="category/visualforce/security.xml/VfUnescapeEl" message="Avoid unescaped user controlled content in EL as it results in XSS.">
329330
<priority>3</priority>
330331
</rule> -->
331332

332333
<!-- Error on apex:page action usage -->
333334
<!-- <apex:page controller="AcRestActionsController" action="{!csrfInitMethod}" > -->
334-
<rule ref="category/vf/security.xml/VfCsrf" />
335-
</ruleset>
335+
<rule ref="category/visualforce/security.xml/VfCsrf" />
336+
</ruleset>

sfdx-source/LabsActionPlans/main/default/permissionsets/Action_Plans_Admin.permissionset-meta.xml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,6 @@
535535
<object>ActionPlan__c</object>
536536
<viewAllRecords>true</viewAllRecords>
537537
</objectPermissions>
538-
<objectPermissions>
539-
<allowCreate>false</allowCreate>
540-
<allowDelete>false</allowDelete>
541-
<allowEdit>false</allowEdit>
542-
<allowRead>true</allowRead>
543-
<modifyAllRecords>false</modifyAllRecords>
544-
<object>Contact</object>
545-
<viewAllRecords>false</viewAllRecords>
546-
</objectPermissions>
547538
<objectPermissions>
548539
<allowCreate>true</allowCreate>
549540
<allowDelete>true</allowDelete>
@@ -653,4 +644,4 @@
653644
<enabled>true</enabled>
654645
<name>ActivitiesAccess</name>
655646
</userPermissions>
656-
</PermissionSet>
647+
</PermissionSet>

0 commit comments

Comments
 (0)