Showing 1,205 of 1,252 total issues
Function processColumns
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const processColumns = (includeRowNumber, columns) => {
if (!columns.length) return columns;
const processed = columns.map((column) => {
if (!column.options?.alignCenter && !column.options?.hideInSmallScreen)
- Create a ticketCreate a ticket
Function renderExperiencePoints
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderExperiencePoints() {
const {
grading: { exp, expMultiplier },
submission: { basePoints, graderView },
bonusAwarded,
- Create a ticketCreate a ticket
Function PostPresentation
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PostPresentation = (props) => {
let childrenElements = null;
const childrenNodes = props.childrenIds.map((childId) => (
<PostContainer key={childId} postId={childId} />
));
- Create a ticketCreate a ticket
Function TypePopover
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TypePopover = (props) => {
const {
intl,
open,
anchorEl,
- Create a ticketCreate a ticket
Function ConditionRow
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConditionRow = <AnyConditionData extends ConditionData>(
props: ConditionProps<AnyConditionData>,
): JSX.Element => {
const { t } = useTranslation();
const [editing, setEditing] = useState(false);
- Create a ticketCreate a ticket
Function CommentTabs
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CommentTabs: FC<CommentTabProps> = (props) => {
const { tabValue, intl } = props;
const dispatch = useAppDispatch();
const [tabTypesToRender, setTabTypesToRender] = useState(
[] as CommentTabData[],
- Create a ticketCreate a ticket
Function getAssessmentGenerateQuestionsData
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getAssessmentGenerateQuestionsData = (
state: AppState,
): GenerationPageState => {
const internalState = state.assessments.generatePage;
const conversationMetadata = Object.values(internalState.conversations)
- Create a ticketCreate a ticket
Function SearchField
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchField = (props: SearchFieldProps): JSX.Element => {
const { onChangeKeyword, noIcon, ...otherProps } = props;
const [keyword, setKeyword] = useState('');
const [isPending, startTransition] = useTransition();
- Create a ticketCreate a ticket
Function AchievementEdit
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AchievementEdit: FC<Props> = (props) => {
const { achievementId, open, onClose, onSubmit } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
const achievement = useAppSelector((state) =>
- Create a ticketCreate a ticket
Function ExperiencePointsNumberField
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExperiencePointsNumberField: FC<Props> = (props) => {
const { defaultPoint, record, disabled, rowData, setIsDirty, setRowData } =
props;
const [errorHelperText, setErrorHelperText] = useState('');
- Create a ticketCreate a ticket
Function FeedbackFields
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FeedbackFields = (props: FeedbackFieldsProps): JSX.Element | null => {
const { t } = useTranslation();
const { control, watch } = useFormContext<ProgrammingFormData>();
- Create a ticketCreate a ticket
Function VideoNew
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VideoNew: FC<Props> = (props) => {
const { open, onClose, currentTab } = props;
const { t } = useTranslation();
const [, setSearchParams] = useSearchParams();
const videoTabs = useAppSelector(getVideoTabs);
- Create a ticketCreate a ticket
Function QuestionFormDeletedOptions
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const QuestionFormDeletedOptions = (props) => {
const {
disabled,
fieldsConfig,
multipleChoice,
- Create a ticketCreate a ticket
Function renderEditor
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderEditor() {
/* eslint-disable react/no-array-index-key */
const { content } = this.props;
return (
<div style={styles.editorContainer}>
- Create a ticketCreate a ticket
Function renderGradeTable
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderGradeTable() {
const {
intl,
questions,
questionIds,
- Create a ticketCreate a ticket
Function extractQuestionPrototypeData
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function extractQuestionPrototypeData(
response: CodaveriGenerateResponseData,
): QuestionPrototypeFormData {
const prefix = response.resources[0]?.templates[0]?.prefix ?? '';
- Create a ticketCreate a ticket
Function TimelinesOverview
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TimelinesOverview = (props: TimelinesOverviewProps): JSX.Element => {
const { for: timelines, hiding: hiddenTimelineIds } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function AssignedTimeline
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AssignedTimeline = (props: AssignedTimelineProps): JSX.Element => {
const { for: item, in: timeline, visualising: time } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function SavedIndicator
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SavedIndicator = (props: SavedIndicatorProps): JSX.Element => {
const { at: lastSaved, success } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function ExperiencePointsIndex
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExperiencePointsIndex: FC = () => {
const { t } = useTranslation();
const [tabValue, setTabValue] = useState('experience-points-tab');
- Create a ticketCreate a ticket