xebialabs-community/xlr-servicenow-plugin

View on GitHub
src/main/resources/web/include/ServiceNowQueryTile/js/servicenow-query-tile.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function ServiceNowQueryTileViewController has 136 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var ServiceNowQueryTileViewController = function ($scope, ServiceNowQueryService, XlrTileHelper) {
        var vm = this;
        var tile;
        var config;
        var predefinedColors = [];

    Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function load(config) {
                if (tileConfigurationIsPopulated()) {
                    vm.loading = true;
                    ServiceNowQueryService.executeQuery(tile.id, config).then(
                        function (response) {

      There are no issues that match your filters.

      Category
      Status