Showing 1,278 of 4,906 total issues
Function handleClick
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleClick = useCallback(() => {
if (partOfList) {
void apiRemoveAccountFromList(listId, accountId);
onToggle(accountId);
} else {
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { poll, intl } = this.props;
const { revealed, expired } = this.state;
if (!poll) {
Function getDerivedStateFromProps
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static getDerivedStateFromProps(nextProps, prevState) {
let update = {};
let updated = false;
// Make sure the state mirrors props we track…
Function dropOrientationIfNeeded
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const dropOrientationIfNeeded = (orientation) => new Promise(resolve => {
switch (_browser_quirks['image-orientation-automatic']) {
case true:
resolve(1);
break;
Function checkDeprecatedLocalSettings
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function checkDeprecatedLocalSettings() {
return (dispatch, getState) => {
const local_auto_unfold = getState().getIn(['local_settings', 'content_warnings', 'auto_unfold']);
const local_swipe_to_change_columns = getState().getIn(['local_settings', 'swipe_to_change_columns']);
let changed_settings = [];
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, hasMore, accountIds, multiColumn, isLoading } = this.props;
if (!accountIds) {
return (
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { status, checked } = this.props;
if (status.get('reblog')) {
return null;
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { emoji, emojiMap, hovered } = this.props;
if (unicodeMapping[emoji]) {
const { filename, shortCode } = unicodeMapping[this.props.emoji];
Function _updateLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateLinks () {
const node = this.node;
if (!node) {
return;
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, hidden, report, account } = this.props;
if (!report) {
return null;
Function server
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function server(state = initialState, action) {
switch (action.type) {
case SERVER_FETCH_REQUEST:
return state.setIn(['server', 'isLoading'], true);
case SERVER_FETCH_SUCCESS:
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { poll, intl } = this.props;
const { revealed, expired } = this.state;
if (!poll) {
Function server
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function server(state = initialState, action) {
switch (action.type) {
case SERVER_FETCH_REQUEST:
return state.setIn(['server', 'isLoading'], true);
case SERVER_FETCH_SUCCESS:
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { emoji, emojiMap, hovered } = this.props;
if (unicodeMapping[emoji]) {
const { filename, shortCode } = unicodeMapping[this.props.emoji];
Function _updateLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateLinks () {
const node = this.node;
if (!node) {
return;
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { intl, hidden, report, account } = this.props;
if (!report) {
return null;
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { media, status, onClose } = this.props;
const options = this.props.options || {};
const language = status.getIn(['translation', 'language']) || status.get('language');
const description = media.getIn(['translation', 'description']) || media.get('description');
Function render
has 28 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 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderStatus (notification, link) {
const { intl, unread, status } = this.props;
if (!status) {
return null;
Function renderUpdate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderUpdate (notification, link) {
const { intl, unread, status } = this.props;
if (!status) {
return null;