]> khamidou — GitHub mirrors - electron.git/commitdiff
Do not warn about 80 columns in coffeelint, it's not required.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 27 Sep 2013 03:01:40 +0000 (11:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 27 Sep 2013 03:01:40 +0000 (11:01 +0800)
script/coffeelint.json [new file with mode: 0644]
script/coffeelint.py

diff --git a/script/coffeelint.json b/script/coffeelint.json
new file mode 100644 (file)
index 0000000..cc06d0d
--- /dev/null
@@ -0,0 +1,6 @@
+{
+    "max_line_length": {
+        "value": 80,
+        "level": "ignore"
+    }
+}
index 2e912d6a0380ddbdad0a76a2bb77f54cc3c8a7d5..8bfd402bc4f825926a481e1bc897601f12686af8 100755 (executable)
@@ -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__':