Showing 1,205 of 1,252 total issues
Function AttachmentDetails
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AttachmentDetails: FC<Props> = (props) => {
const { attachments } = props;
const { t } = useTranslation();
const AttachmentComponent = (): JSX.Element => (
- Create a ticketCreate a ticket
Function reevaluateAnswer
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function reevaluateAnswer(submissionId, answerId, questionId) {
return (dispatch) => {
dispatch({
type: actionTypes.REEVALUATE_REQUEST,
payload: { questionId },
- Create a ticketCreate a ticket
Function questionTypes.ForumPostResponse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[questionTypes.ForumPostResponse]: () => {
const selectedPostPacks = answer.selected_post_packs.map((postPack) =>
produce({}, (draftState) => {
const corePost = {
id: postPack.corePost.id,
- Create a ticketCreate a ticket
Function downloadStatistics
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function downloadStatistics(type) {
return (dispatch) => {
dispatch({ type: actionTypes.DOWNLOAD_STATISTICS_REQUEST });
const handleSuccess = (successData) => {
- Create a ticketCreate a ticket
Function forceSubmitSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function forceSubmitSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.FORCE_SUBMIT_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function default
has 28 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.FETCH_ANNOTATION_SUCCESS:
return {
- Create a ticketCreate a ticket
Function finalizeOrder
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function finalizeOrder(successMessage, failureMessage, onError) {
return (dispatch, getState) => {
const {
surveysFlags: { isQuestionMoved },
surveys,
- Create a ticketCreate a ticket
Function deleteAllSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function deleteAllSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.DELETE_ALL_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function publishSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function publishSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.PUBLISH_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function withSurveyLayout
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withSurveyLayout = (Component) => {
const WrappedComponent = ({ surveys }) => {
const params = useParams();
const surveyId = params.surveyId;
const courseId = params.courseId;
- Create a ticketCreate a ticket
Function ArrowOverlay
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ArrowOverlay = (props) => {
const {
gateInputSizeThreshold,
getGateConnectionPointId,
getGateInputId,
- Create a ticketCreate a ticket
Function renderSidebarItem
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSidebarItem(panelKey, titleKey, count, className) {
const { dispatch, enabledComponents } = this.props;
if (!enabledComponents.includes(panelKey)) {
return null;
}
- Create a ticketCreate a ticket
Function default
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function (state = {}, action) {
switch (action.type) {
case actions.GET_PAST_ANSWERS_SUCCESS: {
return {
...state,
- Create a ticketCreate a ticket
Function renderFillComponent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderFillComponent() {
const {
intl,
onClickFillColorPicker,
fillColorPickerPopoverOpen,
- Create a ticketCreate a ticket
Function displayFileNames
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
displayFileNames(files) {
const { disabled } = this.props;
const { dropzoneActive } = this.state;
if (dropzoneActive) {
return <FileUpload style={{ width: 60, height: 60 }} />;
- Create a ticketCreate a ticket
Function MultipleResponse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleResponse = (props) => {
const {
answerId,
graderView,
question,
- Create a ticketCreate a ticket
Function renderGradeRow
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderGradeRow(question, showGrader) {
const questionGrading = this.props.grading.questions[question.id];
const parsedGrade = parseFloat(questionGrading?.grade);
const questionGrade = Number.isNaN(parsedGrade) ? '' : parsedGrade;
- Create a ticketCreate a ticket
Function getAnswersHistory
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAnswersHistory(question, answer) {
const { intl } = this.props;
switch (question.type) {
case questionTypes.Programming:
return <PastProgrammingAnswer answer={answer} question={question} />;
- Create a ticketCreate a ticket
Function MultipleChoice
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleChoice = (props) => {
const {
answerId,
graderView,
question,
- Create a ticketCreate a ticket
Method text_response_question_params
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def text_response_question_params
permitted_params = [
:title, :description, :staff_only_comments, :maximum_grade, :max_attachments,
:hide_text, :is_comprehension, :is_attachment_required, :max_attachment_size,
question_assessment: { skill_ids: [] }
- Create a ticketCreate a ticket