-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
182 lines (182 loc) · 4.83 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
{
"name": "vscode-deodorant",
"displayName": "Deodorant",
"description": "Deodor Python code smell. Detect common student anti-patterns",
"icon": "images/icon.png",
"author": "Team 27 | COMPSCI 399 | Semester One | University of Auckland",
"repository": "https://github.com/mightbesimon/vscode-deodorant/",
"license": "Apache-2.0",
"version": "0.99.99",
"publisher": "mightbesimon",
"contributors": [
"openlawlibrary",
"James-Ansley",
"JKleinsman",
"mightbesimon",
"sson057",
"GoldenBaz"
],
"galleryBanner": {
"color": "#23282f",
"theme": "dark"
},
"engines": {
"vscode": "^1.62.0"
},
"categories": [
"Linters",
"Programming Languages",
"Education"
],
"keywords": [
"anti",
"pattern",
"python",
"lint",
"student",
"beginner",
"pydeodorant",
"pydeodoriser",
"pydeodorisor",
"pydeodorizer",
"pydeodorizor"
],
"activationEvents": [
"onLanguage:python"
],
"contributes": {
"commands": [],
"configuration": {
"type": "object",
"title": "deodorant",
"properties": {
"Deodorant.substructures": {
"type": "object",
"description": "Toggle the detection of different patterns.",
"properties": {
"Unnecessary Elif": {
"type": "boolean"
},
"If/Else Return Bool": {
"type": "boolean"
},
"If Return Bool": {
"type": "boolean"
},
"If/Else Assign Bool Return": {
"type": "boolean"
},
"If/Else Assign Return": {
"type": "boolean"
},
"If/Else Assign Bool": {
"type": "boolean"
},
"Empty If Body": {
"type": "boolean"
},
"Empty Else Body": {
"type": "boolean"
},
"Nested If": {
"type": "boolean"
},
"Unnecessary Else": {
"type": "boolean"
},
"Duplicate If/Else Statement": {
"type": "boolean"
},
"Several Duplicate If/Else Statements": {
"type": "boolean"
},
"Duplicate If/Else Body": {
"type": "boolean"
},
"Augmentable Assignment": {
"type": "boolean"
},
"Duplicate Expression": {
"type": "boolean"
},
"Missed Absolute Value": {
"type": "boolean"
},
"Repeated Addition": {
"type": "boolean"
},
"Repeated Multiplication": {
"type": "boolean"
},
"Redundant Arithmetic": {
"type": "boolean"
},
"Redundant Not": {
"type": "boolean"
},
"Redundant Comparison": {
"type": "boolean"
},
"Mergeable Equal": {
"type": "boolean"
},
"Redundant For": {
"type": "boolean"
},
"Confusing Else": {
"type": "boolean"
},
"Else If": {
"type": "boolean"
}
},
"additionalProperties": false,
"default": {
"Unnecessary Elif": true,
"If/Else Return Bool": true,
"If Return Bool": true,
"If/Else Assign Bool Return": true,
"If/Else Assign Return": true,
"If/Else Assign Bool": true,
"Empty If Body": true,
"Empty Else Body": true,
"Nested If": true,
"Unnecessary Else": true,
"Duplicate If/Else Statement": true,
"Several Duplicate If/Else Statements": true,
"Duplicate If/Else Body": true,
"Augmentable Assignment": true,
"Duplicate Expression": true,
"Missed Absolute Value": true,
"Repeated Addition": true,
"Repeated Multiplication": true,
"Redundant Arithmetic": true,
"Redundant Not": true,
"Redundant Comparison": true,
"Mergeable Equal": true,
"Redundant For": true,
"Confusing Else": true,
"Else If": true
}
}
}
}
},
"main": "./client/out/extension",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w"
},
"devDependencies": {
"@types/node": "^16.11.6",
"@types/vscode": "^1.62.0",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"eslint": "^8.2.0",
"typescript": "^4.4.4"
},
"dependencies": {
"vscode-languageclient": "^7.0.0"
}
}