Kalkuli/2018.2-Kalkuli_Reports

View on GitHub
populate.py

Summary

Maintainability
A
0 mins
Test Coverage

Line too long (129 > 79 characters)
Open

    db.session.add(Report(company_id=2, date_from='2018-10-15', date_to='2018-10-22', total_cost='122.23', total_tax_cost=10.53))
Severity: Minor
Found in populate.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (130 > 79 characters)
Open

    db.session.add(Report(company_id=3, date_from='2018-11-14', date_to='2018-11-23', total_cost='412.30', total_tax_cost=200.13))
Severity: Minor
Found in populate.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (127 > 79 characters)
Open

    db.session.add(Report(company_id=1, date_from='2018-09-13', date_to='2018-09-21', total_cost='12.23', total_tax_cost=2.33))
Severity: Minor
Found in populate.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Rename function "seedReports" to match the regular expression ^[a-z_][a-z0-9_]{2,}$.
Open

def seedReports(db):
Severity: Major
Found in populate.py by sonar-python

Shared coding conventions allow teams to collaborate efficiently. This rule checks that all function names match a provided regular expression.

Noncompliant Code Example

With the default provided regular expression: ^[a-z_][a-z0-9_]{2,30}$

def MyFunction(a,b):
    ...

Compliant Solution

def my_function(a,b):
    ...

There are no issues that match your filters.

Category
Status