Showing 1,205 of 1,252 total issues
Function ComponentSettingsForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ComponentSettingsForm = (
props: ComponentSettingsFormProps,
): JSX.Element => {
const { t } = useTranslation();
const [components, setComponents] = useState(props.data);
- Create a ticketCreate a ticket
Function TimelineSidebarItem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TimelineSidebarItem = (props: TimelineSidebarItemProps): JSX.Element => {
const { for: timeline, assigned } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function PhantomSwitch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PhantomSwitch = (props: PhantomSwitchProps): JSX.Element => {
const { for: user } = props;
const dispatch = useAppDispatch();
- Create a ticketCreate a ticket
Function VideoDetails
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VideoDetails = (props: Props): JSX.Element => {
const { for: video } = props;
const { t } = useTranslation();
return (
- Create a ticketCreate a ticket
Function FilterAutocomplete
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FilterAutocomplete = (props: FilterAutocompleteProps): JSX.Element => {
const { t } = useTranslation();
const monitoring = useMonitoring();
return (
- Create a ticketCreate a ticket
Function ConfirmEmailPage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ConfirmEmailPage = (): JSX.Element => {
const { t } = useTranslation();
const email = useLoaderData() as string;
- Create a ticketCreate a ticket
Function CourseListItem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CourseListItem = (props: CourseListItemProps): JSX.Element => {
const { course } = props;
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function default
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = {}, action) {
switch (action.type) {
case actions.FETCH_SUBMISSION_SUCCESS:
return {
...state,
- Create a ticketCreate a ticket
Function default
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = initialState, action) {
switch (action.type) {
case actionTypes.ASSESSMENT_FORM_SHOW: {
return { ...state, visible: true };
}
- Create a ticketCreate a ticket
Function renderDropDown
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderDropDown() {
const sessionKeys = Object.keys(this.props.sessions);
const items = sessionKeys.map((key) => {
const session = this.props.sessions[key];
const startTime = new Date(session.sessionStart);
- Create a ticketCreate a ticket
Function generateToolTipOptions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateToolTipOptions() {
return {
tooltip: {
displayColors: false,
bodyFont: {
- Create a ticketCreate a ticket
Method group_names_hash
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def group_names_hash
group_names = Course::Group.find_by_sql(<<-SQL.squish
WITH course_students AS (
SELECT cgu.group_id, cgu.course_user_id
FROM course_group_users cgu
- Create a ticketCreate a ticket
Function SettingsNavigation
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SettingsNavigation = (): JSX.Element => {
const data = useLoaderData() as CourseAdminItems;
const [items, setItems] = useState(data);
- Create a ticketCreate a ticket
Function CommentIndex
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CommentIndex: FC<Props> = (props) => {
const { intl } = props;
const dispatch = useAppDispatch();
const settings = useAppSelector(getSettings);
- Create a ticketCreate a ticket
Function rearrange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const rearrange = (result: DropResult): void => {
if (!result.destination) return;
const source = result.source;
const destination = result.destination;
- Create a ticketCreate a ticket
Function subscribe
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const subscribe = (
url: string,
courseId: number,
monitorId: number,
receivers: LiveMonitoringChannelCallbacks,
- Create a ticketCreate a ticket
Function getMultipleChoiceData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getMultipleChoiceData = (optionCount) => {
const options: unknown[] =
optionCount < 1
? []
: [
- Create a ticketCreate a ticket
Function TopicPostTrees
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TopicPostTrees: FC<Props> = (props) => {
const { level, postIdsArray } = props;
if (!postIdsArray || postIdsArray?.length === 0) return null;
- Create a ticketCreate a ticket
Function ForumPostLabel
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ForumPostLabel = (): JSX.Element => {
const { forum, topic } = postPack;
return (
<div className="flex items-center">
{isExpanded ? (
- Create a ticketCreate a ticket
Function validateBasedOnQuestionType
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const validateBasedOnQuestionType = (
question: SubmissionQuestionData<keyof typeof QuestionType>,
attachments: Attachment[],
): ErrorStruct => {
const errors: ErrorType[] = [];
- Create a ticketCreate a ticket