Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

refactor: checkAssignmentDeadline #525

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yudukikun5120
Copy link
Collaborator

No description provided.

@yudukikun5120 yudukikun5120 enabled auto-merge (squash) December 7, 2022 07:07
deadlineTh.nextElementSibling.appendChild(message)
}

const createMessageOnDiff = (
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function createMessageOnDiff has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

const match = new RegExp("(\\d{4}-+\\d{2}-+\\d{2} \\d{2}:+\\d{2})", "g")
return match.test(string)
}
const notSubmitted = (
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

)?.nextElementSibling as HTMLElement
)?.innerText.includes(trans[lang].notSubmitted)

const deadlineString = (
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Dec 7, 2022

Code Climate has analyzed commit 43b2538 and detected 0 issues on this pull request.

View more on Code Climate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant