Showing 1,557 of 1,564 total issues
Variable name ur
doesn't conform to snake_case naming style Open
ur = doc.createElement('aur:SummaryRecord')
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Too many local variables (41/15) Open
def get_ur(self, withhold_dns=False):
- Read upRead up
- Exclude checks
Used when a function or method has too many local variables.
Wrong continued indentation (add 6 spaces). Open
"MemoryReal", "MemoryVirtual", "ServiceLevelType",
- Read upRead up
- Exclude checks
TODO
MemoryReal
, MemoryVirtual
, ServiceLevelType
,
^ |
standard import import logging
should be placed before from future.builtins import str
Open
import logging
- Read upRead up
- Exclude checks
Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)
Variable name sl
doesn't conform to snake_case naming style Open
(slt, sl) = self._check_factor(slt, sl)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unnecessary parens after 'if' keyword Open
if (int(rc['Month']) == 12):
- Read upRead up
- Exclude checks
Used when a single item in parentheses follows an if, for, or other keyword.
Wrong continued indentation (add 13 spaces). Open
" doesn't contain an integer.")
- Read upRead up
- Exclude checks
TODO
doesn't contain an integer.
)
^ |
Using type() instead of isinstance() for a typecheck. Open
if type(value) == datetime:
- Read upRead up
- Exclude checks
The idiomatic way to perform an explicit typecheck in Python is to use isinstance(x, Y) rather than type(x) == Y, type(x) is Y. Though there are unusual situations where these give different results.
standard import from datetime import datetime
should be placed before from future.builtins import object, str, zip
Open
from datetime import datetime
- Read upRead up
- Exclude checks
Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)
standard import import calendar
should be placed before from future.builtins import object, str, zip
Open
import calendar
- Read upRead up
- Exclude checks
Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)
Wrong continued indentation (remove 6 spaces). Open
"ResourceCapacityAllocated"]
- Read upRead up
- Exclude checks
TODO
ResourceCapacityAllocated
]
| ^
Variable name XML_HEADER
doesn't conform to snake_case naming style Open
XML_HEADER = '<?xml version="1.0" ?>'
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name UR_OPEN
doesn't conform to snake_case naming style Open
UR_OPEN = ('<urf:UsageRecords xmlns:urf="http://eu-emi.eu/namespace'
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name UR_CLOSE
doesn't conform to snake_case naming style Open
UR_CLOSE = '</urf:UsageRecords>'
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Unable to import 'future.builtins' Open
from future.builtins import str
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Too many instance attributes (8/7) Open
class CloudRecord(Record):
- Read upRead up
- Exclude checks
Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.
Variable name vo
doesn't conform to snake_case naming style Open
role, group, vo = parse_fqan(self._record_content['FQAN'])
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name ur
doesn't conform to snake_case naming style Open
ur = doc.createElement('urf:UsageRecord')
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name dn
doesn't conform to snake_case naming style Open
dn = self.get_field('GlobalUserName')
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Undefined variable 'e' Open
raise InvalidRecordException(e)
- Read upRead up
- Exclude checks
Used when an undefined variable is accessed.