-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
202 lines (202 loc) · 7.69 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
199
200
201
202
{
"name": "helly25iwyu",
"displayName": "IWYU: Include What You Use",
"description": "This extension allows to use IWYU (Include What You Use) in VScode.",
"keywords": [
"iwyu",
"Include What You Use",
"include-what-you-use"
],
"version": "0.0.18",
"publisher": "helly25",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/helly25/vscode-iwyu.git"
},
"icon": "images/logo.png",
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:cpp"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "iwyu.run.one",
"title": "Include What You Use (current file)"
},
{
"command": "iwyu.run.all",
"title": "Include What You Use (all targets)"
}
],
"configuration": {
"title": "Include What You Use",
"properties": {
"iwyu.compile_commands": {
"type": "string",
"default": "auto",
"markdownDescription": "Path to `compile_commands.json` file (supports `${workspaceFolder}`, `${fileWorkspaceFolder}` and `${workspaceRoot}`). If this is set to the default `auto`, then the extension will try `${workspaceFolder}/compile_commands.json`, `${workspaceFolder}/build/compile_commands.json`, `${fileWorkspaceFolder}/compile_commands.json` and `${fileWorkspaceFolder}/build/compile_commands.json`."
},
"iwyu.filter_iwyu_output": {
"type": "string",
"default": "",
"markdownDescription": "Regexp expression filter for iwyu output. This will be used as {here} in '#include.*({here})'. For instance in order to not add system includes under '__fwd/*.', set this to '<__fwd/'. This does not result in removing such headers, it merely prevents adding them, so it won't produce diagnostics for such includes."
},
"iwyu.fix_includes.py": {
"type": "string",
"default": "fix_includes.py",
"markdownDescription": "Path to the `fix_includes.py` executable."
},
"iwyu.diagnostics.full_line_squiggles": {
"type": "boolean",
"default": "true",
"description": "Whether to underline the whole line with squiggles or only the actual include part."
},
"iwyu.diagnostics.include_guard_files": {
"type": "string",
"default": "[.](h|hh|hpp|hxx)$",
"description": "Regular expression for files that should be checked for include guards."
},
"iwyu.diagnostics.include_guard": {
"type": "string",
"default": "",
"description": "If this is non empty, then include guards are checked. The relative filename is denoted as '${file}' (as-is) or '${FILE}' (uppercase), so in order to require all caps include guards that end in a '_' this must be set to '${FILE}_' (e.g. 'path/foo.h' then becomes 'PATH_FOO_H_')."
},
"iwyu.diagnostics.iwyu_interval": {
"type": "number",
"default": 5,
"description": "Minimum interval time in seconds between iwyu calls."
},
"iwyu.diagnostics.only_re": {
"type": "string",
"default": "",
"description": "Only compute diagnostics for files that match this regexp."
},
"iwyu.diagnostics.scan_min": {
"type": "number",
"default": 200,
"minimum": 10,
"description": "Scan at least this many lines, if no include is found, then stop (min 10). The scanner does not count lines that start with `#` and `//`."
},
"iwyu.diagnostics.scan_more": {
"type": "number",
"default": 10,
"minimum": 1,
"description": "After finding an include, scan at least this many more lines (min 1)."
},
"iwyu.diagnostics.unused_includes": {
"type": "boolean",
"default": true,
"description": "Enables diagnostic squigglies for unused includes."
},
"iwyu.include-what-you-use": {
"type": "string",
"default": "include-what-you-use",
"description": "Path to the `include-what-you-use` executable."
},
"iwyu.iwyu.additional_params": {
"type": "string",
"default": "",
"markdownDescription": "Additional parameters you wish to pass to iwyu (must be prefixed with `-Xiwyu` in order to affect iwyu, otherwise will affect the compiler)."
},
"iwyu.iwyu.keep": {
"type": "array",
"default": [],
"description": "A glob that tells iwyu to always keep these includes."
},
"iwyu.iwyu.mapping_file": {
"type": "string",
"default": "",
"description": "Mapping file to use if any."
},
"iwyu.iwyu.max_line_length": {
"type": "integer",
"default": 80,
"description": "Maximum line length for includes.Note that this only affects comments and alignment thereof, the maximum line length can still be exceeded with long file names."
},
"iwyu.iwyu.no_default_mappings": {
"type": "boolean",
"default": false,
"description": "Do not add iwyu's default mappings."
},
"iwyu.iwyu.no_fwd_decls": {
"type": "boolean",
"default": false,
"description": "Do not use forward declarations."
},
"iwyu.iwyu.transitive_includes_only": {
"type": "boolean",
"default": true,
"description": "Do not suggest that a file add foo.h unless foo.h is already visible in the file's transitive includes."
},
"iwyu.fix.comments": {
"type": "boolean",
"default": false,
"description": "Put comments after the #include lines."
},
"iwyu.fix.dry_run": {
"type": "boolean",
"default": false,
"description": "Do not actually edit any files; just print diffs on the log OUTPUT."
},
"iwyu.fix.ignore_re": {
"type": "string",
"default": "",
"description": "Skip editing any file whose name matches this regular expression."
},
"iwyu.fix.only_re": {
"type": "string",
"default": "",
"description": "Skip editing any file whose name does NOT match this regular expression."
},
"iwyu.fix.reorder": {
"type": "boolean",
"default": true,
"description": "Re-order lines relative to other similar lines (e.g. headers relative to other headers)."
},
"iwyu.fix.safe_headers": {
"type": "boolean",
"default": false,
"description": "Do not remove unused #includes/fwd-declares from header files; just add new ones."
},
"iwyu.fix.update_comments": {
"type": "boolean",
"default": false,
"markdownDescription": "Replace *why* comments with the ones provided by IWYU."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "node ./out/test/runTest.js",
"eslint": "eslint"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.2",
"@types/vscode": "^1.92.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.9.1",
"glob": "^11.0.0",
"globals": "^15.9.0",
"mocha": "^10.7.3",
"typescript": "^5.5.4",
"typescript-eslint": "^8.3.0"
}
}