Showing 3,654 of 3,654 total issues
Function filterDataList
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
filterDataList(event) {
const {dataList, onChange, querySearch, onQuerySearch} = this.props;
const value = event.target.value;
Function getCriteria
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCriteria(param) {
let criteria: any = {};
let params = param || this.$location.search();
let sort = this.sort.getSort(this.sortOptions);
let filters = [];
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const formConfig: IFormGroup = {
direction: 'vertical',
type: 'inline',
form: [
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {user, displayStatus, displayAdministratorIndicator} = this.props;
return (
<LazyOrNot {...this.props}>
Function uploadFile
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var uploadFile = function(item) {
var handleError = function(reason) {
if (reason && reason.data && reason.data.code) {
notify.error(gettext('Upload Error:') + ' ' + reason.data.code);
}
Function CommentTextDirective
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CommentTextDirective($compile) {
return {
scope: {
comment: '=',
},
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {loading, children} = this.props;
const style: CSSProperties = loading
? {position: 'absolute', insetInlineStart: -9999, insetBlockStart: -9999, visibility: 'hidden'}
: {height: '100%'};
Function fetchMetadataValues
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetchMetadataValues: function() {
var self = this;
return vocabularies.getAllActiveVocabularies().then((result) => {
_.each(result, (vocabulary) => {
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="sd-main-content-grid__preview open-preview">
<div className="side-panel__container">
<div className="side-panel side-panel--bg-00 side-panel--shadow-right">
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const props = this.props;
const _flags = props.item.flags || {};
const elems = [
Function componentDidMount
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount() {
this._mounted = true;
this.eventListenersToRemoveBeforeUnmounting.push(
addWebsocketEventListener(
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<React.Fragment>
{this.props.item.translated_from != null && (
<button
Function registerPage
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerPage(page: IPage) {
const params: any = {
label: page.title,
priority: page.priority ?? 100,
adminTools: false,
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {h, v, gap, justifyContent, alignItems, noGrow, noWrap} = this.props;
const justifyContentDefault: IPropsSpacer['justifyContent'] = h ? 'space-between' : 'start';
const alignItemsDefault: IPropsSpacer['alignItems'] = h ? 'center' : 'start';
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
field,
value,
autoHeight,
Function link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
var window = angular.element($window);
var resize = _.debounce(calcSize, 300);
var elementClass = scope.elementClass ? scope.elementClass : 'elementState';
Function handleDown
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handlers[Keys.down] = function handleDown() {
var nextElem = elem.find('button:focus')
.parent('li')
.next()
.children('button'),
Function sanitizeContent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function sanitizeContent(editorState, styles = acceptedInlineStyles) {
let contentState = editorState.getCurrentContent();
const ignoreStyle = (style) => styles.indexOf(style) === -1;
const getSelection = (block, start, end) => SelectionState.createEmpty(block.getKey()).merge({
Function BetaTemplateInterceptor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BetaTemplateInterceptor($q, $templateCache, betaService) {
var modifiedTemplates = {};
var HAS_FLAGS_EXP = /sd-beta/,
IS_HTML_PAGE = /\.html$|\.html\?/i;
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: IPropsGenericForm<T, P> & IPropsConnected<T>) {
super(props);
// preview and edit mode can enabled at the same time, but only one pane will be displayed at once
// if you start editing from preview mode, you shall return to preview after saving/cancelling the edit