-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
198 lines (198 loc) · 6.86 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"name": "vscode-php-codesniffer",
"displayName": "PHP_CodeSniffer",
"description": "Brings PHPCS support to VS Code.",
"version": "3.0.2",
"license": "GPL-2.0-or-later",
"author": "Christopher Allford (https://github.com/ObliviousHarmony)",
"repository": {
"type": "git",
"url": "https://github.com/ObliviousHarmony/vscode-php-codesniffer.git"
},
"publisher": "obliviousharmony",
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#B0B3D6",
"theme": "dark"
},
"categories": [
"Programming Languages",
"Linters"
],
"keywords": [
"php",
"linter",
"fixer",
"phpcs",
"phpcbf"
],
"engines": {
"vscode": "^1.77.0"
},
"main": "extension.js",
"extensionKind": [
"workspace"
],
"activationEvents": [
"onLanguage:php"
],
"contributes": {
"configuration": {
"title": "PHP_CodeSniffer",
"properties": {
"phpCodeSniffer.autoExecutable": {
"type": "boolean",
"markdownDescription": "Attempts to find `bin/phpcs` in the file folder and parent directories' vendor folder before falling back to the platform-specific executable.",
"default": false,
"scope": "resource"
},
"phpCodeSniffer.autoloadPHPCSIntegration": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether or not the PHPCS integration files are available through the autoloader. This should only be enabled when the integration files are provided via Composer.",
"scope": "resource"
},
"phpCodeSniffer.exec.linux": {
"type": "string",
"markdownDescription": "The path to the PHPCS executable we want to use on Linux when `#phpCodeSniffer.autoExecutable#` is disabled or unable to find one.",
"default": "phpcs",
"scope": "machine-overridable"
},
"phpCodeSniffer.exec.osx": {
"type": "string",
"markdownDescription": "The path to the PHPCS executable we want to use on OSX when `#phpCodeSniffer.autoExecutable#` is disabled or unable to find one.",
"default": "phpcs",
"scope": "machine-overridable"
},
"phpCodeSniffer.exec.windows": {
"type": "string",
"markdownDescription": "The path to the PHPCS executable we want to use on Windows when `#phpCodeSniffer.autoExecutable#` is disabled or unable to find one.",
"default": "phpcs.bat",
"scope": "machine-overridable"
},
"phpCodeSniffer.exclude": {
"type": "array",
"description": "Glob patterns for files and folders that should be ignored by the extension.",
"default": [
"**/vendor/**"
],
"items": {
"type": "string"
},
"scope": "resource"
},
"phpCodeSniffer.lintAction": {
"type": "string",
"description": "The editor action that will cause the linter to run.",
"default": "Change",
"enum": [
"Change",
"Save"
],
"enumDescriptions": [
"Lints whenever a document is changed.",
"Lints when a document is saved."
],
"scope": "resource"
},
"phpCodeSniffer.standard": {
"type": "string",
"description": "The coding standard that should be used by PHPCS.",
"default": "Disabled",
"enum": [
"Disabled",
"Default",
"Automatic",
"PEAR",
"MySource",
"Squiz",
"PSR1",
"PSR12",
"Custom"
],
"enumDescriptions": [
"Disables the PHP_CodeSniffer extension's linting.",
"Allows PHPCS to decide the coding standard.",
"Searches for a coding standard configuration file in the current document's folder and parent directories.",
"Uses the PEAR coding standard.",
"Uses the MySource coding standard.",
"Uses the Squiz coding standard.",
"Uses the PSR-1 coding standard.",
"Uses the PSR-12 coding standard,",
"Uses the custom standard referenced in the custom ruleset option."
],
"scope": "resource"
},
"phpCodeSniffer.standardCustom": {
"type": "string",
"markdownDescription": "The custom coding standard to use if `#phpCodeSniffer.standard#` is set to 'Custom'.",
"default": "",
"scope": "resource"
},
"phpCodeSniffer.executable": {
"type": "string",
"markdownDescription": "The path to the PHPCS executable we want to use when `#phpCodeSniffer.autoExecutable#` is disabled or unable to find one.",
"markdownDeprecationMessage": "Executables are now be platform-specific; use `#phpCodeSniffer.exec.linux#`, `#phpCodeSniffer.exec.osx#`, or `#phpCodeSniffer.exec.windows#` instead.",
"default": null,
"scope": "machine-overridable"
},
"phpCodeSniffer.specialOptions": {
"type": "object",
"description": "An object of special options for the extension that serve more narrow use-cases.",
"default": {},
"properties": {},
"additionalProperties": false,
"scope": "resource"
},
"phpCodeSniffer.ignorePatterns": {
"type": "array",
"description": "An array of regular expressions for paths that should be ignored by the extension.",
"markdownDeprecationMessage": "File and folder exclusions should use glob patterns in `#phpCodeSniffer.exclude#` instead.",
"default": null,
"items": {
"type": "string"
},
"scope": "resource"
}
}
},
"commands": [
{
"command": "phpCodeSniffer.cancelProcessing",
"title": "PHP_CodeSniffer: Cancel Processing"
}
]
},
"dependencies": {
"minimatch": "^5.1.2",
"split-string": "^6.1.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/minimatch": "^5.1.2",
"@types/node": "^16.11.7",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^6.0.1",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.3",
"webpack": "^5.78.0",
"webpack-cli": "^5.0.1"
},
"scripts": {
"vscode:prepublish": "npm run clean && webpack --mode production",
"clean": "rimraf extension.js extension.js.map",
"build": "webpack --mode development",
"watch": "webpack --mode development --watch",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"test": "jest"
}
}