From a6f79155835f5c5b3aa984a156cc66da2a0df876 Mon Sep 17 00:00:00 2001 From: MrTuxHdb Date: Wed, 28 Sep 2016 01:15:41 +0700 Subject: [PATCH] [FIX] Problem with version 1.2.x and add ignore settings --- linter.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/linter.py b/linter.py index dbced9e..28db4af 100644 --- a/linter.py +++ b/linter.py @@ -17,19 +17,21 @@ class Hadolint(Linter): """Provides an interface to hadolint.""" syntax = 'dockerfile' - cmd = 'hadolint -i' + cmd = 'hadolint' executable = None version_args = '-v' version_re = r'Haskell Dockerfile Linter v(?P\d+\.\d+)' version_requirement = '>= 0.1' - regex = r'L(?P\d+) (?P.+)' + regex = r'(.+)\:(?P[^\s]+) (?P.+)' multiline = False line_col_base = (1, 1) - tempfile_suffix = None + tempfile_suffix = '-' error_stream = util.STREAM_BOTH selectors = {} word_re = None - defaults = {} - inline_settings = None + defaults = { + '--ignore:,+': '' + } + inline_settings = ('ignore') inline_overrides = None comment_re = None