PyLint fix

This commit is contained in:
Ivan Kravets
2019-09-08 23:44:18 +03:00
parent c720933d34
commit 96567dea4d

View File

@ -15,7 +15,6 @@
import re import re
from os.path import join from os.path import join
from platformio.commands.check.tools.base import CheckToolBase from platformio.commands.check.tools.base import CheckToolBase
from platformio.commands.check.defect import DefectItem from platformio.commands.check.defect import DefectItem
from platformio.managers.core import get_core_package_dir from platformio.managers.core import get_core_package_dir
@ -43,7 +42,7 @@ class ClangtidyCheckTool(CheckToolBase):
if not match: if not match:
return raw_line return raw_line
file, line, column, category, message, defect_id = match.groups() file_, line, column, category, message, defect_id = match.groups()
severity = DefectItem.SEVERITY_LOW severity = DefectItem.SEVERITY_LOW
if category == "error": if category == "error":
@ -51,7 +50,7 @@ class ClangtidyCheckTool(CheckToolBase):
elif category == "warning": elif category == "warning":
severity = DefectItem.SEVERITY_MEDIUM severity = DefectItem.SEVERITY_MEDIUM
return DefectItem(severity, category, message, file, line, column, return DefectItem(severity, category, message, file_, line, column,
defect_id) defect_id)
def configure_command(self): def configure_command(self):