|
35 | 35 | "checkpatch.checkpatchPath": { |
36 | 36 | "type": "string", |
37 | 37 | "default": "checkpatch.pl", |
38 | | - "description": "Path to the checkpatch.pl script" |
| 38 | + "description": "Path to the checkpatch.pl script. Should be set at least for the root workspace", |
| 39 | + "scope": "resource" |
39 | 40 | }, |
40 | 41 | "checkpatch.checkpatchArgs": { |
41 | 42 | "type": "array", |
42 | 43 | "default": [ |
43 | 44 | "--no-tree" |
44 | 45 | ], |
45 | | - "description": "Arguments for the checkpatch script" |
| 46 | + "description": "Arguments for the checkpatch script", |
| 47 | + "scope": "resource" |
46 | 48 | }, |
47 | 49 | "checkpatch.run": { |
48 | 50 | "type": "string", |
|
51 | 53 | "manual" |
52 | 54 | ], |
53 | 55 | "default": "onSave", |
54 | | - "description": "Whether the linter is run automatically on save or manually." |
| 56 | + "description": "Whether the linter is run automatically on save or manually" |
55 | 57 | }, |
56 | 58 | "checkpatch.exclude": { |
57 | 59 | "type": "array", |
58 | 60 | "default": [], |
59 | | - "description": "Glob patterns for excluding files and folders from automatic checks." |
| 61 | + "description": "Glob patterns for excluding files and folders from automatic checks", |
| 62 | + "scope": "resource" |
60 | 63 | }, |
61 | 64 | "checkpatch.diagnosticLevel": { |
62 | 65 | "type": "string", |
|
68 | 71 | ], |
69 | 72 | "default": "Information", |
70 | 73 | "description": "Select the diagnostic level of checkpatch problems" |
| 74 | + }, |
| 75 | + "checkpatch.useFolderAsCwd": { |
| 76 | + "type": "boolean", |
| 77 | + "default": false, |
| 78 | + "description": "Whether the linter should use current folder as cwd or run from root folder instead. Only applies when there `#checkpatch.checkpatchPath#` is not set for current folder", |
| 79 | + "scope": "resource" |
71 | 80 | } |
72 | 81 | } |
73 | 82 | }, |
74 | 83 | "commands": [ |
75 | 84 | { |
76 | 85 | "command": "checkpatch.checkFile", |
77 | | - "title": "Checkpatch Selected File" |
| 86 | + "title": "Checkpatch: Check Selected File" |
78 | 87 | }, |
79 | 88 | { |
80 | 89 | "command": "checkpatch.checkCommit", |
81 | | - "title": "Checkpatch Commit" |
| 90 | + "title": "Checkpatch: Check Commit" |
82 | 91 | }, |
83 | 92 | { |
84 | 93 | "command": "checkpatch.toggleAutoRun", |
85 | | - "title": "Toggle Checkpatch for the Current Workspace" |
| 94 | + "title": "Checkpatch: Toggle Run Mode For The Current Workspace" |
| 95 | + }, |
| 96 | + { |
| 97 | + "command": "checkpatch.cleanDiagnostic", |
| 98 | + "title": "Checkpatch: Clean Current Diagnostic" |
86 | 99 | } |
87 | 100 | ], |
88 | 101 | "problemMatchers": [ |
|
103 | 116 | "regexp": "#\\d+: FILE: (.*):(\\d+):", |
104 | 117 | "file": 1, |
105 | 118 | "line": 2 |
| 119 | + }, |
| 120 | + { |
| 121 | + "regexp": "(.*):(\\d+): (WARNING|ERROR|CHECK): ?(.+):(.+)", |
| 122 | + "file": 1, |
| 123 | + "line": 2, |
| 124 | + "severity": 3, |
| 125 | + "message": 5 |
106 | 126 | } |
107 | 127 | ] |
108 | 128 | } |
|
136 | 156 | "@types/vscode": "^1.34.0", |
137 | 157 | "@typescript-eslint/eslint-plugin": "^3.0.2", |
138 | 158 | "@typescript-eslint/parser": "^3.0.2", |
| 159 | + "esbuild": "^0.14.25", |
139 | 160 | "eslint": "^7.1.0", |
140 | 161 | "typescript": "^4.0.2" |
141 | 162 | }, |
|
0 commit comments