Showing 1,205 of 1,252 total issues
Function duplicateItems
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
destinationCourseId,
selectedItems,
successMessage,
pendingMessage,
failureMessage,
- Create a ticketCreate a ticket
Method perform_tracked
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def perform_tracked(unsubmitter, submission_ids, assessment, question = nil, redirect_to_path = nil)
- Create a ticketCreate a ticket
Method create_with_codes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.create_with_codes(assessment_id, question_id, user, feedback_id, files)
- Create a ticketCreate a ticket
Method parse_invitation_result
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def parse_invitation_result(new_invitations, existing_invitations, new_course_users,
existing_course_users, duplicate_users)
- Create a ticketCreate a ticket
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(assessment, questions, workspace_id, monitoring_object, seb_config_key)
- Create a ticketCreate a ticket
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(assessment, question, answer, require_token, feedback_config)
- Create a ticketCreate a ticket
Method explanations_for_points_summary_incorrect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def explanations_for_points_summary_incorrect(question, answer_text_array,
answer_text_lemma_status, correct_points, hash_point_serial)
- Create a ticketCreate a ticket
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(user, course = nil, course_user = nil, instance_user = nil, session_id = nil)
- Create a ticketCreate a ticket
Method parse_invitation_result
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def parse_invitation_result(new_invitations, existing_invitations, new_instance_users,
existing_instance_users, duplicate_users)
- Create a ticketCreate a ticket
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(assessment, custom_prompt, language, version, difficulty)
- Create a ticketCreate a ticket
Method explanations_for
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def explanations_for(question, grade, answer_text_array, answer_text_lemma_status, correct_points)
- Create a ticketCreate a ticket
Function updateMilestone
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
id,
values,
successMessage,
failureMessage,
setError,
- Create a ticketCreate a ticket
Function updateEvent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
eventId,
values,
successMessage,
failureMessage,
setError,
- Create a ticketCreate a ticket
Function filterSubmissions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
categoryId: number | null,
assessmentId: number | null,
groupId: number | null,
userId: number | null,
pageNum: number | null,
- Create a ticketCreate a ticket
Function default
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export default function (state = initialState, action) {
switch (action.type) {
case actions.FETCH_SUBMISSION_SUCCESS:
return {
...state,
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function computeLimits
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export const computeLimits = (assessments, submissions) => {
if (assessments == null || assessments.length === 0) {
return {};
}
const endAts = assessments.map((a) => a.endAt);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function renderBody
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
renderBody() {
const {
isLoading,
isCourseSelected,
duplicationMode,
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getAvailableUserInOtherGroups
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const getAvailableUserInOtherGroups = (courseUsers, groups, group) => {
const otherGroups = groups.filter((x) => x !== group);
const mapStudentToGroups = {};
for (let i = 0; i < otherGroups.length; i++) {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Category
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const Category = ({
dispatch,
groupCategory,
groups,
isFetching,
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function ResponseEdit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const ResponseEdit = (props) => {
const {
dispatch,
flags,
match: {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"