Showing 720 of 1,785 total issues
Method cc
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cc(status)
cc = []
cc << uri_for(status.reblog.account) if status.reblog?
Function submitSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitSearch() {
return (dispatch, getState) => {
const value = getState().getIn(['search', 'value']);
if (value.length === 0) {
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { hasError, copied, errorMessage } = this.state;
if (!hasError) {
return this.props.children;
Function onReceive
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onReceive (data) {
switch(data.event) {
case 'update':
dispatch(updateTimeline(timelineId, JSON.parse(data.payload), options.accept));
break;
Function renderUpdate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderUpdate (notification, link) {
const { intl, unread } = this.props;
return (
<HotKeys handlers={this.getHandlers()}>
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, columnId, hasUnread, multiColumn, onlyMedia, onlyRemote } = this.props;
const pinned = !!columnId;
return (
Function renderReblog
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderReblog (notification, link) {
const { intl, unread } = this.props;
return (
<HotKeys handlers={this.getHandlers()}>
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const status = this.props.status && (
<div className='status light'>
<div className='boost-modal__status-header'>
<div className='boost-modal__status-time'>
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, hidden, account, onAuthorize, onReject } = this.props;
if (!account) {
return <div />;
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { announcement } = this.props;
const { unread } = this.state;
const startsAt = announcement.get('starts_at') && new Date(announcement.get('starts_at'));
const endsAt = announcement.get('ends_at') && new Date(announcement.get('ends_at'));
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, hasMore, accountIds, multiColumn, isLoading } = this.props;
if (!accountIds) {
return (
Function renderStatus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderStatus (notification, link) {
const { intl, unread } = this.props;
return (
<HotKeys handlers={this.getHandlers()}>
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { account, submitted } = this.props;
return (
<React.Fragment>
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, accountIds, hasMore, multiColumn, isLoading } = this.props;
if (!accountIds) {
return (
Function renderFavourite
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderFavourite (notification, link) {
const { intl, unread } = this.props;
return (
<HotKeys handlers={this.getHandlers()}>
Method privatize_media_attachments!
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def privatize_media_attachments!
attachment_names = MediaAttachment.attachment_definitions.keys
@account.media_attachments.find_each do |media_attachment|
attachment_names.each do |attachment_name|
Method call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call(uri, id: true, prefetched_body: nil, on_behalf_of: nil)
@json = begin
if prefetched_body.nil?
fetch_resource(uri, id, on_behalf_of)
else
Method publish_media_attachments!
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def publish_media_attachments!
attachment_names = MediaAttachment.attachment_definitions.keys
@account.media_attachments.find_each do |media_attachment|
attachment_names.each do |attachment_name|
Method export
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def export(path)
exported = 0
category = CustomEmojiCategory.find_by(name: options[:category])
export_file_name = File.join(path, 'export.tar.gz')
Method add
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def add(*addresses)
if addresses.empty?
say('No IP(s) given', :red)
exit(1)
end