Skip to content
Snippets Groups Projects
Commit efc66ab1 authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Fix comments to disable pylint checks

parent ac5fe6e4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -101,8 +101,7 @@ The script returns:
return parser
 
 
# pylint: disable=too-many-branches
def main():
def main(): # pylint: disable=too-many-branches
"""Main function."""
# parse arguments
parser = msgcheck_parser()
Loading
Loading
Loading
Loading
@@ -42,12 +42,10 @@ except ImportError:
from . utils import count_lines, replace_formatters
 
 
# pylint: disable=too-few-public-methods
class PoReport(object):
class PoReport(object): # pylint: disable=too-few-public-methods
"""A message in report (commonly an error in detected in gettext file)."""
 
# pylint: disable=too-many-arguments
def __init__(self, message, idmsg='', filename='-', line=0, mid='',
def __init__(self, message, idmsg='', filename='-', line=0, mid='', # pylint: disable=too-many-arguments
mstr='', fuzzy=False):
self.message = message
self.idmsg = idmsg
Loading
Loading
@@ -109,8 +107,7 @@ class PoMessage(object):
('%d files found', '%d fichiers trouvés')]
"""
 
# pylint: disable=too-many-arguments
def __init__(self, filename, line, msg, charset, fuzzy, fmt, noqa):
def __init__(self, filename, line, msg, charset, fuzzy, fmt, noqa): # pylint: disable=too-many-arguments
"""Build a PO message."""
self.filename = filename
self.line = line
Loading
Loading
@@ -298,8 +295,7 @@ class PoFile(object):
}
self.msgs = []
 
# pylint: disable=too-many-arguments
def _add_message(self, numline_msgid, fuzzy, fmt, noqa, msg):
def _add_message(self, numline_msgid, fuzzy, fmt, noqa, msg): # pylint: disable=too-many-arguments
"""
Add a message from PO file in list of messages.
"""
Loading
Loading
@@ -318,7 +314,7 @@ class PoFile(object):
self.msgs.append(PoMessage(self.filename, numline_msgid, msg,
self.props['charset'], fuzzy, fmt, noqa))
 
def read(self):
def read(self): # pylint: disable=too-many-locals
"""
Read messages in PO file.
"""
Loading
Loading
Loading
Loading
@@ -34,8 +34,7 @@ def local_path(filename):
return os.path.join(os.path.dirname(os.path.abspath(__file__)), filename)
 
 
# pylint: disable=too-many-public-methods
class TestMsgCheck(unittest.TestCase):
class TestMsgCheck(unittest.TestCase): # pylint: disable=too-many-public-methods
"""Tests on msgcheck."""
 
def test_compilation(self):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment