mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
PyLint fix
This commit is contained in:
@ -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):
|
||||||
|
Reference in New Issue
Block a user