mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 03:08:22 +00:00
Fixes #1519. Fixed: capp_lint __init__ takes at least 2 arguments error.
Some SublimeLinter specific bits appear to have made it into the standalone capp_lint.
This commit is contained in:
1 parent
be36803570
commit
5446bedfcc
1 file changed
+1
-10
@@ -254,8 +254,7 @@ class LintChecker(object):
|
||||
TEXT_ERROR_SINGLE_FILE_TEMPLATE = Template(u'$lineNum: $message.\n+$line\n')
|
||||
TEXT_ERROR_MULTI_FILE_TEMPLATE = Template(u'$filename:$lineNum: $message.\n+$line\n')
|
||||
|
||||
def __init__(self, view, basedir='', var_declarations=VAR_DECLARATIONS_SINGLE, verbose=False):
|
||||
self.view = view
|
||||
def __init__(self, basedir='', var_declarations=VAR_DECLARATIONS_SINGLE, verbose=False):
|
||||
self.basedir = unicode(basedir, 'utf-8')
|
||||
self.errors = []
|
||||
self.errorFiles = []
|
||||
@@ -275,14 +274,6 @@ class LintChecker(object):
|
||||
|
||||
def run_line_checks(self):
|
||||
for check in self.LINE_CHECKLIST:
|
||||
option = check.get('option')
|
||||
|
||||
if option:
|
||||
default = check.get('optionDefault', False)
|
||||
|
||||
if not self.view.settings().get(option, default):
|
||||
continue
|
||||
|
||||
line = self.line
|
||||
lineFilter = check.get('filter')
|
||||
|
||||
|
||||
Reference in new issue
Block a user