This repository was archived by the owner on Mar 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 3.61 KB
/
package.json
File metadata and controls
132 lines (132 loc) · 3.61 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
129
130
131
132
{
"name": "vscode-ddev-phpmd",
"displayName": "DDEV PHPMD",
"description": "[ABANDONED] This project is no longer maintained. Please use Trunk Quality Check instead.",
"version": "0.7.0",
"publisher": "OpenForgeProject",
"license": "GPL-3.0",
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/OpenForgeProject/vscode-ddev-phpmd.git"
},
"engines": {
"vscode": "^1.100.0"
},
"categories": [
"Linters"
],
"keywords": [
"php",
"phpmd",
"ddev",
"linter",
"quality",
"static-analysis",
"mess-detector"
],
"activationEvents": [
"onLanguage:php",
"workspaceContains:**/.ddev/config.yaml"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "DDEV PHPMD",
"properties": {
"ddev-phpmd.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable PHPMD integration. When disabled, no analysis will be performed and diagnostics will be cleared."
},
"ddev-phpmd.validateOn": {
"type": "string",
"enum": [
"save",
"type"
],
"default": "save",
"description": "Run validation when you save the file or when you type"
},
"ddev-phpmd.rulesets": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"cleancode",
"codesize",
"controversial",
"design",
"naming",
"unusedcode"
],
"description": "PHPMD rulesets to use"
},
"ddev-phpmd.minSeverity": {
"type": "string",
"enum": [
"error",
"warning",
"info"
],
"default": "warning",
"description": "Minimum severity level for reported issues"
},
"ddev-phpmd.configPath": {
"type": "string",
"default": "",
"description": "Path to custom PHPMD ruleset XML file (relative to workspace root)"
}
}
},
"commands": [
{
"command": "ddev-phpmd.analyzeCurrentFile",
"title": "DDEV PHPMD: Analyze Current File"
},
{
"command": "ddev-phpmd.enable",
"title": "DDEV PHPMD: Enable"
},
{
"command": "ddev-phpmd.disable",
"title": "DDEV PHPMD: Disable"
},
{
"command": "ddev-phpmd.toggle",
"title": "DDEV PHPMD: Toggle Enable/Disable"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "node esbuild.js",
"watch-tests": "node esbuild.js --watch",
"pretest": "npm run compile-tests && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/sinon": "^17.0.4",
"@types/vscode": "^1.100.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.25.3",
"eslint": "^9.25.1",
"npm-run-all": "^4.1.5",
"sinon": "^20.0.0",
"typescript": "^5.8.3"
}
}