-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
116 lines (116 loc) · 3.58 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
{
"name": "php-stan-plugin",
"displayName": "PHPStan Plug-in",
"publisher": "AbdoReda",
"description": "Analyse your php code instantly, catch errors before they happen.",
"version": "0.8.7",
"icon": "assets/logo.png",
"repository": {
"type": "git",
"url": "https://github.com/Abdo-reda/php-stan-vscode-extension"
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Programming Languages"
],
"keywords": ["PHP", "PHPStan", "errors", "static analysis"],
"license": "SEE LICENSE IN LICENSE",
"activationEvents": [
"onLanguage:php"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "php-stan.analyse",
"title": "Run Analysis."
}
],
"configuration": {
"title": "PHPStan",
"properties": {
"php-stan.binary": {
"type": "string",
"enum": [
"phar"
],
"default": "phar",
"markdownDescription": "Approach used to download and execute php-stan. Currently only phar files are used. Later, support for composer will be added. [Reference](https://phpstan.org/user-guide/getting-started#installation)"
},
"php-stan.analysisOn": {
"type": "string",
"enum": [
"manual",
"onSave",
"onChange"
],
"default": "onSave",
"markdownDescription": "When should php-stan analysis run. By default, analysis runs after saving any file. You can however choose to do it manually by running the php-stan analyse command, or after changing the contents of a file."
},
"php-stan.analysisScope": {
"type": "string",
"enum": [
"file",
"directory",
"workspace"
],
"default": "directory",
"markdownDescription": "What will be included in the analysis. By default, analysis runs on the active directory. You can however choose to do it only on the active file or on the entire workspace."
},
"php-stan.level": {
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 9,
"markdownDescription": "Level used for analysis (-l). Only values between 0-9 inclusive are allowed. [Reference](https://phpstan.org/user-guide/rule-levels)"
}
}
},
"icons": {
"php-stan-default": {
"description": "PHPStan Default Icon",
"default": {
"fontPath": "./assets/phpStanIcons.woff",
"fontCharacter": "\\E001"
}
},
"php-stan-success": {
"description": "PHPStan Success Icon",
"default": {
"fontPath": "./assets/phpStanIcons.woff",
"fontCharacter": "\\E002"
}
},
"php-stan-error": {
"description": "PHPStan Error Icon",
"default": {
"fontPath": "./assets/phpStanIcons.woff",
"fontCharacter": "\\E003"
}
}
}
},
"scripts": {
"build": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"package": "mkdir -p build && vsce package --out build/",
"publish": "vsce publish"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "20.x",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.13.0",
"typescript": "^5.6.3",
"@vscode/vsce": "^3.2.1"
}
}