Showing 1,205 of 1,252 total issues
Function renderColorBar
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderColorBar() {
const { activeObject, disabled, colorBarBorder, colorBarBackground } =
this.props;
let backgroundColor = colorBarBackground;
- Create a ticketCreate a ticket
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { disabled, onClick, onClickIcon, onClickChevron, tooltip } =
this.props;
return (
- Create a ticketCreate a ticket
Function PersonalStartEndTime
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PersonalStartEndTime = (props: Props): JSX.Element => {
const { t } = useTranslation();
const { timeInfo, className, hideInfo, long } = props;
if (!timeInfo?.effectiveTime) return <div>-</div>;
- Create a ticketCreate a ticket
Function FormTextField
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FormTextField = <Type extends TextFieldTypes>(
props: FormTextFieldProps<Type>,
): JSX.Element => {
const {
field,
- Create a ticketCreate a ticket
Function TextField
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(props, ref): JSX.Element => {
const { trims, onPressEnter, onPressEscape, ...textFieldProps } = props;
const handleChange: ChangeEventHandler<HTMLInputElement> = (e): void => {
if (trims) {
- Create a ticketCreate a ticket
Function reducer
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reducer = produce((draft: GlobalUserState, action: GlobalActionType) => {
switch (action.type) {
case SAVE_USER: {
const userData = action.user;
const userEntity = { ...userData };
- Create a ticketCreate a ticket
Function LevelReachedPopup
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LevelReachedPopup = (props: LevelReachedPopupProps): JSX.Element => {
const { notification, onDismiss } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function FileUploadForm
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileUploadForm: FC<Props> = (props) => {
const { open, onSubmit, onClose, formSubtitle } = props;
const { t } = useTranslation();
return (
- Create a ticketCreate a ticket
Function ExperiencePointsFiltering
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExperiencePointsFiltering: FC<Props> = (props) => {
const { filter, studentName, setSelectedFilter, setPageNum, disabled } =
props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function UserNameField
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UserNameField = (props: UserNameFieldProps): JSX.Element => {
const { for: user } = props;
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function TimePopupTopBar
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TimePopupTopBar = (props: TimePopupTopBarProps): JSX.Element => {
const { t } = useTranslation();
const { status } = useLastSaved();
- Create a ticketCreate a ticket
Function PersonalTimes
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PersonalTimes: FC<Props> = (props) => {
const { intl } = props;
const [isLoading, setIsLoading] = useState(true);
const permissions = useAppSelector(getManageCourseUserPermissions);
const sharedData = useAppSelector(getManageCourseUsersSharedData);
- Create a ticketCreate a ticket
Function VoiceForm
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VoiceForm = <T extends 'new' | 'edit'>(
props: VoiceFormProps<T>,
): JSX.Element => {
const { with: data } = props;
- Create a ticketCreate a ticket
Function GradesChart
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const GradesChart: FC<Props> = (props) => {
const { t } = useTranslation();
const { totalGrades } = props;
const transformedData = {
- Create a ticketCreate a ticket
Function PastAnswers
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PastAnswers: FC = () => {
const { courseId, assessmentId, submissionQuestionId } = useParams();
if (!submissionQuestionId) {
return null;
}
- Create a ticketCreate a ticket
Function duplicateCourse
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function duplicateCourse(
fields,
destinationHost,
successMessage,
pendingMessage,
- Create a ticketCreate a ticket
Function duplicateItems
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function duplicateItems(
destinationCourseId,
selectedItems,
successMessage,
pendingMessage,
- Create a ticketCreate a ticket
Function processSubmissionsIntoChartData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function processSubmissionsIntoChartData(
assessments,
submissions,
showPhantoms,
) {
- Create a ticketCreate a ticket
Function renderMilestoneCardTitle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderMilestoneCardTitle(milestone) {
const { title, description, start_at } = milestone;
return (
<CardHeader
- Create a ticketCreate a ticket
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<Subsection
subtitle={<FormattedMessage {...translations.explanation} />}
title={<FormattedMessage {...translations.header} />}
- Create a ticketCreate a ticket