Commit 57aad2f9 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

pylint: locally suppress duplicate code warnings

parent 3982f39d
Pipeline #130786 failed with stage
in 52 seconds
......@@ -45,6 +45,7 @@ class ChatModel(QAbstractTableModel):
def rowCount(self, parent=None):
"""how many lines are in the model?"""
if parent and parent.isValid():
# similar in tables.py
# we have only top level items
return 0
return len(self.chatLines)
......
......@@ -58,6 +58,7 @@ class GamesModel(QAbstractTableModel):
or column < 0
or row >= self.rowCount(parent)
or column >= self.columnCount(parent)):
# similar in tree.py
return QModelIndex()
return self.createIndex(row, column, 0)
......
......@@ -265,7 +265,8 @@ defining-attr-methods=__init__,__new__,setUp,setupUi,setupActions,setupUILastTil
min-similarity-lines=8
# Ignore comments when computing similarities.
ignore-comments=yes
# this way I can locally disable this with a comment
ignore-comments=no
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
......
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