Showing 3,654 of 3,654 total issues
Function bindActionKeyShortcuts
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindActionKeyShortcuts(selectedItem) {
const {
activityService,
archiveService,
keyboardManager,
Function link
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, sdGrid) {
sdGrid.addWidget(scope.widget, element);
scope.removeWidget = function() {
sdGrid.removeWidget(scope.widget, element);
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.item.subject == null) {
return null;
}
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const highlights = this.getHighlights();
const hasActiveHighlight = function() {
const statuses = this.getHighlightStatuses(highlights, this.props.item);
Function loadPlanningModals
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadPlanningModals() {
const session = ng.get('session');
const superdesk = ng.get('superdesk');
const activityService: IActivityService = ng.get('activityService');
Function fetchItem
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetchItem() {
var filter = [
{not: {term: {state: 'spiked'}}},
{bool:
{should: [{term: {unique_name: scope.meta.unique_name}},
Function initParameters
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initParameters(params, urlParams, dateFilters) {
const parameters = urlParams || PARAMETERS;
let dateFilterTags = [];
dateFilters.forEach((dateFilter) => {
Function runSpellchecker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
runSpellchecker() {
if (this.spellcheckerTimeout) {
window.clearTimeout(this.spellcheckerTimeout);
}
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let classNames = ['tag-label'];
const {type, color} = this.props;
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const inlineStyles: React.CSSProperties = {
cursor: typeof this.props.onClick === 'function' ? 'pointer' : 'inherit',
};
Function TimepickerDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TimepickerDirective($document) {
return {
scope: {
tt: '=ngModel',
style: '@',
Function pruneNodes
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pruneNodes() {
this.cleanUpDraftTables();
this.tree.html(this.manageEmbeds(this.tree.html()));
Function debouncedFn
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const debouncedFn = () => {
cancelled = false;
if (firstCallTimestamp == null) {
firstCallTimestamp = Date.now();
Function allowEditSuggestion
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const allowEditSuggestion = (editorState, author, isBackward) => {
const selection = editorState.getSelection();
let newEditorState;
let tmpEditorState;
Function getRangesExceedingLimit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRangesExceedingLimit(
contentState: ContentState,
limit: number,
): IResult {
const cached = cache.get(contentState);
Function handlePastedText
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function handlePastedText(text: string, _html: string): DraftHandleValue {
const author = getCurrentAuthor();
let html = _html;
if (typeof html === 'string') {
Function DateTimeHelperService
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DateTimeHelperService() {
/*
* @param timestring 2016-03-01T04:45:00+0000
* @param timezone Europe/London
*/
Function PhoneHomeModalDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PhoneHomeModalDirective(serverConfig, api, session) {
let template = require('./views/phone-home-modal-directive.html');
class PhoneController {
data: any;
Function link
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function($scope, el, attr, ngModel) {
var indicator = angular.element(
'<div class="password-strength">' +
gettext('Strength') + ': <span class="label"></span>' +
'<div class="icon-question-sign"></div>' +
Function SourcesDirective
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SourcesDirective() {
var typeMap = {
'video/mpeg': 'video/mp4',
};