Showing 1,205 of 1,252 total issues
Function DownloadFolderButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DownloadFolderButton: FC<Props> = (props) => {
const { intl, currFolderId } = props;
const [isLoading, setIsLoading] = useState(false);
- Create a ticketCreate a ticket
Function RoleMenu
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RoleMenu = (props: RoleMenuProps): JSX.Element => {
const { for: user } = props;
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function UnsubmitButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UnsubmitButton: FC = () => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const submission = useAppSelector(getSubmission);
- Create a ticketCreate a ticket
Function AncestorOptions
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AncestorOptions: FC<Props> = (props) => {
const { t } = useTranslation();
const {
ancestors,
parsedAssessmentId,
- Create a ticketCreate a ticket
Function RunCodeButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RunCodeButton: FC<Props> = (props) => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const { questionId } = props;
- Create a ticketCreate a ticket
Function UserManagementButtons
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UserManagementButtons: FC<Props> = (props) => {
const { intl, user } = props;
const dispatch = useAppDispatch();
const [isDeleting, setIsDeleting] = useState(false);
- Create a ticketCreate a ticket
Function AnnouncementsIndex
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AnnouncementsIndex: FC<Props> = (props) => {
const { intl } = props;
const [isLoading, setIsLoading] = useState(true);
const [isOpen, setIsOpen] = useState(false);
- Create a ticketCreate a ticket
Function IndividualInvitations
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IndividualInvitations: FC<Props> = (props) => {
const { isLoading, fieldsConfig, intl } = props;
const { append, fields } = fieldsConfig;
const appendNewRow = (): void => {
- Create a ticketCreate a ticket
Function default
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = [], action) {
switch (action.type) {
case actionTypes.CREATE_SURVEY_SUCCESS: {
return sortSurveysByDate([...state, sortSurveyElements(action.survey)]);
}
- Create a ticketCreate a ticket
Function groupItemsUnderMilestones
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function groupItemsUnderMilestones(items, milestones) {
const sortedMilestones = [...milestones].sort(sortByStartAt);
const sortedItems = [...items].sort((a, b) => {
const startAtSortResult = sortByStartAt(a, b);
if (startAtSortResult !== 0) {
- Create a ticketCreate a ticket
Function default
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = {}, action) {
switch (action.type) {
case actions.FETCH_SUBMISSION_SUCCESS:
case actions.FINALISE_SUCCESS:
case actions.UNSUBMIT_SUCCESS:
- Create a ticketCreate a ticket
Function MultipleChoiceOptionsField
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleChoiceOptionsField = (props) => {
const {
disabled,
field: { onChange, value },
fieldState: { error },
- Create a ticketCreate a ticket
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const postPacks = this.props.field.value;
const maxPosts = this.props.question.maxPosts;
return (
- Create a ticketCreate a ticket
Function FileInputField
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileInputField = (props) => {
const {
disabled,
isMultipleAttachmentsAllowed,
maxAttachmentsAllowed,
- Create a ticketCreate a ticket
Function Programming
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Programming = (props) => {
const { question, readOnly, answerId, saveAnswerAndUpdateClientVersion } =
props;
const fileSubmission = question.fileSubmission;
const isSavingAnswer = useAppSelector((state) =>
- Create a ticketCreate a ticket
Function EditorField
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props: EditorProps, ref: ForwardedRef<AceEditor>): JSX.Element => {
const { language, value, disabled, onChange, cursorStart, ...otherProps } =
props;
return (
- Create a ticketCreate a ticket
Function getTabTypesToRender
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getTabTypesToRender = (
permissions: CommentPermissions,
tabInfo: CommentTabInfo,
): CommentTabData[] => {
const tabs = [] as CommentTabTypes[];
- Create a ticketCreate a ticket
Function CollapsibleList
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CollapsibleList: FC<CollapsibleListProps> = (props) => {
const {
headerAction,
collapsedByDefault = false,
forceExpand,
- Create a ticketCreate a ticket
Function TopicTypeIcon
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TopicTypeIcon: FC<{ topic: ForumTopicEntity }> = (props) => {
const { topic } = props;
const { t } = useTranslation();
let icon = <Icon />;
switch (topic.topicType) {
- Create a ticketCreate a ticket
Function ForumTopicEdit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumTopicEdit: FC<Props> = (props) => {
const { isOpen, onClose, topic, navigateToShowAfterUpdate } = props;
const { t } = useTranslation();
const navigate = useNavigate();
- Create a ticketCreate a ticket