Web.Admin/ClientApp/Services/service.data.js
Function dataService
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var dataService = function ($http, $location) {
var url = $location.absUrl();
var host = $location.host();
var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
var currentYear = url.slice(firstSlash, firstSlash + 4);