Showing 1,205 of 1,252 total issues
Function addAchievements
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addAchievements = (): void => {
const achievementData = data as LeaderboardAchievement[];
columns.push({
name: 'achievements',
label: 'Achievements',
- Create a ticketCreate a ticket
Function renderTextResponseComprehensionPoint
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderTextResponseComprehensionPoint(point) {
return (
<>
<br />
<Typography variant="h6">
- Create a ticketCreate a ticket
Function reducer
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const reducer = produce((draft: SkillState, action: SkillsActionType) => {
switch (action.type) {
case SAVE_SKILL_BRANCH_LIST: {
const skillBranchList = action.skillBranches;
const skillBranchEntityList = skillBranchList.map((data) => {
- Create a ticketCreate a ticket
Function BasicPackageEditor
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BasicPackageEditor = (props: BasicPackageEditorProps): JSX.Element => {
const { t } = useTranslation();
return (
<>
- Create a ticketCreate a ticket
Function processSubmissionsIntoChartData
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function processSubmissionsIntoChartData(submissions) {
const submittedSubmissions = submissions.filter((s) => s.submittedAt != null);
const mappedSubmissions = submittedSubmissions
.map((s) => ({
...s,
- Create a ticketCreate a ticket
Function PersonalTimeBooleanIcons
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PersonalTimeBooleanIcons: FC<Props> = (props) => {
const {
hasPersonalTimes,
affectsPersonalTimes,
isStudent,
- Create a ticketCreate a ticket
Method generate_zip_file
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_zip_file(data_files_to_keep, submission_files_to_keep, solution_files_to_keep)
tmp = Tempfile.new(['package', '.zip'])
autograde_build_path = File.join(File.expand_path(__dir__), 'java_build.xml').freeze
autograde_pre_path = File.join(File.expand_path(__dir__), 'java_autograde_pre.java').freeze
autograde_run_path = File.join(File.expand_path(__dir__), 'RunTests.java').freeze
- Create a ticketCreate a ticket
Function FinaliseButton
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FinaliseButton: FC = () => {
const { t } = useTranslation();
const assessment = useAppSelector(getAssessment);
const submission = useAppSelector(getSubmission);
const questions = useAppSelector(getQuestions);
- Create a ticketCreate a ticket
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
accept,
disabled,
previewComponent: PreviewComponent,
- Create a ticketCreate a ticket
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { intl, title, disabled, form, open, children } = this.props;
const formActions = [
<Button
key="form-dialogue-cancel-button"
- Create a ticketCreate a ticket
Function default
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = {}, action) {
switch (action.type) {
case actions.FETCH_SUBMISSION_SUCCESS:
case actions.FINALISE_SUCCESS:
case actions.UNSUBMIT_SUCCESS:
- Create a ticketCreate a ticket
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
type,
title,
startAt,
- Create a ticketCreate a ticket
Function renderOptionBody
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderOptionBody = () => {
const fieldValue = field;
const imageFile = fieldValue && fieldValue.file;
const fileOrSrc = {};
- Create a ticketCreate a ticket
Function LinePopover
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LinePopover = (props) => {
const {
intl,
lineToolType,
open,
- Create a ticketCreate a ticket
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.videoDuration === videoDefaults.placeHolderDuration) {
return <LoadingIndicator />;
}
- Create a ticketCreate a ticket
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<Card
className="forum-post"
style={{ ...styles.default, ...this.props.style }}
- Create a ticketCreate a ticket
Method generate_zip_file
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_zip_file(data_files_to_keep)
tmp = Tempfile.new(['package', '.zip'])
autograde_include_path = get_file_path('cpp_autograde_include.cc')
autograde_pre_path = get_file_path('cpp_autograde_pre.cc')
autograde_post_path = get_file_path('cpp_autograde_post.cc')
- Create a ticketCreate a ticket
Function TopicListWithPagination
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TopicListWithPagination: FC<Props> = (props) => {
const { settings, tabValue } = props;
const dispatch = useAppDispatch();
const { t } = useTranslation();
- Create a ticketCreate a ticket
Function convertAnswerDataToInitialValue
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convertAnswerDataToInitialValue = (
answer: AnswerData,
): AnswerFieldEntity | null => {
switch (answer.questionType) {
case QuestionType.MultipleChoice:
- Create a ticketCreate a ticket
Function customBodyRenderLite
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
customBodyRenderLite: (dataIndex): JSX.Element => {
const forum = forums[dataIndex];
return (
<>
- Create a ticketCreate a ticket