forked from LoranKloeze/vscode-ruby-rubocop-revived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 4.17 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
{
"name": "ruby-rubocop-revived",
"version": "0.9.5",
"publisher": "LoranKloeze",
"displayName": "ruby-rubocop-revived",
"description": "execute rubocop for current Ruby code.",
"engines": {
"vscode": "^1.62.0"
},
"icon": "images/rubocop_revived.png",
"repository": {
"type": "git",
"url": "https://github.com/LoranKloeze/vscode-ruby-rubocop-revived"
},
"categories": [
"Programming Languages",
"Linters"
],
"activationEvents": [
"onLanguage:ruby",
"onCommand:ruby.rubocop"
],
"main": "./out/src/extension",
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"contributes": {
"languages": [
{
"id": "ruby",
"extensions": [
".rb"
]
},
{
"id": "gemfile",
"filenamePatterns": [
"Gemfile"
]
}
],
"commands": [
{
"command": "ruby.rubocop",
"title": "Ruby: Lint by Rubocop"
},
{
"command": "ruby.rubocop.autocorrect",
"when": "editorLangId == 'ruby' || editorLangId == 'gemfile'",
"title": "Ruby: Autocorrect by Rubocop"
},
{
"command": "ruby.rubocop.showOutputChannel",
"when": "editorLangId == 'ruby' || editorLangId == 'gemfile'",
"title": "Ruby: Show Rubocop Output Channel"
}
],
"keybindings": [
{
"key": "shift+ctrl+r",
"command": "editor.action.formatDocument",
"when": "editorLangId == 'ruby' || editorLangId == 'gemfile'"
}
],
"configuration": {
"type": "object",
"title": "Ruby-Rubocop configuration",
"properties": {
"ruby.rubocop.executePath": {
"type": "string",
"default": "",
"description": "execution path of rubocop."
},
"ruby.rubocop.autocorrectArg": {
"type": "string",
"default": "--autocorrect",
"description": "RuboCop argument for autocorrect. Use --autocorrect-all to include unsafe autocorrections."
},
"ruby.rubocop.configFilePath": {
"type": "string",
"default": "",
"description": "Filepath to the configuration file for Rubocop"
},
"ruby.rubocop.onSave": {
"type": "boolean",
"default": true,
"description": "execute rubocop on save."
},
"ruby.rubocop.useBundler": {
"type": "boolean",
"default": false,
"description": "execute rubocop using bundler (ie 'bundle exec rubocop')"
},
"ruby.rubocop.useServer": {
"type": "boolean",
"default": false,
"description": "start a Rubocop server for faster execution (since Rubocop 1.31)"
},
"ruby.rubocop.autocorrectOnSave": {
"type": "boolean",
"default": false,
"description": "autocorrect files on save (requires `ruby.rubocop.onSave` to be set to `true`)"
},
"ruby.rubocop.suppressRubocopWarnings": {
"type": "boolean",
"default": false,
"description": "Suppress warnings from rubocop and attempt to run regardless. (Useful if you share a rubocop.yml file and run into unrecognized cop errors you know are okay.)"
},
"ruby.rubocop.hideDisableSuggestions": {
"type": "boolean",
"default": false,
"description": "Hide the 'Disable' suggestions, nudging to prefer fixing violations."
}
}
}
},
"devDependencies": {
"@types/chai": "^4.2.22",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/proxyquire": "^1.3.28",
"@types/vscode": "^1.62.0",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vscode/test-electron": "^1.6.2",
"chai": "^4.3.4",
"eslint": "^8.1.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"prettier": "^2.5.1",
"proxyquire": "^2.1.0",
"typescript": "^4.5.2",
"vscode-test": "^1.6.1"
}
}