Showing 3,654 of 3,654 total issues
Function WidgetGroup
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function WidgetGroup(search, api, superdesk, desks, cards, $timeout, $q,
$location, $anchorScroll, activityService: IActivityService, $rootScope, datetime, metadata) {
Function RelatedItemController
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$scope,
api,
BaseWidgetController,
notify,
superdesk,
Function UserPreferencesDirective
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
session, preferencesService, notify, asset, metadata, desks, modal,
$timeout, $q, userList, _, search, authThemes,
Function getActionsBulkInitialize
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getActionsBulkInitialize(superdesk: ISuperdesk) {
const {gettext} = superdesk.localization;
const {isLocked, isLockedInOtherSession} = superdesk.entities.article;
return function getActionsBulk(articles: Array<IArticle>) {
Function _rollback
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _rollback(scope, comparisonScope) {
var id = scope.$id,
comparisonScopeId = comparisonScope.$id,
stack = history[id],
pointer,
Function setsReducer
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setsReducer(
state: ISetState = initialState,
action: ISetActionTypes,
): ISetState {
switch (action.type) {
Function constructor
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: IProps) {
super(props);
this.state = {
fields: null,
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<CommentsWidget
entityId={this.props.article._id}
readOnly={this.props.readOnly}
Function queryItems
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function queryItems(queryString?, params?) {
if (!scope.fetching) {
// page reload disabled when the user scrolls
if (container.scrollTop > 20) {
return;
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {value, field, remove, onChange, label, readOnly, errors, ...props} = this.props;
return (
<Row>
Function save
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.save = function() {
$scope.vocabulary.items = componentRef.getItemsForSaving();
$scope._errorUniqueness = false;
$scope.errorMessage = null;
delete $scope.vocabulary['_deleted'];
Function link
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
const editor = editorResolver.get();
scope.to = '';
scope.from = '';
Function link
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attr, controller) {
var GRID_VIEW = 'mgrid',
LIST_VIEW = 'compact';
var multiSelectable = attr.multiSelectable !== undefined;
Function link
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: (scope) => {
scope.terms = [];
scope.searchTerms = (name) => {
if (!name) {
Function link
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope) {
scope.widget = null;
scope.pinnedWidget = null;
scope.userLookup = desks.userLookup;
Function TransmissionDetailsDirective
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function TransmissionDetailsDirective(api) {
return {
templateUrl: 'scripts/apps/authoring/versioning/history/views/publish_queue.html',
scope: {
item: '=',
Function link
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
var ENTER = 13;
scope.focused = false;
var input = elem.find('#search-input');
Function componentDidMount
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount() {
this.fetchData(1, 50).then((res) => {
this.setState({loading: false, initialData: res}, () => {
this.props.onInitialized();
});
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
const rows = chunk(this.state.dates, 7);
return (
Function generateHtml
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateHtml(
store: Store<IEditorStore, AnyAction>,
item: IArticle,
pathToValue: string,
) {