-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathpackage.json
More file actions
128 lines (128 loc) · 4.8 KB
/
Copy pathpackage.json
File metadata and controls
128 lines (128 loc) · 4.8 KB
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
{
"name": "sanctifier-soroban",
"displayName": "Sanctifier — Soroban security hints",
"description": "Highlights common Soroban smart contract security issues while you edit Rust (panic/unwrap, auth gaps, risky arithmetic).",
"version": "0.1.0",
"publisher": "sanctifier",
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Linters",
"Programming Languages"
],
"keywords": [
"soroban",
"stellar",
"security",
"rust",
"smart contracts"
],
"activationEvents": [
"onLanguage:rust"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Sanctifier",
"properties": {
"sanctifier.enable": {
"type": "boolean",
"default": true,
"description": "Run Soroban security analysis in the editor.",
"markdownDescription": "Enable or disable in-editor Soroban security diagnostics (S001–S006)."
},
"sanctifier.debounceMs": {
"type": "number",
"default": 400,
"minimum": 100,
"maximum": 5000,
"description": "Delay after typing before re-running analysis.",
"markdownDescription": "Milliseconds to wait after the last keystroke before re-running analysis. Lower values give faster feedback; higher values reduce CPU usage on large files."
},
"sanctifier.sanctifierPath": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Optional path to the sanctifier CLI executable.",
"markdownDescription": "Absolute path to the `sanctifier` CLI binary used for full workspace scans.\n\n**Security:** Only set this to a binary you trust. The extension will ask for confirmation before running a binary located outside the current workspace folder."
},
"sanctifier.onlyInSorobanWorkspace": {
"type": "boolean",
"default": true,
"description": "If true, only activate in workspaces whose Cargo.toml references soroban-sdk.",
"markdownDescription": "When enabled, diagnostics only appear in workspaces that contain a `Cargo.toml` referencing `soroban-sdk`. Disable to run in any Rust project."
},
"sanctifier.minSeverity": {
"type": "string",
"enum": ["error", "warning", "information"],
"enumDescriptions": [
"Show only errors.",
"Show warnings and errors (recommended).",
"Show all findings including informational hints."
],
"default": "warning",
"description": "Minimum severity level to surface in the editor. Findings below this threshold are silently suppressed."
},
"sanctifier.telemetry.enabled": {
"type": "boolean",
"default": false,
"description": "Send anonymous usage telemetry (scan count, finding count by rule, extension version, VS Code version). No source code or file paths are ever sent.",
"markdownDescription": "When enabled, Sanctifier sends anonymous usage data to help prioritize improvements. **No source code, file paths, or personal data is ever collected.** See the [privacy policy](https://github.com/HyperSafeD/Sanctifier/blob/main/vscode-extension/PRIVACY.md) for details."
}
}
},
"commands": [
{
"command": "sanctifier.analyzeWorkspace",
"title": "Sanctifier: Analyze workspace with CLI (JSON)"
},
{
"command": "sanctifier.exportSarif",
"title": "Sanctifier: Export findings as SARIF"
},
{
"command": "sanctifier.importSarif",
"title": "Sanctifier: Import SARIF file"
},
{
"command": "sanctifier.toggleEnable",
"title": "Sanctifier: Toggle enable/disable"
},
{
"command": "sanctifier.showOutput",
"title": "Sanctifier: Show output channel"
},
{
"command": "sanctifier.openSarifViewer",
"title": "Sanctifier: Open Full Report in SARIF Viewer"
},
{
"command": "sanctifier.suppressFinding",
"title": "Sanctifier: Suppress finding"
}
]
},
"scripts": {
"license-check": "license-checker --production --json --out license-report.json",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "jest --passWithNoTests",
"lint": "eslint src --ext .ts --max-warnings 0"
},
"devDependencies": {
"license-checker": "^25.0.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript": "^5.3.0",
"vitest": "^1.6.0"
}
}