Showing 1,205 of 1,252 total issues
Function CikgoErrorPage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CikgoErrorPage = (): JSX.Element => {
const { t } = useTranslation();
return (
<Page className="h-full m-auto flex flex-col items-center justify-center text-center">
- Create a ticketCreate a ticket
Function PasswordTextField
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props, ref): JSX.Element => {
const {
onChangePasswordVisibility,
disablePasswordVisibilitySwitch,
...textFieldProps
- Create a ticketCreate a ticket
Function AchievementNew
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AchievementNew: FC<Props> = (props) => {
const { open, onClose } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
const navigate = useNavigate();
- Create a ticketCreate a ticket
Function onDelete
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onDelete = (): Promise<void> => {
setIsDeleting(true);
if (type === 'subfolder') {
return dispatch(deleteFolder(itemId))
.then(() => {
- Create a ticketCreate a ticket
Function addPoints
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addPoints = (): void => {
const pointData = data as LeaderboardPoints[];
columns.push(
{
name: 'level',
- Create a ticketCreate a ticket
Function NonStudentStatusBadges
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NonStudentStatusBadges = (
props: NonStudentStatusBadgesProps,
): JSX.Element => {
const { for: assessment } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function DeleteQuestionButtonPrompt
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DeleteQuestionButtonPrompt = (
props: DeleteQuestionButtonPromptProps,
): JSX.Element => {
const { for: question } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function MarkButton
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MarkButton: FC = () => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const assessment = useAppSelector(getAssessment);
- Create a ticketCreate a ticket
Function MultipleChoiceDetails
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleChoiceDetails = (
props: QuestionAnswerDisplayDetails<'MultipleChoice'>,
): JSX.Element => {
const { question, answer } = props;
return (
- Create a ticketCreate a ticket
Function DashboardPage
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DashboardPage = (): JSX.Element => {
const { courses, user } = useAppContext();
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function fetchSubmissionsFromKoditsu
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSubmissionsFromKoditsu() {
return (dispatch) => {
dispatch({ type: actionTypes.FETCH_SUBMISSIONS_FROM_KODITSU_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function processed
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const processed = columns.map((column) => {
if (!column.options?.alignCenter && !column.options?.hideInSmallScreen)
return column;
return produce(column, (draft) => {
- Create a ticketCreate a ticket
Function FormAutoCompleteField
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FormAutoCompleteField = (props) => {
const { field, fieldState, disabled, label, options, renderIf, ...custom } =
props;
if (!renderIf) {
return null;
- Create a ticketCreate a ticket
Function saveGrade
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function saveGrade(submissionId, grade, questionId, exp, published) {
const expParam = published ? 'points_awarded' : 'draft_points_awarded';
const modifiedGrade = { id: grade.id, grade: grade.grade };
const payload = {
submission: {
- Create a ticketCreate a ticket
Function videoStateReducer
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function videoStateReducer(state = initialState, action) {
// Only forceSeek if explicitly specified
const transformState = generateStateTransformer(state);
switch (action.type) {
- Create a ticketCreate a ticket
Function renderLineStyleChips
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderLineStyleChips() {
const { intl, lineToolType, selectedLineStyle, onClickLineStyleChip } =
this.props;
const lineStyles = [
{
- Create a ticketCreate a ticket
Function renderDeleteDialog
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderDeleteDialog() {
const { deleteAttachmentName, deleteAttachmentId, deleteConfirmation } =
this.state;
const { intl, deleteAttachment } = this.props;
return (
- Create a ticketCreate a ticket
Function renderPlot
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderPlot() {
const displayData = this.computeData(this.state.selectedSessionId);
if (!displayData) {
return <Scatter />;
}
- Create a ticketCreate a ticket
Method upcoming_items_from_course_by_type_for_course_user
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.upcoming_items_from_course_by_type_for_course_user(course_user)
course = course_user.course
opening_items = course.lesson_plan_items.published.
with_reference_times_for(course_user).
with_personal_times_for(course_user).
- Create a ticketCreate a ticket
Function ContextualErrorPage
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ContextualErrorPage = (
props: UnrecoverableErrorPageProps,
): JSX.Element => {
const { from: error, stack } = props;
- Create a ticketCreate a ticket