Showing 1,205 of 1,252 total issues
Function renderDeleteDialog
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderDeleteDialog() {
const { deleteFileName, deleteFileId, deleteConfirmation } = this.state;
const { intl, handleDeleteFile } = this.props;
return (
<Prompt
- Create a ticketCreate a ticket
Function renderCommentContent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCommentContent() {
const { editMode } = this.state;
const {
editValue,
post: { text, id },
- Create a ticketCreate a ticket
Function renderLabel
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderLabel() {
const { postPack } = this.props;
const { forum, topic } = postPack;
const courseId = getCourseId();
- Create a ticketCreate a ticket
Function PostMenu
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PostMenu = (props) => {
const [anchorEl, setAnchorEl] = useState(null);
const handleClick = (event) => {
// This prevents ghost click.
- Create a ticketCreate a ticket
Function renderAssessment
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderAssessment() {
const { assessment, submission } = this.props;
const renderFile = (file, index) => (
<div key={index}>
- Create a ticketCreate a ticket
Function MuiTableToolbar
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MuiTableToolbar = (props: ToolbarProps): JSX.Element | null => {
const { t } = useTranslation();
if (props.alternative?.when())
return <ToolbarContainer>{props.alternative.render()}</ToolbarContainer>;
- Create a ticketCreate a ticket
Function ComponentSettings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ComponentSettings = (): JSX.Element => {
const reloadItems = useItemsReloader();
const { t } = useTranslation();
const [submitting, setSubmitting] = useState(false);
- Create a ticketCreate a ticket
Function SidebarSettings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SidebarSettings = (): JSX.Element => {
const { t } = useTranslation();
const [submitting, setSubmitting] = useState(false);
const handleSubmit = (
- Create a ticketCreate a ticket
Function handleEvaluationPolling
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleEvaluationPolling = (): void => {
Object.values(questions).forEach((question) => {
if (
questionFlags[question.id]?.isAutograding &&
questionFlags[question.id]?.jobUrl
- Create a ticketCreate a ticket
Function unsubmitAllSubmissions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function unsubmitAllSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.UNSUBMIT_ALL_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function renderFolder
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderFolder(folder, indentLevel) {
const { dispatch, selectedItems } = this.props;
const { id, name, materials, subfolders } = folder;
const checked = !!selectedItems[FOLDER][folder.id];
const hasChildren = materials.length + subfolders.length > 0;
- Create a ticketCreate a ticket
Function renderPostMenu
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderPostMenu() {
const { forumTopicPostPacks } = this.props;
if (forumTopicPostPacks == null || forumTopicPostPacks.length === 0) {
return (
- Create a ticketCreate a ticket
Function renderReminderConfirmation
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderReminderConfirmation(shownSubmissions, handleRemindParams) {
const { dispatch } = this.props;
const { assessmentId } = this.props.match.params;
const { remindConfirmation } = this.state;
const values = {
- Create a ticketCreate a ticket
Function renderRowUsers
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderRowUsers() {
const {
dispatch,
courseId,
assessmentId,
- Create a ticketCreate a ticket
Method validate_no_repeat_bundles
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def validate_no_repeat_bundles(assignment_set)
attempted_questions = {}
@assessment.question_bundle_assignments.where.not(submission: nil).pluck(:user_id, :bundle_id).
each do |user_id, bundle_id|
attempted_questions[user_id] ||= Set.new
- Create a ticketCreate a ticket
Function getImage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getImage = (
image: HTMLImageElement,
crop: PixelCrop,
rotation: number,
type: string,
- Create a ticketCreate a ticket
Function WrappedComponent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WrappedComponent = (props: P): JSX.Element => {
const workerRef = useRef<HeartbeatWorker>();
const [sessionId, setSessionId] = useState<number>();
const params = useParams();
- Create a ticketCreate a ticket
Function fetchLeaderboard
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchLeaderboard = (): Operation => {
return async (dispatch) =>
CourseAPI.leaderboard.index().then((response) => {
const data: LeaderboardData = response.data;
dispatch(
- Create a ticketCreate a ticket
Function PopupMenuButton
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PopupMenuButton = (props: PopupMenuButtonProps): JSX.Element => {
const { linkProps } = props;
const { close } = useContext(PopupMenuContext);
- Create a ticketCreate a ticket
Function UserVideoSubmissionsIndex
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UserVideoSubmissionsIndex: FC<Props> = (props) => {
const { intl } = props;
const [isLoading, setIsLoading] = useState(true);
const [videoSubmissions, setVideoSubmissions] = useState<
VideoSubmissionListData[] | null
- Create a ticketCreate a ticket