airbnb/caravel

View on GitHub
superset/row_level_security/api.py

Summary

Maintainability
B
5 hrs
Test Coverage

File api.py has 336 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: Minor
Found in superset/row_level_security/api.py - About 4 hrs to fix

    Avoid too many return statements within this function.
    Open

                return self.response_404()
    Severity: Major
    Found in superset/row_level_security/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/row_level_security/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/row_level_security/api.py - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status