Skip to content

Commit

Permalink
Create list of Pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Mar 1, 2024
1 parent 0215148 commit 7b69626
Showing 1 changed file with 99 additions and 2 deletions.
101 changes: 99 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,106 @@
[MASTER]

# Should enable these
# C0114: Missing module docstring
# C0115: Missing class docstring
# C0116: Missing function or method docstring
# C0415: Import outside toplevel (import-outside-toplevel)
# R1705: Unnecessary "else" after "return"
# E1120: No value for argument in function call
# E1123: Unexpected argument in function call
# C0209: Consider using an f-string
# R1710: Either all return statements in a function should return an expression, or none of them should
# W0621: Redefining name from outer scope
# C0121: Comparison to singletons is unnecessary
# W0614: Unused import from wildcard import
# W0401: Wildcard import
# C0117: Unnecessary negation
# R0205: Useless object inheritance
# R0402: Consider using from import
# R1725: Super with arguments
# W0237: Renamed arguments
# W0223: Abstract method is not overridden
# W0613: Unused argument
# W0108: Lambda may not be necessary
# W0511: TODO
# E1136: Value is unsubscriptable
# W0611: Unused import
# C0103: Variable name doesn't conform to naming style
# R1732: Consider using with
# W1514: Using open without explicitly specifying an encoding
# R1718: Consider using set comprehension
# W1510: Subprocess run without explicitly defining check
# E0602: Undefined variable
# W1309: Using an f-string that does not have any interpolated variables
# C0325: Unnecessary parenthesis
# E1101: Nonexistent member
# R1714: Consider using in
# R0916: Too many boolean expressions in if statement
# W0719: Broad exception raised
# E1133: Not an iterable
# W0107: Unnecessary pass statement
# W3101: Missing timeout
# W0640: Cell variable from loop
# C0201: Consider iterating over a dict instead of calling keys
# W1113: Keyword argument before variable argument
# W0246: Useless parent delegation
# W0622: Redefining built-in
# W0221: Arguments number differs from overridden method
# E1111: Assigning to function call which doesn't return
# R1720: Unnecessary "else" after "raise"
# R1723: Unnecessary "else" after "break"
# E0102: Function already defined
# W0201: Attribute defined outside __init__
# E0203: Access to member before its definition
# E0401: Unable to import
# W0602: Undefined global variable
# W0212: Access to a protected member
# W0707: Missing raising from
# W0101: Unreachable code
# E0110: Instantiated abstract class
# R1701: Consider merging isinstance
# W0106: Expression is assigned to nothing
# R1721: Unnecessary comprehension
# W0601: Global variable undefined at the module level

# Performance optimization
# W1203: Use % formatting in logging functions and pass the parameters as arguments
# R1729: Use a generator instead of comprehension
# W1202: Use % formatting in logging functions and pass the parameters as arguments
# R1735: Use literal syntax instead of function calls to create dict
# R1734: Use literal syntax instead of function calls to create list
# W1201: Specify string format arguments as logging function parameters

# Fixed by auto formatter
# C0411: Wrongly ordered import
# C0412: Ungrouped imports
# C0301: Line too long

# Might be difficult to refactor in some cases
# W0718: Broad exception caught
# W0702: No exception type(s) specified





# Should disable these for now, would require too much refactoring
# R0903: Too few public methods
# R0913: Too many arguments
# R0914: Too many local variables
# R0912: Too many branches
# R0911: Too many return statements
# R0902: Too many instance attributes
# R0915: Too many statements
# R0904: Too many public methods
# C0302: Too many lines in module
# W0603: Using the global statement
# R0401: Cyclic import

max-line-length = 120
disable = C0114, C0115, C0116, R0903, C0415, R1705, R0913, W1203, R1729, E1120, E1123, C0209, R1710, W0621, C0121,
W0614, W0401, W1202, C0117, W0718, R0205, R0402, R0914, R1725, R1735, C0411, W0237, W0702, W0223, W0613,
W0108, R0912, R0911, W0511, E1136, R0902, W0611, C0412, C0103, C0301, R1732, R0915, W1514, R1718, W1510,
E0602, W1309, C0325, E1101, R1714, R0916, W0719, R1734, E1133, W1201, W0107, W3101, W0640, C0201, W1113,
W0246, W0622, W0221, E1111, R1720, W0221, R1723, E0102, W0201, E0203, E0401, W0602, W0212, W0707, R0904,
W0101, C0302, E0110, W0603, R1701, W0106, R1721, W0601, R0401
W0246, W0622, W0221, E1111, R1720, R1723, E0102, W0201, E0203, E0401, W0602, W0212, W0707, R0904, W0101,
C0302, E0110, W0603, R1701, W0106, R1721, W0601, R0401

0 comments on commit 7b69626

Please sign in to comment.