From 071bfcf0264de804afbb71b61839b06b20bbbda3 Mon Sep 17 00:00:00 2001 From: Ethan Chan Date: Fri, 10 Feb 2017 15:42:46 -0800 Subject: [PATCH 1/2] add coffeelint --- pythonx/lints/coffee/__init__.py | 3 +++ pythonx/lints/coffee/coffeelint.py | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pythonx/lints/coffee/__init__.py create mode 100644 pythonx/lints/coffee/coffeelint.py diff --git a/pythonx/lints/coffee/__init__.py b/pythonx/lints/coffee/__init__.py new file mode 100644 index 0000000..cf156ed --- /dev/null +++ b/pythonx/lints/coffee/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from .coffeelint import CoffeeLint # noqa diff --git a/pythonx/lints/coffee/coffeelint.py b/pythonx/lints/coffee/coffeelint.py new file mode 100644 index 0000000..e0abc34 --- /dev/null +++ b/pythonx/lints/coffee/coffeelint.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +from validator import Validator + + +class CoffeeLint(Validator): + __filetype__ = "coffee" + + stdin = True + checker = "coffeelint" + args = " --stdin --reporter csv" + regex = r""" + .+?, + (?P\d+), + (?P\d*), + ( + (?Perror) + | + (?Pwarn) + ), + (?P.*)""" From 83e0af3373ee70825172a5e22a01d7947dd52c62 Mon Sep 17 00:00:00 2001 From: Ethan Chan Date: Sun, 12 Feb 2017 19:59:01 -0800 Subject: [PATCH 2/2] remove a stray space --- pythonx/lints/coffee/coffeelint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/lints/coffee/coffeelint.py b/pythonx/lints/coffee/coffeelint.py index e0abc34..4423ec1 100644 --- a/pythonx/lints/coffee/coffeelint.py +++ b/pythonx/lints/coffee/coffeelint.py @@ -8,7 +8,7 @@ class CoffeeLint(Validator): stdin = True checker = "coffeelint" - args = " --stdin --reporter csv" + args = "--stdin --reporter csv" regex = r""" .+?, (?P\d+),