Showing 3,654 of 3,654 total issues
Function ItemContainer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ItemContainer: React.StatelessComponent<any> = (props) => {
const item = props.item;
const desk = props.desk || null;
let label;
let value;
Function maybeDisplayInvalidInstanceConfigurationMessage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function maybeDisplayInvalidInstanceConfigurationMessage() {
const issues: Array<React.ReactNode> = [];
ng.get('vocabularies').getAllActiveVocabularies().then((vocabularies) => {
const categoriesMissing = vocabularies.find(({_id}) => _id === 'categories') == null;
Function save
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.save = (close) => {
const imagesForSaving = angular.copy($scope.images);
imagesForSaving.forEach((image) => {
delete image.selected;
Function link
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope: IScope) {
const getDefaults = (): IModel => ({
everyDay: 'true',
customWeekdays: [],
everyHour: 'true',
Function setProcessedItems
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var setProcessedItems = () => {
if (scope.loading) {
return;
}
Function canAddHighlight
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function canAddHighlight(editorState, highlightType) {
if (highlightTypeValid(highlightType) !== true) {
return false;
}
Function startEditing
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startEditing(id: string) {
if (this.state.editItem != null) {
this.modal.alert({
headerText: gettext('Warning'),
bodyText: gettext(
Function canAddArticleEmbed
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function canAddArticleEmbed(
srcId: IArticle['_id'],
destId: IArticle['_id'],
): Promise<{ok: true; src: IArticle} | {ok: false; error: string}> {
return Promise.all([
Function getComponentForKey
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getComponentForKey(key: string) {
const decorations: Array<string | null> = JSON.parse(key);
return (props) => {
const {decoratorProps, ...compositionProps} = props;
Function getAbbreviationText
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getAbbreviationText = (block, offset) => {
const text = block.getText();
const length = block.getLength();
let start = offset;
let end = offset;
Function confirmBase
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function confirmBase(
bodyText,
headerText,
okText,
cancelText,
Function reload
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.reload = function() {
var criteria = {
where: getFilter(),
embedded: {
item: 1,
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
this.btnSave = $('.action-bar').element(by.buttonText('Save'));
this.btnCancel = $('.action-bar').element(by.buttonText('Cancel'));
// the Preferences tab
Function PublishQueueController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function PublishQueueController($scope, subscribersService, api, $q, notify, $location, ingestSources,
vocabularies) {
Consider simplifying this complex logical expression. Open
Open
if (
type == null // if `dropEvent` is defined, `type` can't be null
|| (
(config.allowPicture !== true && type === SUPERDESK_MEDIA_TYPES.PICTURE)
|| (config.allowVideo !== true && type === SUPERDESK_MEDIA_TYPES.VIDEO)
Consider simplifying this complex logical expression. Open
Open
if (data && (data.item || data.items || data.item_id) && scope.showRefresh && !data.force) {
// if we know the ids of the items then try to fetch those only
originalQuery = angular.extend({}, criteria.source.query);
let items = data.items || {};
Function ContactEditorDirective
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
contacts,
notify,
privileges,
metadata,
$filter,
Function spikeActivity
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function spikeActivity(data, modal, $location, multi,
authoringWorkspace: AuthoringWorkspaceService, confirm, autosave, $rootScope) {
Function DuplicateController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function DuplicateController(api, notify, $rootScope, data, desks, $location, workspaces, session) {
Function ProductsConfigController
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function ProductsConfigController($scope: IScope, notify, api, products, modal,
subscribersService, metadata, $filter) {