Showing 1,205 of 1,252 total issues
Function ImageCropper
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ImageCropper = (props: ImageCropperProps): JSX.Element => {
const [crop, setCrop] = useState<PercentCrop>();
const [completedCrop, setCompletedCrop] = useState<PixelCrop>();
const [rotation, setRotation] = useState(0);
const imgRef = useRef<HTMLImageElement>(null);
- Create a ticketCreate a ticket
Function reducer
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(draft: InvitationsState, action: InvitationsActionType) => {
switch (action.type) {
case SAVE_INVITATION_LIST: {
const invitationList = action.invitationList;
const entityList = invitationList.map((data) => ({
- Create a ticketCreate a ticket
Function VideoSubmissionsIndex
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VideoSubmissionsIndex: FC<Props> = (props) => {
const { intl } = props;
const [isLoading, setIsLoading] = useState(true);
const [data, setData] = useState<VideoSubmission>();
- Create a ticketCreate a ticket
Function SkillsAutocomplete
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SkillsAutocomplete = (props: SkillsAutocompleteProps): JSX.Element => {
const { t } = useTranslation();
const availableSkillIds = useMemo(
() => Object.keys(props.availableSkills),
- Create a ticketCreate a ticket
Function PendingInvitationsButtons
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PendingInvitationsButtons: FC<Props> = (props) => {
const { intl, invitation } = props;
const dispatch = useAppDispatch();
const [isResending, setIsResending] = useState(false);
const [isDeleting, setIsDeleting] = useState(false);
- Create a ticketCreate a ticket
Function GroupIndex
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GroupIndex = (props) => {
const { intl } = props;
const [isLoading, setIsLoading] = useState(true);
const [groupCategories, setGroupCategories] = useState({
groupCategories: [],
- Create a ticketCreate a ticket
Function render
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { selectedItems, courses, destinationCourseId } = this.props;
// Disabled models for cherry pick duplication as defined in `disabled_cherrypickable_types`.
const unduplicableObjectTypes = courses.find(
(course) => course.id === destinationCourseId,
- Create a ticketCreate a ticket
Function FontFamilyField
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FontFamilyField = (props) => {
const { intl, fontFamilyValue, onChangeFontFamily } = props;
const fontFamilies = [
{
key: intl.formatMessage(translations.arial),
- Create a ticketCreate a ticket
Function UsersIndex
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UsersIndex: FC<Props> = (props) => {
const { intl } = props;
const courseId = getCourseId();
const [isLoading, setIsLoading] = useState(true);
const users = useAppSelector(getAllStudentMiniEntities);
- Create a ticketCreate a ticket
Function LastAttemptIndex
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LastAttemptIndex: FC<Props> = (props) => {
const { curAnswerId, index } = props;
const { courseId, assessmentId } = useParams();
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function ExplanationPanel
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExplanationPanel: FC<Props> = (props) => {
const { questionId } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function QuestionContent
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const QuestionContent: FC<Props> = (props) => {
const { handleNext, stepIndex } = props;
const assessment = useAppSelector(getAssessment);
const submission = useAppSelector(getSubmission);
- Create a ticketCreate a ticket
Function default
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (survey = initialState, action) {
if (String(survey.id) !== String(action.surveyId)) {
return survey;
}
- Create a ticketCreate a ticket
Function renderOptionsResultsTable
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderOptionsResultsTable() {
const { anonymous, options, questionType } = this.props;
const { MULTIPLE_CHOICE, MULTIPLE_RESPONSE } = questionTypes;
const { byWeight } = sorts;
const breakdown = this.getOptionsBreakdown();
- Create a ticketCreate a ticket
Function NewCourseForm
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NewCourseForm = (props) => {
const { onSubmit, initialValues, disabled } = props;
const {
control,
handleSubmit,
- Create a ticketCreate a ticket
Function render
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
disabled,
fieldState: { error },
field: { value },
- Create a ticketCreate a ticket
Function render
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
intl,
createComment,
inputId,
- Create a ticketCreate a ticket
Function buildTanStackColumns
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildTanStackColumns = <D extends Data>(
columns: ColumnTemplate<D>[],
hasCheckboxes?: boolean,
hasIndices?: boolean,
): BuiltColumns<D, ColumnDef<D, unknown>> => {
- Create a ticketCreate a ticket
Function ForumsIndex
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumsIndex: FC = () => {
const { t } = useTranslation();
const [isLoading, setIsLoading] = useState(true);
const [isForumNewDialogOpen, setIsForumNewDialogOpen] = useState(false);
const [isMarking, setIsMarking] = useState(false);
- Create a ticketCreate a ticket
Function DayCalendar
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props, ref): JSX.Element => {
const { t } = useTranslation();
const calendarRef = useRef<List>(null);
- Create a ticketCreate a ticket