Showing 1,205 of 1,252 total issues
Function renderRating
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderRating = () => {
if (!canUpdate) {
return null;
}
return (
- Create a ticketCreate a ticket
Method generate_zip_file
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_zip_file(data_files_to_keep)
tmp = Tempfile.new(['package', '.zip'])
autograde_pre_path = get_file_path('python_autograde_pre.py')
autograde_post_path = get_file_path('python_autograde_post.py')
makefile_path = get_file_path('python_makefile')
- Create a ticketCreate a ticket
Method koditsu_programming_language_map
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def koditsu_programming_language_map
{
Coursemology::Polyglot::Language::CPlusPlus => {
language: 'cpp',
version: '10.2',
- Create a ticketCreate a ticket
Function MoveTabsMenu
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MoveTabsMenu = (props: MoveTabsMenuProps): JSX.Element | null => {
const { t } = useTranslation();
const { categories, onSelectCategory } = props;
const [button, setButton] = useState<HTMLButtonElement>();
- Create a ticketCreate a ticket
Function Preload
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Preload = <Data,>(props: PreloadProps<Data>): JSX.Element => {
const { t } = useTranslation();
const [state, setState] = useState<PreloadState<Data>>();
const [loading, setLoading] = useState(true);
- Create a ticketCreate a ticket
Function AssessmentListItem
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AssessmentListItem: FC<AssessmentListItemProps> = (props) => {
const { assessment } = props;
const { isAssessmentListExpanded } = useAppSelector(getViewSettings);
if (assessment.programmingQuestions.length === 0) return null;
- Create a ticketCreate a ticket
Function Timeline
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Timeline = (props: TimelineProps): JSX.Element => {
const { t } = useTranslation();
const [hovered, setHovered] = useState(false);
const [hoveredLeft, setHoveredLeft] = useState(0);
- Create a ticketCreate a ticket
Function ExperiencePointsRecords
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ExperiencePointsRecords = (): JSX.Element => {
const { t } = useTranslation();
const [pageNum, setPageNum] = useState(1);
const [isLoading, setIsLoading] = useState(true);
- Create a ticketCreate a ticket
Function UserManagementTabs
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UserManagementTabs: FC<Props> = (props) => {
const { permissions, sharedData, intl } = props;
const courseUrl = getCourseURL(getCourseId());
- Create a ticketCreate a ticket
Function PostContent
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PostContent: FC<Props> = (props) => {
const { post, isExpandable } = props;
const [renderedHeight, setRenderedHeight] = useState(0);
const contentIsExpandable = isExpandable && renderedHeight > MAX_POST_HEIGHT;
- Create a ticketCreate a ticket
Function NotFoundPage
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NotFoundPage = (): JSX.Element => {
const { t } = useTranslation();
return (
<ErrorPage
- Create a ticketCreate a ticket
Function FormMultiSelectField
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FormMultiSelectField = (props) => {
const { field, fieldState, disabled, label, options, renderIf, ...custom } =
props;
if (!renderIf) {
return null;
- Create a ticketCreate a ticket
Function LessonPlanItem
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LessonPlanItem = (props) => {
const { item } = props;
const {
id,
title,
- Create a ticketCreate a ticket
Function renderTable
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderTable(
shownSubmissions,
handleActionParams,
confirmDialogValue,
isActive,
- Create a ticketCreate a ticket
Function reducer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(draft: DisbursementState, action: DisbursementActionType) => {
switch (action.type) {
case SAVE_DISBURSEMENT_LIST: {
const courseGroups = action.courseGroups.map((data) => ({
...data,
- Create a ticketCreate a ticket
Function AssessmentCategory
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AssessmentCategory: FC<AssessmentCategoryProps> = (props) => {
const { category } = props;
const tabs = useAppSelector((state) =>
getAllAssessmentTabsFor(state, category.id),
);
- Create a ticketCreate a ticket
Function AnnouncementNew
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AnnouncementNew: FC<Props> = (props) => {
const { open, onClose, createOperation, canSticky = true } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function AssignableTimeline
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AssignableTimeline = (props: AssignableTimelineProps): JSX.Element => {
const { for: item, in: timeline, basedOn: defaultTime } = props;
const { status } = useLastSaved();
- Create a ticketCreate a ticket
Function VideoSubmissionEdit
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VideoSubmissionEdit: FC<Props> = (props) => {
const { intl } = props;
const { submissionId } = useParams();
const [isLoading, setIsLoading] = useState(true);
const [editVideoSubmission, setEditVideoSubmission] =
- Create a ticketCreate a ticket
Function VideoEdit
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VideoEdit: FC<Props> = (props) => {
const { open, onClose, video } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket