Showing 1,278 of 4,906 total issues
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const {
status,
mediaIcons,
settings,
Function scrollableContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
statusIds.map((statusId, index) => {
switch(statusId) {
case TIMELINE_SUGGESTIONS:
return (
<InlineFollowSuggestions
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { hasError, copied, errorMessage } = this.state;
if (!hasError) {
return this.props.children;
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { alt, lang, src, width, height } = this.props;
const { scale, lockTranslate, dragged } = this.state;
const overflow = scale === MIN_SCALE ? 'hidden' : 'scroll';
const cursor = scale === MIN_SCALE ? null : (dragged ? 'grabbing' : 'grab');
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { hasError, copied, errorMessage } = this.state;
if (!hasError) {
return this.props.children;
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { alt, lang, src, width, height } = this.props;
const { scale, lockTranslate, dragged } = this.state;
const overflow = scale === MIN_SCALE ? 'hidden' : 'scroll';
const cursor = scale === MIN_SCALE ? null : (dragged ? 'grabbing' : 'grab');
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { status, checked } = this.props;
if (status.get('reblog')) {
return null;
Method import
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def import
authorize :domain_block, :create?
@import = Admin::Import.new(import_params)
return render :new unless @import.validate
Method signed_request_actor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def signed_request_actor
return @signed_request_actor if defined?(@signed_request_actor)
raise SignatureVerificationError, 'Request not signed' unless signed_request?
raise SignatureVerificationError, 'Incompatible request signature. keyId and signature are required' if missing_required_signature_parameters?
Method privatize_media_attachments!
has 29 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 publish_media_attachments!
has 29 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 message
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def message
if running_version.blank?
Admin::SystemCheck::Message.new(:elasticsearch_running_check)
elsif !compatible_version?
Admin::SystemCheck::Message.new(
Method rename_column_concurrently
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def rename_column_concurrently(table, old, new, type: nil)
if transaction_open?
raise 'rename_column_concurrently can not be run inside a transaction'
end
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 handleSubmit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = useCallback(() => {
setSubmitting(true);
if (id) {
void dispatch(
Function handleMessage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleMessage = (event: MessageEvent<LoginFormMessage>) => {
if (
event.origin !== window.origin ||
event.source !== iframeRef.current?.contentWindow
) {
Function suggestionsReducer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const suggestionsReducer = createReducer(initialState, (builder) => {
builder.addCase(fetchSuggestions.pending, (state) => {
state.isLoading = true;
});
Function suggestionsReducer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const suggestionsReducer = createReducer(initialState, (builder) => {
builder.addCase(fetchSuggestions.pending, (state) => {
state.isLoading = true;
});
Function handleMessage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleMessage = (event: MessageEvent<LoginFormMessage>) => {
if (
event.origin !== window.origin ||
event.source !== iframeRef.current?.contentWindow
) {
Function handleSubmit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = useCallback(() => {
setSubmitting(true);
if (id) {
void dispatch(