Showing 1,278 of 4,906 total issues
Function expandNormalizedConversations
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const expandNormalizedConversations = (state, conversations, next, isLoadingRecent) => {
let items = ImmutableList(conversations.map(conversationToMap));
return state.withMutations(mutable => {
if (!items.isEmpty()) {
Function expandNormalizedTimeline
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const expandNormalizedTimeline = (state, timeline, statuses, next, isPartial, isLoadingRecent, usePendingItems) => {
// This method is pretty tricky because:
// - existing items in the timeline might be out of order
// - the existing timeline may have gaps, most often explicitly noted with a `null` item
// - ideally, we don't want it to reorder existing items of the timeline
Method perform
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def perform(subscription_id, notification_id)
@subscription = Web::PushSubscription.find(subscription_id)
@notification = Notification.find(notification_id)
return if @notification.updated_at < TTL.ago
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 createPollFromServerJSON
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createPollFromServerJSON(
serverJSON: ApiPollJSON,
previousPoll?: Poll,
) {
const emojiMap = makeEmojiMap(serverJSON.emojis);
Function handleSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(value: string) => {
if (searchRequestRef.current) {
searchRequestRef.current.abort();
}
Function createPollFromServerJSON
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createPollFromServerJSON(
serverJSON: ApiPollJSON,
previousPoll?: Poll,
) {
const emojiMap = makeEmojiMap(serverJSON.emojis);
Function handleSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(value: string) => {
if (searchRequestRef.current) {
searchRequestRef.current.abort();
}
Function handleSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(value: string) => {
if (searchRequestRef.current) {
searchRequestRef.current.abort();
}
Function handleSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(value: string) => {
if (searchRequestRef.current) {
searchRequestRef.current.abort();
}
Function makeMapStateToProps
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const makeMapStateToProps = () => {
const getStatus = makeGetStatus();
const getPictureInPicture = makeGetPictureInPicture();
const mapStateToProps = (state, props) => {
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 ColumnSettings
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ColumnSettings = () => {
const dispatch = useDispatch();
const settings = useSelector((state) => state.settings.get('notifications'));
const onChange = useCallback(
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { account, submitted } = this.props;
return (
<>
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 continueThread
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function continueThread (state, status) {
return state.withMutations(function (map) {
let text = apiStatusToTextMentions(state, status);
text = text + apiStatusToTextHashtags(state, status);
map.set('text', text);
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 ColumnSettings
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ColumnSettings = () => {
const dispatch = useDispatch();
const settings = useSelector((state) => state.settings.get('notifications'));
const onChange = useCallback(
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 { account, submitted } = this.props;
return (
<>