Showing 3,654 of 3,654 total issues
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {config} = this.props;
switch (config.source) {
case 'manual-entry':
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {value1, value2, config} = this.props;
const {options} = config;
const values1: Array<IDropdownOption> =
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {readOnly} = this.props;
const AttachmentsEditor = CC.AuthoringAttachmentsWidget != null ?
CC.AuthoringAttachmentsWidget :
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const Container = this.props.container;
const {readOnly} = this.props;
return (
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {item, onSelect} = this.props;
return (
<div>
Function edit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.edit = function(currentStep, displayOnlyCurrentStep) {
this.editGroups = {};
this.refreshGroups().then(() => {
var _groups = this.groups;
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {renditions} = this.props;
const cropSizes =
sdApi.vocabularies.getAll()
.get('crop_sizes')
Function saveFilter
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.saveFilter = function() {
delete $scope.contentFilter.article_id;
for (var i = 0; i < $scope.contentFilter.content_filter.length; i++) {
if (Object.keys($scope.contentFilter.content_filter[i].expression).length < 1) {
Function constructor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: IProps) {
super(props);
const {svc, contact} = props;
const {metadata} = svc;
Function UserListService
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UserListService(api, $q, $cacheFactory) {
var userservice: any = {};
var cache = $cacheFactory('userList');
Function cutoffPreviousRenditions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function cutoffPreviousRenditions(update, origItem) {
const defaultRenditions = ['original', 'baseImage', 'thumbnail', 'viewImage'];
let updateRenditions = null;
let origRenditions = null;
Function PopulateAuthorsController
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PopulateAuthorsController($scope: IScope, roles: IRolesService, session: ISession) {
if (!$scope._editable) {
return;
}
Function themeSelectLink
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function themeSelectLink(scope, elem) {
const DEFAULT_CLASS = 'main-article theme-container';
scope.themes = authThemes.availableThemes;
Function interval
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const interval = setInterval(() => {
if (Date.now() - loadingStartTimestamp > 5000) {
// stop trying after 5s
// there might not be inputs in authoring header configured
clearInterval(interval);
Function bindMarkItemShortcut
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function bindMarkItemShortcut(label) {
const currentActiveElement = document.activeElement instanceof HTMLElement ? document.activeElement : null;
const keyboardManager = ng.get('keyboardManager');
angular.element('.active .more-activity-toggle-ref').click();
Function constructor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.state = {
bindedShortcuts: [],
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.previewOutput) {
return <div data-test-id={`gform-output--${this.props.formField.field}`}>{this.props.value}</div>;
}
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const keyedItems: {[key: string]: T} = keyBy(this.state.fetchedItems, (item) => item._id);
return (
<Select2
Function link
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attrs, ctrl) {
var invalidText = '<span id="required_span" class="sd-invalid-text">' +
gettext('This field is required') + '</span>';
scope.$watch(attrs.required, (required) => {
Function parseTable
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseTable(data) {
if (this.disabled.indexOf('table') > -1) {
return '';
}