Commit bcf3895f authored by Philipp Wolfer's avatar Philipp Wolfer

Removed unused flag from format checks.

parent 868bd544
...@@ -103,7 +103,6 @@ class BaseFormatCheck(TargetCheck): ...@@ -103,7 +103,6 @@ class BaseFormatCheck(TargetCheck):
''' '''
Base class for fomat string checks. Base class for fomat string checks.
''' '''
flag = None
regexp = None regexp = None
default_disabled = True default_disabled = True
severity = 'danger' severity = 'danger'
...@@ -222,7 +221,6 @@ class PythonFormatCheck(BaseFormatCheck): ...@@ -222,7 +221,6 @@ class PythonFormatCheck(BaseFormatCheck):
check_id = 'python_format' check_id = 'python_format'
name = _('Python format') name = _('Python format')
description = _('Format string does not match source') description = _('Format string does not match source')
flag = 'python-format'
regexp = PYTHON_PRINTF_MATCH regexp = PYTHON_PRINTF_MATCH
def is_position_based(self, string): def is_position_based(self, string):
...@@ -236,7 +234,6 @@ class PHPFormatCheck(BaseFormatCheck): ...@@ -236,7 +234,6 @@ class PHPFormatCheck(BaseFormatCheck):
check_id = 'php_format' check_id = 'php_format'
name = _('PHP format') name = _('PHP format')
description = _('Format string does not match source') description = _('Format string does not match source')
flag = 'php-format'
regexp = PHP_PRINTF_MATCH regexp = PHP_PRINTF_MATCH
def is_position_based(self, string): def is_position_based(self, string):
...@@ -250,7 +247,6 @@ class CFormatCheck(BaseFormatCheck): ...@@ -250,7 +247,6 @@ class CFormatCheck(BaseFormatCheck):
check_id = 'c_format' check_id = 'c_format'
name = _('C format') name = _('C format')
description = _('Format string does not match source') description = _('Format string does not match source')
flag = 'c-format'
regexp = C_PRINTF_MATCH regexp = C_PRINTF_MATCH
def is_position_based(self, string): def is_position_based(self, string):
...@@ -264,7 +260,6 @@ class PythonBraceFormatCheck(BaseFormatCheck): ...@@ -264,7 +260,6 @@ class PythonBraceFormatCheck(BaseFormatCheck):
check_id = 'python_brace_format' check_id = 'python_brace_format'
name = _('Python brace format') name = _('Python brace format')
description = _('Format string does not match source') description = _('Format string does not match source')
flag = 'python-brace-format'
regexp = PYTHON_BRACE_MATCH regexp = PYTHON_BRACE_MATCH
def is_position_based(self, string): def is_position_based(self, string):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment