Showing 1,205 of 1,252 total issues
Function TimelineMenu
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TimelineMenu = (props: TimelineMenuProps): JSX.Element => {
const { for: user, timelines, timelinesMap } = props;
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function submitForm
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const submitForm = async (rawData: ProgrammingFormData): Promise<void> => {
if (!props.onSubmit) return undefined;
setSubmitting(true);
- Create a ticketCreate a ticket
Function InstanceField
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstanceField = (props: InstanceFieldProps): JSX.Element => {
const { for: instance, field, link } = props;
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function remainingTimeDisplay
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const remainingTimeDisplay = (remainingTime: number): JSX.Element => {
const hours = Math.floor(remainingTime / 1000 / 60 / 60) % 24;
const minutes = Math.floor(remainingTime / 1000 / 60) % 60;
const seconds = Math.floor(remainingTime / 1000) % 60;
- Create a ticketCreate a ticket
Function HistoryToggle
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const HistoryToggle: FC<HistoryToggleProps> = (props) => {
const { historyQuestions, question } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function InstancesIndex
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstancesIndex: FC = () => {
const { t } = useTranslation();
const [isLoading, setIsLoading] = useState(true);
const [isOpen, setIsOpen] = useState(false);
- Create a ticketCreate a ticket
Function InstanceUsersTabs
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstanceUsersTabs: FC<Props> = (props) => {
const { currentTab, intl } = props;
const [tabValue, setTabValue] = useState(currentTab);
return (
- Create a ticketCreate a ticket
Function NotificationBar
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NotificationBar = (props) => {
const { notification, autoHideDuration = 5000, ...options } = props;
const message = notification && notification.message;
const errors = notification && notification.errors;
const [open, setOpen] = useState(false);
- Create a ticketCreate a ticket
Function createResponse
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createResponse(surveyId, navigate) {
const courseId = getCourseId();
const goToResponse = (responseId) =>
navigate(
`/courses/${courseId}/surveys/${surveyId}/responses/${responseId}`,
- Create a ticketCreate a ticket
Function downloadSubmissions
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function downloadSubmissions(type, downloadFormat) {
const actions =
downloadFormat === 'zip'
? {
request: actionTypes.DOWNLOAD_SUBMISSIONS_FILES_REQUEST,
- Create a ticketCreate a ticket
Function deleteTextResponseFile
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function deleteTextResponseFile(answerId, questionId, attachmentId) {
return (dispatch) => {
const payload = { attachment_id: attachmentId };
dispatch({
- Create a ticketCreate a ticket
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
prompt,
courses,
onChange,
- Create a ticketCreate a ticket
Function ResponseAnswer
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResponseAnswer = (props) => {
const { TEXT, MULTIPLE_CHOICE, MULTIPLE_RESPONSE } = questionTypes;
const { control, disabled, intl, question, questionIndex, sectionIndex } =
props;
if (!question) {
- Create a ticketCreate a ticket
Function showEditSurveyForm
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const showEditSurveyForm = () => {
const { showSurveyForm } = surveyActions;
const {
title,
description,
- Create a ticketCreate a ticket
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { color, disabled, isIcon, responseId } = this.props;
return (
<>
{isIcon ? (
- Create a ticketCreate a ticket
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
control,
question,
recording,
- Create a ticketCreate a ticket
Function useDynamicNest
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useDynamicNest = (): UseDynamicNestHook => {
const matches = useMatches();
const location = useLocation();
const [state, setState] = useState<CrumbState>({});
- Create a ticketCreate a ticket
Function ImageCropDialog
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ImageCropDialog = (props: ImageCropDialogProps): JSX.Element => {
const { t } = useTranslation();
const [disabled, setDisabled] = useState(false);
const [imageCropper, setImageCropper] = useState<ImageCropperEmitter>();
- Create a ticketCreate a ticket
Function SwitchableTextField
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SwitchableTextField = (props: SwitchableTextFieldProps): JSX.Element => {
const { editable, textProps, ...textFieldProps } = props;
const { typography } = useTheme();
- Create a ticketCreate a ticket
Function withHeartbeatWorker
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withHeartbeatWorker = <P extends WrappedComponentProps>(
Component: ComponentType<P>,
): ComponentType<P> => {
const workerType = getWorkerType();
if (!workerType) return Component;
- Create a ticketCreate a ticket