Skip to content

Commit d572dd7

Browse files
authored
Merge pull request #51 from SublimeLinter/hard-deprecate-cmd-setting
Remove support of the (deprecated) cmd setting
2 parents 09bcbf7 + a49ce66 commit d572dd7

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

linter.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,10 @@ def split_match(self, match):
5353
def cmd(self):
5454
"""Read cmd from inline settings."""
5555
if 'cmd' in self.settings:
56-
logger.warning('The setting `cmd` has been deprecated. '
57-
'Use `executable` instead.')
58-
command = [self.settings.get('cmd')]
59-
else:
60-
command = ['php']
56+
logger.warning(
57+
'The setting `cmd` has been removed. '
58+
'Use `executable` instead. '
59+
)
60+
return None
6161

62-
command.append('-l')
63-
command.append('-n')
64-
command.append('-d')
65-
command.append('display_errors=On')
66-
command.append('-d')
67-
command.append('log_errors=Off')
68-
69-
return command
62+
return ('php', '-l', '-n', '-d', 'display_errors=On', '-d', 'log_errors=Off')

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"install": "messages/install.txt",
33
"1.1.0": "messages/1.1.0.txt",
4-
"1.2.1": "messages/1.2.1.txt"
4+
"1.2.1": "messages/1.2.1.txt",
5+
"1.4.0": "messages/1.4.0.txt"
56
}

messages/1.4.0.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SublimeLinter-php 1.4.0
2+
-----------------------
3+
4+
The 'cmd' setting has finally been removed. As a reminder: the new name for the same thing is 'executable' which is also the common name for all linters in SublimeLinter land.
5+
6+
{
7+
"SublimeLinter": {
8+
"linters": {
9+
"php": {
10+
"executable": "/path/to/php"
11+
}
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)