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')
Severity: Info
Found in apel/db/records/summary.py by pylint

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):
Severity: Info
Found in apel/db/records/storage.py by pylint

Used when a function or method has too many local variables.

Wrong continued indentation (add 6 spaces).
Open

                       "MemoryReal", "MemoryVirtual", "ServiceLevelType",
Severity: Info
Found in apel/db/records/job.py by pylint

TODO MemoryReal, MemoryVirtual, ServiceLevelType, ^ |

standard import import logging should be placed before from future.builtins import str
Open

import logging
Severity: Info
Found in apel/db/records/storage.py by pylint

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)
Severity: Info
Found in apel/db/records/job.py by pylint

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):

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.")
Severity: Info
Found in apel/db/records/record.py by pylint

TODO doesn't contain an integer.) ^ |

Using type() instead of isinstance() for a typecheck.
Open

                if type(value) == datetime:
Severity: Info
Found in apel/db/records/record.py by pylint

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
Severity: Info
Found in apel/db/records/record.py by pylint

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
Severity: Info
Found in apel/db/records/record.py by pylint

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"]
Severity: Info
Found in apel/db/records/storage.py by pylint

TODO ResourceCapacityAllocated] | ^

Variable name XML_HEADER doesn't conform to snake_case naming style
Open

            XML_HEADER = '<?xml version="1.0" ?>'
Severity: Info
Found in apel/db/unloader.py by pylint

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'
Severity: Info
Found in apel/db/unloader.py by pylint

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>'
Severity: Info
Found in apel/db/unloader.py by pylint

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
Severity: Critical
Found in apel/db/records/cloud.py by pylint

Used when pylint has been unable to import a module.

Too many instance attributes (8/7)
Open

class CloudRecord(Record):
Severity: Info
Found in apel/db/records/cloud.py by pylint

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'])
Severity: Info
Found in apel/db/records/job.py by pylint

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')
Severity: Info
Found in apel/db/records/job.py by pylint

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')
Severity: Info
Found in apel/db/records/job.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Undefined variable 'e'
Open

                    raise InvalidRecordException(e)
Severity: Critical
Found in apel/db/records/record.py by pylint

Used when an undefined variable is accessed.

Severity
Category
Status
Source
Language