Showing 3,654 of 3,654 total issues
Function link
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attrs, ctrl) {
const views = {};
views[''] = {label: gettext('None')};
views['list'] = {label: gettext('List View'), icon: 'list-view'};
Function fetchProviders
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetchProviders() {
var criteria = criteria || {};
criteria.max_results = $location.search().max_results || 200;
criteria.page = $scope.searchPage || $location.search().page || 1;
Function openPreviewForItem
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openPreviewForItem(subscriberId, format, endpointUrl) {
const {itemId} = this.props;
const urls = ng.get('urls');
const nextWindow = window.open();
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {selectedItemLabel, options, language, tabIndex, disabled} = this.props;
const optionsWithTranslations = options.map((option) =>
({label: getVocabularyItemNameTranslated(option, language), value: option.qcode, option}));
Function getSortedFields
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getSortedFields = (
section: 'header' | 'content',
editor: any,
item: IArticle,
hideMedia: boolean,
Function mergeItems
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.mergeItems = function(newItems, scopeItems, append, force) {
if (this.getElasticHighlight()) {
newItems._items = _.map(newItems._items, this.mergeHighlightFields);
}
Function gettextReact
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const gettextReact = (
text: string,
params: {[placeholder: string]: string | number | React.ComponentType},
): Array<JSX.Element> => {
let matches: Array<{index: number, str: string, placeholder: string}> = [];
Function query
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
query: (searchString: string, props) => {
const deskId = props.formValues[props.formField.component_parameters['deskField']];
const deskFilter = {desk: deskId};
if (deskId == null) {
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {field, value, readOnly, onFocus} = this.props;
return (
<Row>
Function AuthExpiredInterceptor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AuthExpiredInterceptor(session, $q, $injector, $browser, _) {
function handleAuthExpired(response) {
$browser.$$completeOutstandingRequest(angular.noop);
session.expire();
return session.getIdentity().then(() => {
Function onmessage
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ws.onmessage = function(event) {
var msg = angular.fromJson(event.data);
// Delay all websocket events to avoid getting old data.
// The server is sending websocket events before it is able to return updated data.
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
<select
multiple
Function entityStyleFn
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
entityStyleFn: (entity: Draft.EntityInstance) => {
if (entity.getType() === 'LINK') {
const data = entity.getData();
if (data.url) {
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {children, editorState} = this.props;
const propsExcludingOwn = Object.keys(this.props)
.filter((key) => (key !== 'children'))
.reduce((obj, key) => {
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
// when non-null, holds the entity whos URL is being edited
this.entity = null;
Function AllowedService
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AllowedService(_, api, $q) {
var values;
function fetch() {
if (values) {
Function KeyEventBroadcast
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function KeyEventBroadcast($rootScope, $document, Keys, shiftNums) {
var ignoreNodes = {
INPUT: true,
TEXTAREA: true,
BUTTON: true,
Function link
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
function setProgress(val) {
if (scope.progressWidth !== undefined) {
scope.progressWidth = val;
}
Function onload
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
img.onload = function() {
scope.progressWidth = 80;
var size = [this['width'], this['height']];
if (size[0] < 200 || size[1] < 200) {
Function setupAuthoringReact
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setupAuthoringReact = (url: string) => {
const extensionUrls = flatMap(
Object.values(extensions).map(({activationResult}) => activationResult),
(activationResult) => activationResult.contributions?.pages ?? [],
).map((page) => page.url);