airbnb/caravel

View on GitHub
superset/reports/api.py

Summary

Maintainability
C
1 day
Test Coverage

File api.py has 545 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
Severity: Major
Found in superset/reports/api.py - About 1 day to fix

    Avoid too many return statements within this function.
    Open

                return self.response_422(message=str(ex))
    Severity: Major
    Found in superset/reports/api.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return self.response_422(message=str(ex))
      Severity: Major
      Found in superset/reports/api.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return self.response_403()
        Severity: Major
        Found in superset/reports/api.py - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status