Showing 1,278 of 4,906 total issues
Method initialize
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(prefix, operator, term, options = {})
@prefix = prefix
@negated = operator == '-'
@options = options
@operator = :filter
Method call
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call(row)
@account = row.bulk_import.account
@data = row.data
@type = row.bulk_import.type.to_sym
Function getTicks
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTicks (count, size, radius, scaleCoefficient) {
const ticks = this.getTickPoints(count);
const lesser = 200;
const m = [];
const bufferLength = this.analyser ? this.analyser.frequencyBinCount : 0;
Function stringFromCodePoint
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const stringFromCodePoint = _String.fromCodePoint || function () {
let MAX_SIZE = 0x4000;
let codeUnits = [];
let highSurrogate;
let lowSurrogate;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { loading, data } = this.state;
return (
<div className='dimension'>
Function searchValue
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const searchValue = (value) => {
let aPool = pool,
aIndex = index,
length = 0;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { limit } = this.props;
const { loading, data } = this.state;
let content;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { value, intl, frequentlyUsedLanguages } = this.props;
const { open, placement } = this.state;
const current = preloadedLanguages.find(lang => lang[0] === value) ?? [];
Function searchValue
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const searchValue = (value) => {
let aPool = pool,
aIndex = index,
length = 0;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { limit } = this.props;
const { loading, data } = this.state;
let content;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { value, container, disabled, intl } = this.props;
const { open, placement } = this.state;
const valueOption = this.options.find(item => item.value === value);
Function stringFromCodePoint
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const stringFromCodePoint = _String.fromCodePoint || function () {
let MAX_SIZE = 0x4000;
let codeUnits = [];
let highSurrogate;
let lowSurrogate;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { loading, data } = this.state;
return (
<div className='dimension'>
Function getTicks
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTicks (count, size, radius, scaleCoefficient) {
const ticks = this.getTickPoints(count);
const lesser = 200;
const m = [];
const bufferLength = this.analyser ? this.analyser.frequencyBinCount : 0;
Function renderPoll
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderPoll (notification, account) {
const { intl, unread, status } = this.props;
const ownPoll = me === account.get('id');
const message = ownPoll ? intl.formatMessage(messages.ownPoll) : intl.formatMessage(messages.poll);
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { value, intl, frequentlyUsedLanguages } = this.props;
const { open, placement } = this.state;
const current = preloadedLanguages.find(lang => lang[0] === value) ?? [];
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { value, container, disabled, intl } = this.props;
const { open, placement } = this.state;
const valueOption = this.options.find(item => item.value === value);
Method log_target
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def log_target(log)
case log.target_type
when 'Account'
link_to (log.human_identifier.presence || I18n.t('admin.action_logs.deleted_account')), admin_account_path(log.target_id)
when 'User'
Method remove_orphans_conversations
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def remove_orphans_conversations
start_at = Time.now.to_f
unless options[:continue] && ActiveRecord::Base.connection.table_exists?('conversations_to_be_deleted')
say('Creating temporary database indices...')
Consider simplifying this complex logical expression. Open
Open
if current_account_id.nil?
@reblogs_map = {}
@favourites_map = {}
@bookmarks_map = {}
@mutes_map = {}