Skip to content

Commit

Permalink
Merge pull request #25 from SublimeLinter/feature/remove-all
Browse files Browse the repository at this point in the history
Feature/remove all
  • Loading branch information
ckaznocha committed Dec 30, 2015
2 parents 5f268ef + 5976ecd commit b7b68d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ For general information on how SublimeLinter works with settings, please see [Se

|Setting|Description|
|:------|:----------|
|all|If set to true, the liner will use pass --all to `flow check` which will check every javascript file regardless of whether they have the `/* @flow */` declaration at the top. [More info](http://flowtype.org/docs/new-project.html#typechecking-your-files)|
|lib|Add a path to your interface files. [More info](http://flowtype.org/docs/third-party.html#interface-files)|
|show-all-errors|It allows flow to output all errors instead of stopping at 50|
|use-server|If set to true, runs `flow --no-auto-start` instead of `flow check`. The former fetch results from an existing server (If there is no existing flow server, nothing will be done. You can use `flow start` to start a server) to speed it up|
Expand Down
6 changes: 0 additions & 6 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class Flow(Linter):

multiline = True
defaults = {
# Allows the user to lint *all* files, regardless of whether they have the `/* @flow */` declaration at the top.
'all': False,

# Allow to bypass the 50 errors cap
'show-all-errors': True
}
Expand All @@ -62,9 +59,6 @@ def cmd(self):
if merged_settings['show-all-errors']:
command.append('--show-all-errors')

if merged_settings['all']:
command.append('--all')

# Until we update the regex, will re-use the old output format
command.append('--old-output-format')
command.append('--color=never')
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"install": "messages/install.txt",
"2.0.0": "messages/2.0.0"
"2.0.0": "messages/2.0.0",
"2.1.0": "messages/2.1.0"
}
4 changes: 4 additions & 0 deletions messages/2.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

SublimeLinter-flow
------------------
* Removed `all` option

0 comments on commit b7b68d1

Please sign in to comment.