Showing 3,654 of 3,654 total issues
Function redo
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.redo = function redo(exp, scope) {
scope = scope || $rootScope;
var id = scope.$id,
stack = history[id][exp],
values,
Function intervalCheckVideo
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.intervalCheckVideo = window.setInterval(() => {
this.props.superdesk.dataApi
.findOne<IVideoProject>('video_edit', this.state.article._id)
.then((result) => {
const processing = result.project.processing;
Function focusFirstChildInput
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function focusFirstChildInput(parent: HTMLElement) {
const loadingStartTimestamp = Date.now();
let lastElementCount = null;
/**
Function getFieldV2
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFieldV2: (fieldEditor, fieldSchema) => {
const fieldConfig: IDropdownConfigRemoteSource = {
source: 'remote-source',
searchOptions: (searchTerm, language, callback) => {
httpRequestJsonLocal<IRestApiResponse<IGeoName>>({
Function config
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const config = (() => {
if (this.state.source === 'manual-entry') {
const defaults: IDropdownConfigManualSource = {
source: 'manual-entry',
type: 'text',
Function Package
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Package() {
var solveRefs = function(item, groups) {
var items = {childId: '_items', childData: []};
var tree = [items];
Function ContentFiltersService
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ContentFiltersService(api, $filter) {
this.productionTestFilter = function(filter) {
return filter;
};
Function initSpikeGroups
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initSpikeGroups(isDesk) {
var spikeDesks: any = {};
if (self.spikeGroups.length > 0) {
self.spikeGroups.length = 0;
Function _getFilters
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getFilters(params) {
let filters = [];
// set filters for parameters
if (params.subject) {
Function validateField
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validateField(fieldName, value, e, diff) {
const fieldValidationErrors = this.state.errors;
if (e && e.target.type === 'email') {
if (e.target.validity.typeMismatch) {
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor($scope, $location, search, desks) {
this.lastQueryParams = {};
this.$location = $location;
this.search = search;
this.desks = desks;
Function buildPreferences
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildPreferences(data) {
var buckets, // names of the needed metadata buckets
initNeeded; // metadata service init needed?
scope.preferences = {};
Function ProfilingController
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ProfilingController($scope, api) {
$scope.profiling_data = [];
$scope.current_profile = null;
$scope.profiles = ['rest', 'publish:enqueue', 'publish:transmit'];
$scope.profile_names = {
Function ProfileService
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ProfileService(api) {
var RESOURCE = 'activity';
/**
* Get all activity of single user, being it content related or not
Function _updateDeskActions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this._updateDeskActions = function(currentItem, oldAction, userDesks) {
let action = oldAction;
let userPrivileges = privileges.privileges;
if (currentItem.task && currentItem.task.desk) {
Function SuggestionsCtrl
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SuggestionsCtrl($scope, userList, content) {
getLabelNameResolver().then((getLabelForFieldId) => {
const suggestions = Object.keys($scope.item[META_FIELD_NAME])
.map((contentKey) => ({
contentKey: contentKey,
Function PreviewFormattedDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PreviewFormattedDirective(api, notify, storage) {
return {
templateUrl: 'scripts/apps/authoring/views/preview-formatted.html',
link: function(scope) {
scope.loading = false;
Function HistoryController
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function HistoryController(
$scope,
desks,
api,
highlightsService,
Function select
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.select = function(item) {
var fieldObject: {[fieldId: string]: any} = {};
const isMultiInputField = scope.multiInputFields.includes(scope.field);
if (item) {
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.services = {
$anchorScroll: ng.get('$anchorScroll'),