Coursemology/coursemology2

View on GitHub

Showing 1,205 of 1,252 total issues

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isUndo: true,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, disabled: true };
Severity: Major
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, disabled: false };
Severity: Major
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isUndo: false,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

        return produce(state, (draft) => {
          const question = draft[questionId];
          const answerIds = question.answerIds;
          // Ensure that the id is not being repeatedly added
          if (answerIds.indexOf(latestAnswer.id) === -1) {

Avoid too many return statements within this function.
Open

      return state;

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isRedo: true,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [questionId]: {
          ...state[questionId],
          isLoading: false,

Avoid too many return statements within this function.
Open

      return {
        ...state,
        exp: computeExp(
          questions,
          maximumGrade,

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          lineStyles: { ...lineStyles, [toolType]: style },
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          layers: [...layers, layer],
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          selectedTool,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          canvasWidth,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          canvasStates,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isDelete: true,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isCanvasSave: true,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          answer: { ...state[answerId].answer, scribbles },
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isDrawingMode,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          cursor,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [answerId]: {
          ...state[answerId],
          isDisableObjectSelection: false,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/scribing.js - About 30 mins to fix
Severity
Category
Status
Source
Language