From: Cheng Zhao Date: Fri, 27 Sep 2013 03:01:40 +0000 (+0800) Subject: Do not warn about 80 columns in coffeelint, it's not required. X-Git-Tag: v0.5.2~6^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f3eef6cc2e29d66b5c05970cf2d1ea604b73fddc;p=electron.git Do not warn about 80 columns in coffeelint, it's not required. --- diff --git a/script/coffeelint.json b/script/coffeelint.json new file mode 100644 index 00000000..cc06d0d3 --- /dev/null +++ b/script/coffeelint.json @@ -0,0 +1,6 @@ +{ + "max_line_length": { + "value": 80, + "level": "ignore" + } +} diff --git a/script/coffeelint.py b/script/coffeelint.py index 2e912d6a..8bfd402b 100755 --- a/script/coffeelint.py +++ b/script/coffeelint.py @@ -14,16 +14,17 @@ def main(): coffeelint = os.path.join(SOURCE_ROOT, 'node_modules', 'coffeelint', 'bin', 'coffeelint') + settings = ['--quiet', '-f', os.path.join('script', 'coffeelint.json')] files = glob.glob('browser/api/lib/*.coffee') + \ glob.glob('renderer/api/lib/*.coffee') + \ glob.glob('common/api/lib/*.coffee') + \ glob.glob('browser/atom/*.coffee') 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') else: - subprocess.check_call(['node', coffeelint] + files) + subprocess.check_call(['node', coffeelint] + settings + files) if __name__ == '__main__':