Showing 1,205 of 1,252 total issues
Function handleReply
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleReply = (): void => {
setIsSubmittingReply(true);
if (replyValue.text.trim() === '') {
setIsSubmittingReply(false);
toast.error(t(translations.emptyPost));
- Create a ticketCreate a ticket
Function DeleteCoursePrompt
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DeleteCoursePrompt = (props: DeleteCoursePromptProps): JSX.Element => {
const challengeText = DEFAULT_CHALLENGE;
const { t } = useTranslation();
const [inputChallenge, setInputChallenge] = useState('');
- Create a ticketCreate a ticket
Function AppearOnLeftGutter
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppearOnLeftGutter = (props: ContainerProps): JSX.Element => {
const [guttered, setGuttered] = useState(true);
const [inside, setInside] = useState(false);
useLayoutEffect(() => {
- Create a ticketCreate a ticket
Function addIndividual
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addIndividual = (): void => {
const individualData = data as
| LeaderboardPoints[]
| LeaderboardAchievement[];
columns.push({
- Create a ticketCreate a ticket
Function CourseContainer
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CourseContainer = (): JSX.Element => {
const location = useLocation();
const data = useCourseLoader();
- Create a ticketCreate a ticket
Function LogsHead
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LogsHead: FC<Props> = (props) => {
const { t } = useTranslation();
const { with: info } = props;
return (
- Create a ticketCreate a ticket
Function toggleViewHistoryMode
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function toggleViewHistoryMode(
viewHistory,
submissionQuestionId,
questionId,
answersLoaded,
- Create a ticketCreate a ticket
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { duplicationMode, disabled, isDuplicating, isDuplicationSuccess } =
this.props;
if (duplicationMode !== duplicationModes.COURSE) {
return null;
- Create a ticketCreate a ticket
Function renderStats
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderStats = (realResponsesStatuses, phantomResponsesStatuses) => {
const chartData = [NOT_STARTED, RESPONDING, SUBMITTED].map((data) => {
const count = state.includePhantomsInStats
? realResponsesStatuses[data] + phantomResponsesStatuses[data]
: realResponsesStatuses[data];
- Create a ticketCreate a ticket
Function NewSurveyButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NewSurveyButton = (props) => {
const { canCreate, intl } = props;
const navigate = useNavigate();
const createSurveyHandler = (data, setError) => {
- Create a ticketCreate a ticket
Function renderBorderComponent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderBorderComponent() {
const {
intl,
lineToolType,
selectedLineStyle,
- Create a ticketCreate a ticket
Function Expandable
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Expandable = (props: ExpandableProps): JSX.Element => {
const { over: minHeightPx } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function renderRating
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderRating = (): JSX.Element | null => {
if (!post.canUpdate) {
return null;
}
return (
- Create a ticketCreate a ticket
Function MarkdownPage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MarkdownPage = (props: MarkdownPageProps): JSX.Element => {
const { markdown, ...pageProps } = props;
return (
<Page {...pageProps}>
<ReactMarkdown
- Create a ticketCreate a ticket
Function ForumEdit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumEdit: FC<Props> = (props) => {
const { isOpen, onClose, forum, navigateToShowAfterUpdate } = props;
const { t } = useTranslation();
const navigate = useNavigate();
- Create a ticketCreate a ticket
Function InstanceDropdown
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstanceDropdown: FC<InstanceDropdownProps> = (props) => {
const { disabled, field, fieldState } = props;
const instances = useAppSelector(selectDestinationInstances);
const metadata = useAppSelector(selectMetadata);
const instanceIds = useMemo(() => Object.keys(instances), [instances]);
- Create a ticketCreate a ticket
Function ExperiencePointsReasonField
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExperiencePointsReasonField: FC<Props> = (props) => {
const { record, rowData, disabled, setIsDirty, defaultReason, setRowData } =
props;
const [errorReasonText, setErrorReasonText] = useState('');
- Create a ticketCreate a ticket
Function renderUserStats
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderUserStats = (): JSX.Element | null => {
return (
<Grid
className={styles.userStatsContainer}
container
- Create a ticketCreate a ticket
Function SelectCourseUser
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SelectCourseUser: FC<Props> = (props) => {
const { initialUser = null, intl } = props;
const users = useAppSelector(getAllUserOptionMiniEntities);
const [user, setUser] = useState<CourseUserBasicMiniEntity | null>(
initialUser,
- Create a ticketCreate a ticket
Function Sidebar
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props, ref): JSX.Element => {
const { from: data, onChangeVisibility, activePath } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket