Naelson Douglas C. Oliveira
Naelson Douglas C. Oliveira
**Problem** The code had an entry of the default mutable pitfall, which can be detected by Pylint via the code W0102 https://vald-phoenix.github.io/pylint-errors/plerr/errors/basic/W0102.html *Solution* Applied a simple refactoring
**The problem** In Python when comparing a variable to a singleton value like True, False and None it is advised to use the operator 'is' instead of '=='. This pitfall...
**The problem** In Python it usually dangerous to use mutable arguments like dicts or lists as default arguments in method, as is better explained [here](https://docs.python-guide.org/writing/gotchas/) **the solution** This PR applies...
**The problem** There was a scenario on the code where a Python built-in name was being shadowed. It's a good practice to never replace built-in methods with variables, since it...
**The problem** There was a scenario on the code where a Python built-in name was being shadowed. It's a good practice to never replace built-in methods with variables, since it...
**The problem** The code had a case of a manual indexer pitfall, which was detected via Pylint under the code C0200 Consider using enumerate instead of iterating with range and...
**Problem**: The code was incurring into the consider-using-in pitfall case, as described by Pylint documentation here https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md **Solution**: Applied adequate refactoring. Only a single line of code was changed
**The problem** The code was iterating on the list 'outputs' manually using for i, element in enumerate(outputs ```python for i in range(len(row)) ``` and accessing the data manually as: ```python...
**The problem** There was a case where the code was using a manual file handler pitfall, where a file stream was being opened and closed manually. But since Python supports...
**Problem**: The code was incurring into the consider-using-in pitfall case, as described by Pylint documentation here https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md **Solution**: Applied adequate refactoring. Only a single line of code was changed