Showing 35 of 45 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
<ExperimentalTutorPicker tutors={tutors ?? []} setTutors={(tutors) => setQueryOptions({ tutors })} visible={tutorsPickerVisible} setVisible={setTutorsPickerVisible}
- Read upRead up
- Create a ticketCreate a ticket
Function Scrappers
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function Scrappers() { const { data, error, isLoading, isError } = useQuery('scrappers', getScrappers, { refetchInterval: 5_000, retry: false, })
- Read upRead up
- Create a ticketCreate a ticket
Function ScheduleTimeline
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function ScheduleTimeline({ date, queryData, choice, dontPrintSummary,
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 4 locations. Consider refactoring. Open
const getAllTutors = () => ky.get(`${baseUrl}v1/timetable/tutors`).json<{ tutorsAvailable: string[] }>()
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 4 locations. Consider refactoring. Open
const getAllGroups = () => ky.get(`${baseUrl}v1/timetable/groups`).json<{ groupsAvailable: string[] }>()
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 4 locations. Consider refactoring. Open
const getAllTutors = () => ky.get(`${baseUrl}v1/timetable/tutors`).json<{ tutorsAvailable: string[] }>()
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 4 locations. Consider refactoring. Open
const getAllGroups = () => ky.get(`${baseUrl}v1/timetable/groups`).json<{ groupsAvailable: string[] }>()
- Read upRead up
- Create a ticketCreate a ticket
Function updateOneEntry
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
async updateOneEntry(htmlId: string, changeHash: string, entry: ScheduleEntryDto) { const previous = await this.timetableModel.findOne({ 'entry.groups': entry.groups, 'entry.begin': entry.begin, 'entry.code': entry.code,
- Read upRead up
- Create a ticketCreate a ticket
Identical blocks of code found in 2 locations. Consider refactoring. Open
@Prop({ required: true, type: S.Types.ObjectId, ref: ScrapperVisa.name }) visa: ScrapperVisa
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Grid> <Link to={'/app/toolbox/tutor-finder'}> <Button>Znaleźć inne zajęcia wykładowcy</Button> </Link> </Grid>
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Type(() => DateTime) @Transform(({ value }) => DateTime.fromISO(value)) end: DateTime
- Read upRead up
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return <p>Ayo?</p>
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Grid> <Link to={'/app/toolbox/group-finder'}> <Button>Znaleźć inne grupy wykładowcy</Button> </Link> </Grid>
- Read upRead up
- Create a ticketCreate a ticket
Identical blocks of code found in 2 locations. Consider refactoring. Open
@Prop({ required: true, type: S.Types.ObjectId, ref: ScrapperVisa.name }) visa: ScrapperVisa
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
@Type(() => DateTime) @Transform(({ value }) => DateTime.fromISO(value)) begin: DateTime
- Read upRead up
- Create a ticketCreate a ticket