Fix 43 Maintainability issues in multiple files
lostb053 opened this issue · 0 comments
lostb053 commented
CodeFactor found multiple issues last seen at 50ad687:
Comparison 'in_list != None' should be 'in_list is not None'
- anibot\utils\data_parser.py:1041
- anibot\utils\data_parser.py:994
- anibot\utils\data_parser.py:870
- anibot\utils\data_parser.py:763
Comparison 'auth == True' should be 'auth is True' if checking for the singleton value True, or 'auth' if testing for truthiness
- anibot\utils\data_parser.py:1039
- anibot\utils\data_parser.py:992
- anibot\utils\data_parser.py:868
- anibot\utils\data_parser.py:761
Comparison 'english == None' should be 'english is None'
Comparison 'isfav == True' should be 'isfav is True' if checking for the singleton value True, or 'isfav' if testing for truthiness
Comparison 'episodes != None' should be 'episodes is not None'
Comparison 'air_on == None' should be 'air_on is None'
Comparison 'duration != None' should be 'duration is not None'
Comparison 'text != None' should be 'text is not None'
Comparison 'result[0] == False' should be 'result[0] is False' if checking for the singleton value False, or 'not result[0]' if testing for falsiness
Comparison 'req != None' should be 'req is not None'
Comparison 'spoiler == False' should be 'spoiler is False' if checking for the singleton value False, or 'not spoiler' if testing for falsiness
Comparison 'find_gc != None' should be 'find_gc is not None'
- anibot\plugins\anilist.py:383
- anibot\plugins\anilist.py:381
- anibot\plugins\anilist.py:343
- anibot\plugins\anilist.py:323
- anibot\plugins\anilist.py:230
- anibot\plugins\anilist.py:208
- anibot\plugins\anilist.py:186
- anibot\plugins\anilist.py:178
- anibot\plugins\anilist.py:145
- anibot\plugins\anilist.py:118
- anibot\plugins\anilist.py:82
- anibot\plugins\anilist.py:45
- anibot\plugins\bot.py:362
- anibot\plugins\bot.py:264
- anibot\plugins\bot.py:225