-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
150 lines (150 loc) · 6.15 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
{
"name": "cpplint",
"displayName": "cpplint",
"description": "code style check tool extension for cpplint",
"version": "0.1.3",
"publisher": "mine",
"repository": {
"type": "Git",
"url": "https://github.com/secularbird/cpplint-extension"
},
"engines": {
"vscode": "^1.21.0"
},
"categories": [
"Linters"
],
"keywords": [
"multi-root ready"
],
"activationEvents": [
"onLanguage:cpp",
"onLanguage:c",
"onCommand:cpplint.runAnalysis",
"onCommand:cpplint.runWholeAnalysis"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "cpplint.runAnalysis",
"title": "Analyze current file",
"category": "cpplinter"
},
{
"command": "cpplint.runWholeAnalysis",
"title": "Analyze current workspace",
"category": "cpplinter"
}
],
"configuration": {
"type": "object",
"title": "cpplint",
"properties": {
"cpplint.cpplintPath": {
"type": "string",
"default": "/usr/local/bin/cpplint",
"description": "The path to the cpplint executable. If not set, the default location will be used."
},
"cpplint.lintMode": {
"type": "string",
"default": "single",
"enum": [
"single",
"workspace"
],
"description": "single is fast, only provides information of current active file, workspace is slow, provides informations of the whole workspace"
},
"cpplint.lineLength": {
"type": "number",
"default": 80,
"description": "This is the allowed line length for the project."
},
"cpplint.excludes": {
"type": "array",
"default": [],
"description": "Exclude the given path from the list of files to be linted.Relative paths are evaluated relative to the current directory and shell globbing is performed"
},
"cpplint.filters": {
"type": "array",
"default": [],
"description": "Specify a comma-separated list of category-filters to apply: only error messages whose category names pass the filters will be printed."
},
"cpplint.verbose": {
"type": "number",
"default": 0,
"enum": [
0,
1,
2,
4,
5
],
"description": "Specify a number 0-5 to restrict errors to certain verbosity levels. Errors with lower verbosity levels have lower confidence and are more likely to be false positives."
},
"cpplint.repository": {
"type": "string",
"default": "${workspaceFolder}",
"description": "The top level directory of the repository, used to derive the header guard CPP variable. By default, this is determined by searching for a path that contains .git, .hg, or .svn. When this flag is specified, the given path is used instead. This option allows the header guard CPP variable to remain consistent even if members of a team have different repository root directories (such as when checking out a subdirectory with SVN). In addition, users of non-mainstream version control systems can use this flag to ensure readable header guard CPP variables."
},
"cpplint.root": {
"type": "string",
"default": "${workspaceFolder}/include",
"description": "The root directory used for deriving header guard CPP variables. This directory is relative to the top level directory of the repository which by default is determined by searching for a directory that contains .git, .hg, or .svn but can also be controlled with the --repository flag. If the specified directory does not exist, this flag is ignored."
},
"cpplint.extensions": {
"type": "array",
"default": [
"cpp",
"h++",
"cuh",
"c",
"c++",
"cu",
"hxx",
"hpp",
"cc",
"cxx",
"h"
],
"description": "The allowed file extensions that cpplint will check."
},
"cpplint.languages": {
"type": "array",
"default": [
"cpp",
"c"
],
"description": "The allowed vscode language identifiers that cpplint will check."
},
"cpplint.headers": {
"type": "array",
"default": [
"h++",
"cuh",
"hxx",
"hpp",
"h"
],
"description": "The allowed header extensions that cpplint will consider to be header files."
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
},
"dependencies": {
"lodash": "^4.17.4"
}
}