-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
Conversation
deadlineTh.nextElementSibling.appendChild(message) | ||
} | ||
|
||
const createMessageOnDiff = ( |
There was a problem hiding this comment.
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 = ( |
There was a problem hiding this comment.
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 = ( |
There was a problem hiding this comment.
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.
Code Climate has analyzed commit 43b2538 and detected 0 issues on this pull request. View more on Code Climate. |
No description provided.