Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant