Showing 3,654 of 3,654 total issues
Function link
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope) {
scope.canPrintPreview = canPrintPreview;
function overrideEdnote(template) {
/* Override Editor note with given template or default one
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const Widget = CC.AuthoringAttachmentsWidget != null ?
CC.AuthoringAttachmentsWidget :
AttachmentsWidgetComponent;
Function deschedule
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deschedule = () => {
const descheduled = () => {
const errors = [];
const success = [];
Function MultieditFloatMenuDirective
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MultieditFloatMenuDirective($document) {
return {
link: function(scope, elem) {
var open = false;
Function dbClick
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dbClick(item) {
if (typeof this.props.onMonitoringItemDoubleClick === 'function') {
this.props.onMonitoringItemDoubleClick(item);
return;
}
Function getSortedFieldsFiltered
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getSortedFieldsFiltered = (
section: 'header' | 'content',
editor: any,
item: IArticle,
hideMedia: boolean,
Function selectTerm
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.selectTerm = function(term, $event) {
// while searching, allow to search for categories but don't select them
if (scope.tree?.[term?.[scope.uniqueField]] && !scope.allowEntireCat) {
scope.openTree(term, $event);
} else if (term) {
Function initSelectedParameters
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initSelectedParameters(params, objectOnly?: boolean) {
let parameters = params;
let selectedParameters = [];
const paramObject = {};
Function preview
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.preview = function preview(item) {
if (multiSelectable) {
if (_.findIndex(scope.selectedList, {_id: item._id}) === -1) {
scope.selectedList.push(item);
} else {
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<Modal
visible
zIndex={1050}
Function componentDidMount
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount() {
document.addEventListener('keydown', this.handleKeydown);
document.addEventListener('click', this.handleClickOutside);
if (this.dom.root) {
Function renderSingleLevelSelect
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSingleLevelSelect() {
return (
<Popup
close={this.props.onCancel}
target={this.props.target}
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const renditions = this.props.item.renditions;
const guid = this.props.item.guid;
if (renditions == null) {
Function tryLocking
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function tryLocking<T extends ILockInfo & IBaseRestApiResponse>(
endpoint: string,
entityId: string,
force: boolean = false,
): Promise<{success: boolean; latestEntity: T}> {
Function changeCase
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function changeCase(state: IEditorStore, payload: {changeTo: ITextCase, selection: SelectionState}) {
const getChangedText = (text: string) => {
if (changeTo === 'uppercase') {
return text.toUpperCase();
} else if (changeTo === 'lowercase') {
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const mentionsInputStyle = typeof this.props.maxHeight !== 'number'
? mentionsStyle.input
: {...mentionsStyle.input, '&multiLine': {
...mentionsStyle.input['&multiLine'],
Function render
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const data = this.getData();
const {numRows, numCols, withHeader} = data;
const cx = this.props.className != null
? this.props.className
Function insertContentInState
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function insertContentInState(
editorState: EditorState,
pastedContent: ContentState,
editorFormat: Array<string>): EditorState {
let _pastedContent = pastedContent;
Function constructor
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
this.list = element.all(by.repeater('subscriber in subscribers'));
this.saveSubscriberButton = element(by.css('[ng-click="save()"]'));
this.cancelSubscriberButton = element(by.css('[ng-click="cancel()"]'));
Function waitReady
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ElementFinder.prototype.waitReady = function(optStr) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
var self = this;
var specTimeoutMs = browser.allScriptsTimeout * 2;
var driverWaitIterations = 0;