Showing 1,132 of 1,179 total issues
Function SubmissionsIndex
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SubmissionsIndex = (): JSX.Element => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function LoadedAssessmentSettings
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LoadedAssessmentSettings = (
props: LoadedAssessmentSettingsProps,
): JSX.Element | null => {
const { t } = useTranslation();
const [form, setForm] = useState<FormEmitter<AssessmentSettingsData>>();
- Create a ticketCreate a ticket
Function ThemeProvider
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ThemeProvider = (props: ThemeProviderProps): JSX.Element => {
const theme = createTheme({
palette,
// https://material-ui.com/customization/themes/#typography---html-font-size
// https://material-ui.com/style/typography/#migration-to-typography-v2
- Create a ticketCreate a ticket
Function reducer
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reducer = produce((state, action) => {
switch (action.type) {
case actionTypes.FETCH_LEARNING_MAP_SUCCESS:
return {
...state,
- Create a ticketCreate a ticket
Function SubmissionAnswer
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SubmissionAnswer = <T extends keyof typeof QuestionType>(
props: SubmissionAnswerProps<T>,
): JSX.Element => {
const {
answerId,
- Create a ticketCreate a ticket
Function AssessmentsSettingsForm
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AssessmentsSettingsForm = (
props: AssessmentsSettingsFormProps,
): JSX.Element => {
const { t } = useTranslation();
const validationSchema = yup.object({
- Create a ticketCreate a ticket
Function McqMrqForm
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const McqMrqForm = <T extends 'new' | 'edit'>(
props: McqMrqFormProps<T>,
): JSX.Element => {
const { adapter, with: data } = props;
- Create a ticketCreate a ticket
Function renderContent
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderContent() {
const { step } = this.state;
const {
answers,
assessment: {
- Create a ticketCreate a ticket
Function WorkbinTable
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WorkbinTable: FC<Props> = (props) => {
const {
currFolderId,
subfolders,
materials,
- Create a ticketCreate a ticket
Function SubmissionFilter
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SubmissionFilter: FC<Props> = (props) => {
const {
intl,
filter,
tabCategories,
- Create a ticketCreate a ticket
Function CoursesTable
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CoursesTable = (props: CoursesTableProps): JSX.Element => {
const { courses, renderRowActionComponent } = props;
const { t } = useTranslation();
if (!courses?.length)
- Create a ticketCreate a ticket
Function InvitationResultDialog
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InvitationResultDialog: FC<Props> = (props) => {
const { handleClose, invitationResult, intl } = props;
const {
duplicateUsers,
existingInstanceUsers,
- Create a ticketCreate a ticket
ScribingCanvas
has 37 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class ScribingCanvas extends Component {
constructor(props) {
super(props);
this.line = undefined;
- Create a ticketCreate a ticket
Function CKEditorRichText
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CKEditorRichText = (props: Props) => {
const {
label,
value,
onChange,
- Create a ticketCreate a ticket
Function ForumTopicManagementButtons
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumTopicManagementButtons: FC<Props> = (props) => {
const { topic, pageType, disabled, showOnHover } = props;
const dispatch = useAppDispatch();
const { t } = useTranslation();
const navigate = useNavigate();
- Create a ticketCreate a ticket
Function SolutionsManager
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props, ref): JSX.Element => {
const { disabled, for: originalSolutions, isAssessmentAutograded } = props;
const [solutions, setSolutions] = useState(originalSolutions);
const solutionRefs = useRef<Record<SolutionEntity['id'], SolutionRef>>({});
- Create a ticketCreate a ticket
Function SignInPage
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SignInPage = (): JSX.Element => {
const { t } = useTranslation();
const [email, setEmail] = useEmailFromAuthPagesContext();
- Create a ticketCreate a ticket
Function InstanceUserRoleRequestForm
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstanceUserRoleRequestForm: FC<Props> = (props) => {
const { open, onClose, instanceUserRoleRequest } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function ReplyCard
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ReplyCard: FC<Props> = (props) => {
const {
postId,
isReplying,
isAnonymousEnabled,
- Create a ticketCreate a ticket
Function ForumDisbursement
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumDisbursement: FC = () => {
const retrievedPostUserIds = new Set();
const { t } = useTranslation();
const [selectedForumPostUser, setSelectedForumPostUser] =
useState<ForumDisbursementUserEntity | null>();
- Create a ticketCreate a ticket