Showing 1,205 of 1,252 total issues
Function AchievementAwardSummary
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AchievementAwardSummary: FC<Props> = (props) => {
const { achievementUsers, initialObtainedUserIds, selectedUserIds } = props;
const removedUserIds = new Set(
[...initialObtainedUserIds].filter(
- Create a ticketCreate a ticket
Function JavaPackageEditor
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const JavaPackageEditor = (props: PackageEditorProps): JSX.Element => {
const { t } = useTranslation();
const { control, watch } = useFormContext<ProgrammingFormData>();
- Create a ticketCreate a ticket
Function TableSubfolderRow
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TableSubfolderRow: FC<Props> = (props) => {
const { currFolderId, subfolder, isCurrentCourseStudent, isConcrete } = props;
const { t } = useTranslation();
return (
- Create a ticketCreate a ticket
Function AdminMenu
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AdminMenu = (props) => {
const [anchorEl, setAnchorEl] = useState(null);
const { intl, survey, surveyId } = props;
const navigate = useNavigate();
- Create a ticketCreate a ticket
Class UserInvitationsController
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Course::UserInvitationsController < Course::ComponentController
before_action :authorize_invitation!
load_resource :invitation, through: :course, class: 'Course::UserInvitation', parent: false,
only: :destroy
- Create a ticketCreate a ticket
Function ProgrammingQnList
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ProgrammingQnList: FC<ProgrammingQnListProps> = (props) => {
const { questionId, isOnlyForLiveFeedbackSetting } = props;
const { t } = useTranslation();
const dispatch = useAppDispatch();
const programmingQn = useAppSelector((state) =>
- Create a ticketCreate a ticket
Function ForumDisbursementForm
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumDisbursementForm: FC<Props> = (props) => {
const { intl, filters, forumUsers, onPostClick } = props;
const initialValues: DisbursementFormData = forumUsers.reduce(
(users, value) => {
- Create a ticketCreate a ticket
Function ConvertMcqMrqPrompt
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConvertMcqMrqPrompt = (props: ConvertMcqMrqPromptProps): JSX.Element => {
const { for: question } = props;
const { t } = useTranslation();
const [converting, setConverting] = useState(false);
- Create a ticketCreate a ticket
Function InstancesTable
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InstancesTable = (props: InstanceTableProps): JSX.Element => {
const { renderRowActionComponent, instances } = props;
const { t } = useTranslation();
const columns: ColumnTemplate<InstanceMiniEntity>[] = [
- Create a ticketCreate a ticket
Function Gate
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Gate = (props) => {
const {
canModify,
dispatch,
gateInputSizeThreshold,
- Create a ticketCreate a ticket
Function AchievementConditionForm
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AchievementConditionForm = (
props: AnyConditionProps<AchievementConditionData> & {
achievements: AchievementOptions;
},
): JSX.Element => {
- Create a ticketCreate a ticket
Function Tab
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Tab = (props: TabProps): JSX.Element => {
const { tab, index } = props;
const { t } = useTranslation();
const [newTitle, setNewTitle] = useState(tab.title);
- Create a ticketCreate a ticket
Function InvitationResultUsersTable
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InvitationResultUsersTable: FC<Props> = (props) => {
const { title, users, intl } = props;
if (users && users.length === 0) return null;
- Create a ticketCreate a ticket
Function SkillForm
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SkillForm: FC<Props> = (props) => {
const {
open,
title,
onClose,
- Create a ticketCreate a ticket
Function default
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
switch (action.type) {
case actionTypes.SET_ITEM_TYPE_VISIBILITY: {
const visibilityByType = {
...state.visibilityByType,
- Create a ticketCreate a ticket
Function VisibleProgrammingImportEditor
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VisibleProgrammingImportEditor = (props) => {
const {
answerId,
disabled,
dispatch,
- Create a ticketCreate a ticket
Function ForumTopicForm
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumTopicForm: FC<Props> = (props) => {
const {
open,
title,
editing,
- Create a ticketCreate a ticket
Function FileUploadManager
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FileUploadManager = (props: Props): JSX.Element => {
const { disabled, isTextResponseQuestion } = props;
const { t } = useTranslation();
const { control, watch } = useFormContext<TextResponseQuestionFormData>();
- Create a ticketCreate a ticket
Function CourseSwitcherPopupMenu
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
>((props, ref): JSX.Element => {
const { t } = useTranslation();
const { courses, user } = useAppContext();
- Create a ticketCreate a ticket
Function reducer
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reducer = produce((draft: AdminState, action: AdminActionType) => {
switch (action.type) {
case SAVE_ANNOUNCEMENT_LIST: {
const announcementList = action.announcementList;
const entityList = announcementList.map((data) => ({ ...data }));
- Create a ticketCreate a ticket