Showing 1,558 of 1,565 total issues

Line too long (126/100)
Open

        for batch in self._db.get_records(record_type, table_name, query=query, records_per_message=self.records_per_message):
Severity: Info
Found in apel/db/unloader.py by pylint

Used when a line is longer than a given number of characters.

Wrong continued indentation (add 4 spaces).
Open

                           Decimal(capability.split('=')[1])))
Severity: Info
Found in apel/ldap/query.py by pylint

TODO Decimal(capability.split('=')[1]))) ^ |

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

            for fk in fks:
Severity: Info
Found in apel/ldap/query.py by pylint

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

No space allowed after bracket
Open

        end_tuple = [ int(x) for x in end.split('-') ]
Severity: Info
Found in apel/db/unloader.py by pylint

Used when a wrong number of spaces is used around an operator, bracket or block opener. end_tuple = [ int(x) for x in end.split('-') ] ^

No space allowed before bracket
Open

        buf.write('%%\n'.join( [ record.get_msg(self._withhold_dns) for record in records ] ))
Severity: Info
Found in apel/db/unloader.py by pylint

Used when a wrong number of spaces is used around an operator, bracket or block opener. buf.write('%%n'.join( [ record.getmsg(self.withhold_dns) for record in records ] )) ^

Unnecessary pass statement
Open

        pass
Severity: Minor
Found in apel/db/apeldb.py by pylint

Used when a pass statement that can be avoided is encountered.

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

                wh = '('
Severity: Info
Found in apel/db/apeldb.py by pylint

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

Line too long (106/100)
Open

        for batch in self._db.get_sync_records(query=query, records_per_message=self.records_per_message):
Severity: Info
Found in apel/db/unloader.py by pylint

Used when a line is longer than a given number of characters.

standard import import os should be placed before from future import standard_library
Open

import os
Severity: Info
Found in apel/db/unloader.py by pylint

Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)

Wrong continued indentation (add 4 spaces).
Open

                       "NodeCount", "StartTime", "EndTime", "InfrastructureDescription", "InfrastructureType", "MemoryReal",
Severity: Info
Found in apel/db/records/job.py by pylint

TODO NodeCount, StartTime, EndTime, InfrastructureDescription, InfrastructureType, MemoryReal, ^ |

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.

Line too long (106/100)
Open

        earliest_text = time.strftime('%Y-%m-%dT%H:%M:%SZ', self.get_field('EarliestEndTime').timetuple())

Used when a line is longer than a given number of characters.

Wrong continued indentation (remove 6 spaces).
Open

                       "ResourceCapacityUsed", "LogicalCapacityUsed",
Severity: Info
Found in apel/db/records/storage.py by pylint

TODO ResourceCapacityUsed, LogicalCapacityUsed, | ^

Too many statements (98/50)
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 statements. You should then split it in smaller functions / methods.

Argument name ur doesn't conform to snake_case naming style
Open

    def _write_messages(self, record_type, table_name, query, ur):
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...).

standard import import datetime should be placed before from future import standard_library
Open

import datetime
Severity: Info
Found in apel/db/unloader.py by pylint

Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)

Wrong continued indentation (add 3 spaces).
Open

                        "Site", "ValidFrom", "ValidUntil", "Processed"]
Severity: Info
Found in apel/db/records/blahd.py by pylint

TODO Site, ValidFrom, ValidUntil, Processed] ^ |

Wrong continued indentation (add 4 spaces).
Open

                       "VOGroup", "VORole", "WallDuration", "CpuDuration", "Processors",
Severity: Info
Found in apel/db/records/job.py by pylint

TODO VOGroup, VORole, WallDuration, CpuDuration, Processors, ^ |

Line too long (125/100)
Open

        record_id = self.get_field('MachineName') + ' ' + self.get_field('LocalJobId') + ' ' + str(self.get_field('EndTime'))
Severity: Info
Found in apel/db/records/job.py by pylint

Used when a line is longer than a given number of characters.

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

Severity
Category
Status
Source
Language