Showing 1,205 of 1,252 total issues
Function render
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
intl,
open,
onCancel,
- Create a ticketCreate a ticket
Function PostCard
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PostCard: FC<Props> = (props) => {
const { postId, level } = props;
const [isEditing, setIsEditing] = useState(false);
const [isReplying, setIsReplying] = useState(false);
const [editValue, setEditValue] = useState('');
- Create a ticketCreate a ticket
Function renderTestCases
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderTestCases(testCases, testCaseType, warn, isDraftAnswer) {
const {
collapsible,
testCases: { canReadTests },
graderView,
- Create a ticketCreate a ticket
Function InlineEditTextField
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InlineEditTextField: FC<Props> = (props): JSX.Element | null => {
const {
updateValue,
value,
disabled,
- Create a ticketCreate a ticket
Function InvitationResultInvitationsTable
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InvitationResultInvitationsTable: FC<Props> = (props) => {
const { title, invitations, intl } = props;
if (invitations && invitations.length === 0) return null;
- Create a ticketCreate a ticket
Function SidebarSettingsForm
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SidebarSettingsForm = (props: SidebarSettingsFormProps): JSX.Element => {
const { t } = useTranslation();
const [settings, setSettings] = useState(props.data);
const moveItem = (sourceIndex: number, destinationIndex: number): void => {
- Create a ticketCreate a ticket
Function WorkbinTableButtons
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WorkbinTableButtons: FC<Props> = (props) => {
const {
currFolderId,
itemId,
itemName,
- Create a ticketCreate a ticket
Function JavaTestCase
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const JavaTestCase = (props: TestCaseProps): JSX.Element => {
const { t } = useTranslation();
const [showCode, setShowCode] = useState(true);
- Create a ticketCreate a ticket
Function CreateRenameTimelinePrompt
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CreateRenameTimelinePrompt = (
props: CreateRenameTimelinePromptProps,
): JSX.Element => {
const { renames: timeline } = props;
- Create a ticketCreate a ticket
Function default
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
switch (action.type) {
case actions.FETCH_SUBMISSIONS_REQUEST:
return { ...state, isLoading: true };
case actions.FETCH_SUBMISSION_SUCCESS:
- Create a ticketCreate a ticket
Function reducer
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(draft: InstanceAdminState, action: InstanceAdminActionType) => {
switch (action.type) {
case SAVE_ANNOUNCEMENT_LIST: {
const announcementList = action.announcementList;
const entityList = announcementList.map((data) => ({ ...data }));
- Create a ticketCreate a ticket
Function RejectWithMessageForm
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RejectWithMessageForm: FC<Props> = (props) => {
const { open, onClose, roleRequest } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function UpgradeToStaff
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UpgradeToStaff: FC<Props> = (props) => {
const { intl } = props;
const students = useAppSelector(getStudentOptionMiniEntities);
const [isLoading, setIsLoading] = useState(false);
- Create a ticketCreate a ticket
Function FolderShow
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FolderShow: FC = () => {
const { folderId } = useParams();
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function CommonQuestionFields
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CommonQuestionFields = <T extends FieldValues>(
props: CommonQuestionFieldsProps<T>,
): JSX.Element => {
const { disabled: submitting, control, availableSkills, skillsUrl } = props;
- Create a ticketCreate a ticket
Function renderSpecificFields
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderSpecificFields = () => {
const numberOfFilledOptions = options ? countFilledOptions(options) : 0;
return (
<>
- Create a ticketCreate a ticket
Function render
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { assessment, isLoading, submissions } = this.props;
const {
includePhantoms,
tab,
- Create a ticketCreate a ticket
Function Form
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Form = <
D extends Data = any,
M extends boolean = false,
V extends AnyObjectSchema = never,
>(
- Create a ticketCreate a ticket
Function FolderForm
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FolderForm: FC<Props> = (props) => {
const { open, editing, onClose, initialValues, onSubmit, title } = props;
const { t } = useTranslation();
const advanceStartAt = useAppSelector(getAdvanceStartAt);
- Create a ticketCreate a ticket
Function TextResponse
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TextResponse = (props) => {
const {
answerId,
graderView,
handleUploadTextResponseFiles,
- Create a ticketCreate a ticket