Do not warn about 80 columns in coffeelint, it's not required.
This commit is contained in:
parent
11f387743f
commit
f3eef6cc2e
2 changed files with 9 additions and 2 deletions
6
script/coffeelint.json
Normal file
6
script/coffeelint.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"max_line_length": {
|
||||||
|
"value": 80,
|
||||||
|
"level": "ignore"
|
||||||
|
}
|
||||||
|
}
|
|
@ -14,16 +14,17 @@ def main():
|
||||||
|
|
||||||
coffeelint = os.path.join(SOURCE_ROOT, 'node_modules', 'coffeelint', 'bin',
|
coffeelint = os.path.join(SOURCE_ROOT, 'node_modules', 'coffeelint', 'bin',
|
||||||
'coffeelint')
|
'coffeelint')
|
||||||
|
settings = ['--quiet', '-f', os.path.join('script', 'coffeelint.json')]
|
||||||
files = glob.glob('browser/api/lib/*.coffee') + \
|
files = glob.glob('browser/api/lib/*.coffee') + \
|
||||||
glob.glob('renderer/api/lib/*.coffee') + \
|
glob.glob('renderer/api/lib/*.coffee') + \
|
||||||
glob.glob('common/api/lib/*.coffee') + \
|
glob.glob('common/api/lib/*.coffee') + \
|
||||||
glob.glob('browser/atom/*.coffee')
|
glob.glob('browser/atom/*.coffee')
|
||||||
|
|
||||||
if sys.platform in ['win32', 'cygwin']:
|
if sys.platform in ['win32', 'cygwin']:
|
||||||
subprocess.check_call(['node', coffeelint] + files,
|
subprocess.check_call(['node', coffeelint] + settings + files,
|
||||||
executable='C:/Program Files/nodejs/node.exe')
|
executable='C:/Program Files/nodejs/node.exe')
|
||||||
else:
|
else:
|
||||||
subprocess.check_call(['node', coffeelint] + files)
|
subprocess.check_call(['node', coffeelint] + settings + files)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue