src/main/resources/web/include/ServiceNowQueryTile/js/servicenow-query-tile.js
Function ServiceNowQueryTileViewController
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
function load(config) {
if (tileConfigurationIsPopulated()) {
vm.loading = true;
ServiceNowQueryService.executeQuery(tile.id, config).then(
function (response) {