-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathReformat Document.tmCommand
More file actions
54 lines (50 loc) · 1.4 KB
/
Reformat Document.tmCommand
File metadata and controls
54 lines (50 loc) · 1.4 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
# -- Imports -------------------------------------------------------------------
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rubocop'
# -- Main ----------------------------------------------------------------------
RuboCop.reformat
</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^H</string>
<key>name</key>
<string>Reformat Document</string>
<key>outputCaret</key>
<string>heuristic</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>discard</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>rubocop</string>
<key>moreInfoURL</key>
<string>http://batsov.com/rubocop/</string>
<key>locations</key>
<array>
<string>/usr/local/bin/rubocop</string>
<string>$HOME/.rbenv/shims/rubocop</string>
<string>$HOME/.rvm/scripts/rvm</string>
</array>
</dict>
</array>
<key>scope</key>
<string>source.ruby</string>
<key>uuid</key>
<string>64BB4EE2-2803-410C-B140-EA545A13F250</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>