18F/crime-data-api

View on GitHub

Showing 91 of 91 total issues

Avoid too many return statements within this function.
Open

return ('nibrs_location_type','location_name')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return ('nibrs_circumstances', 'circumstances_name')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return ('nibrs_resident_status_code','resident_status_code')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return ('nibrs_resident_status_code','resident_status_code')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return ('ref_race','race_code')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return (None, None)
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

return ('nibrs_sex_code','sex_code')
Severity: Major
Found in crime_data/common/cdemodels.py - About 30 mins to fix

Function tuning_page has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def tuning_page(f):
@wraps(f)
def decorated_get(*args, **kwargs):
if 'tuning' in args[1] and args[1]['tuning']:
if not current_app.config['DEBUG']:
Severity: Minor
Found in crime_data/common/base.py - About 25 mins to fix

FIXME found
Open

# FIXME: can add associations when we need them
Severity: Minor
Found in crime_data/common/newmodels.py by fixme

TODO found
Open

# TODO: Sort by columns.
Severity: Minor
Found in crime_data/common/base.py by fixme

TODO found
Open

# TODO: apply "fields" arg
Severity: Minor
Found in crime_data/common/base.py by fixme
Severity
Category
Status
Source
Language