Showing 3,654 of 3,654 total issues
Function getCropRotate
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCropRotate(crop: ICrop): ICrop {
if (this.videoRef.current == null) {
throw new Error('Could not get rotated video crop value');
}
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {gettext} = superdeskApi.localization;
return (
<Modal
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const value1Ids = (this.props.value1 ?? []).map(({guid}) => guid);
const value2Ids = (this.props.value2 ?? []).map(({guid}) => guid);
const allIds = uniq([...value1Ids, ...value2Ids]);
Function runTansa
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function runTansa(contentProfile: IContentProfileV2, fieldsData: Map<string, unknown>) {
// Disable tansa for all text fields.
Array.from(document.querySelectorAll(
'input[type="text"], textarea, [contenteditable]',
)).forEach((el) => {
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const ids1 = (this.props.attachmentsPrevious ?? []).map(({_id}) => _id);
const ids2 = (this.props.attachmentsCurrent ?? []).map(({_id}) => _id);
const stats = getDifferenceStatistics(
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const value1Ids = (this.props.value1 ?? []).map(({id}) => id);
const value2Ids = (this.props.value2 ?? []).map(({id}) => id);
const allIds = uniq([...value1Ids, ...value2Ids]);
Function constructor
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor($scope, $injector, $location, api, $rootScope, search, desks) {
super($scope, $location, search, desks);
const setTotalCount = super.setTotalCount.bind(this);
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const className = (
this.props.className != null ? this.props.className : 'item-association'
) + (this.state.hover ? ' dragover' : '');
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
style,
title,
children,
Function authenticateIngestProvider
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function authenticateIngestProvider(actions: Array<{label: string; onClick(): void}>) {
interface IProps {
closeModal(): void;
}
Function call
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.call = function(macro: IMacro) {
const editor = editorResolver.get();
const isEditor3 = editor.version() === '3';
const useReplace = macro.replace_type === 'simple-replace' || macro.replace_type === 'keep-style-replace';
const isSimpleReplace = macro.replace_type === 'simple-replace';
Function link
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attrs) {
scope.active = function(user) {
return usersService.isActive(user);
};
Function FindReplaceDirective
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FindReplaceDirective(editorResolver, macros) {
return {
link: function(scope, elem) {
const editor = editorResolver.get();
Function getPublishWarningConfirmModal
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getPublishWarningConfirmModal(
warnings: Array<string>,
publishingAction: () => any,
) {
return new Promise((resolve, reject) => {
Function waitForMediaAndInitCarousel
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.waitForMediaAndInitCarousel = (items) => {
previousItems = _.cloneDeep(items);
let field = _.find(items, (item) => !item[item.fieldId]);
scope.rel = field ? field.fieldId : null;
Function TaskPreviewDirective
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TaskPreviewDirective(tasks, desks, notify, $filter) {
var promise = desks.initialize();
return {
templateUrl: 'scripts/apps/dashboard/workspace-tasks/views/task-preview.html',
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {group, data, toggleCollapseExpand} = this.props;
const loadedItemsCount = data.itemIds.length;
return (
Function removeParameter
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.removeParameter = function(param) {
var searchParameters = $location.search();
if (searchParameters.q && searchParameters.q.indexOf(param) >= 0) {
let newQuery = _.uniq(searchParameters.q.replace(param, '').trim()
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.state.messages.length < 1) {
return null;
}
Function ResetPassworController
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ResetPassworController($scope, $location, api, notify) {
$scope.isSending = false;
$scope.isReseting = false;
var resetForm = function() {