mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
activated pylint and fix messages from pylint::
searx/utils.py:44:0: R0903: Too few public methods (0/2) (too-few-public-methods)
searx/utils.py:58:0: C0103: Argument name "os" doesn't conform to '(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$' pattern (invalid-name)
searx/utils.py:151:4: R1705: Unnecessary "elif" after "return" (no-else-return)
searx/utils.py:263:0: C0103: Argument name "d" doesn't conform to '(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$' pattern (invalid-name)
searx/utils.py:322:4: R1705: Unnecessary "else" after "return" (no-else-return)
searx/utils.py:361:4: R1705: Unnecessary "else" after "return" (no-else-return)
searx/utils.py:378:12: C0103: Variable name "lc" doesn't conform to '(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*)|([a-z]))$' pattern (invalid-name)
searx/utils.py:452:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
searx/utils.py:464:0: C0103: Argument name "s" doesn't conform to '(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$' pattern (invalid-name)
searx/utils.py:489:4: C0103: Function name "f" doesn't conform to '(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$' pattern (invalid-name)
searx/utils.py:610:7: R1716: Simplify chained comparison between the operands (chained-comparison)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
||
|---|---|---|
| .. | ||
| answerers | ||
| data | ||
| engines | ||
| metrics | ||
| network | ||
| plugins | ||
| raise_for_httperror | ||
| search | ||
| shared | ||
| static | ||
| templates | ||
| translations | ||
| __init__.py | ||
| autocomplete.py | ||
| exceptions.py | ||
| external_bang.py | ||
| external_urls.py | ||
| languages.py | ||
| preferences.py | ||
| query.py | ||
| results.py | ||
| settings.yml | ||
| settings_loader.py | ||
| settings_robot.yml | ||
| testing.py | ||
| utils.py | ||
| version.py | ||
| webadapter.py | ||
| webapp.py | ||
| webutils.py | ||