/
package.json
174 lines (174 loc) · 6.03 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"name": "sfdx-code-analyzer-vscode",
"displayName": "Salesforce Code Analyzer",
"description": "Salesforce Code Analyzer is a unified tool for source code analysis. Run Code Analyzer to scan multiple languages in your code and add diagnostic info to your code that describes the violations.",
"bugs": {
"url": "https://github.com/forcedotcom/sfdx-code-analyzer-vscode/issues"
},
"repository": {
"url": "https://github.com/forcedotcom/sfdx-code-analyzer-vscode"
},
"icon": "images/CodeAnalyzer-small.png",
"galleryBanner": {
"color": "#ECECEC",
"theme": "light"
},
"version": "0.5.0",
"publisher": "salesforce",
"license": "BSD-3-Clause",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Programming Languages",
"Linters",
"Testing"
],
"keywords": [
"Salesforce Code Analyzer",
"Salesforce Graph Engine",
"Code Analyzer",
"Graph Engine",
"SFGE",
"SFCA"
],
"dependencies": {
"cross-spawn": "^7.0.3",
"glob": "^8.0.3",
"globby": "^11.0.0",
"semver": "^7.5.4"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.5",
"@types/cross-spawn": "^6.0.2",
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/sinon": "^10.0.15",
"@types/vscode": "^1.74.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"@vscode/vsce": "^2.20.0",
"chai": "^4.3.7",
"eslint": "^8.28.0",
"mocha": "^10.1.0",
"nyc": "^15.1.0",
"ovsx": "^0.8.3",
"sinon": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"activationEvents": [
"workspaceContains:sfdx-project.json"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "sfca.runOnActiveFile",
"title": "SF: Scan current file with Code Analyzer"
},
{
"command": "sfca.runOnSelected",
"title": "SF: Scan selected files or folders with Code Analyzer"
},
{
"command": "sfca.runDfaOnSelectedMethod",
"title": "SF: Scan selected method with Graph Engine path-based analysis"
}
],
"configuration": {
"title": "Salesforce Code Analyzer",
"properties": {
"codeAnalyzer.pMD.customConfigFile": {
"type": "string",
"default": "",
"description": "Replace Code Analyzer's default PMD config file, choose a custom file."
},
"codeAnalyzer.graphEngine.disableWarningViolations": {
"type": "boolean",
"default": false,
"description": "Suppress warning violations, such as those related to StripInaccessible READ access."
},
"codeAnalyzer.graphEngine.threadTimeout": {
"type": "number",
"default": 900000,
"description": "After the thread timeout elapses, the path evaluation aborts. The default timeout is 900,000 milliseconds."
},
"codeAnalyzer.graphEngine.pathExpansionLimit": {
"type": "number",
"default": 0,
"description": "An upper boundary to limit the complexity of code analyzed by Graph Engine. The default of 0 is a dynamically determined limit that's based on heap space. To learn more about heap space, see OutOfMemory errors in the Graph Engine documentation."
},
"codeAnalyzer.graphEngine.jvmArgs": {
"type": "string",
"description": "The Java Virtual Machine (JVM) arguments used to optimize Salesforce Graph Engine execution for your system."
},
"codeAnalyzer.analyzeOnSave.enabled": {
"type": "boolean",
"default": false,
"description": "Scan files on save automatically."
},
"codeAnalyzer.analyzeOnOpen.enabled": {
"type": "boolean",
"default": false,
"description": "Scan files on open automatically."
}
}
},
"menus": {
"commandPalette": [
{
"command": "sfca.runOnActiveFile",
"when": "true"
},
{
"command": "sfca.runOnSelected",
"when": "false"
},
{
"command": "sfca.runDfaOnSelectedMethod",
"when": "false"
}
],
"editor/context": [
{
"command": "sfca.runOnActiveFile"
},
{
"command": "sfca.runDfaOnSelectedMethod"
}
],
"explorer/context": [
{
"command": "sfca.runOnSelected"
}
]
},
"languages": [
{
"id": "apex",
"aliases": [
"Apex",
"apex"
],
"extensions": [
".cls",
".trigger",
".soql",
".apex"
]
}
]
}
}