Assignment Branch Condition size for add_review is too high. [41/15] Open
def add_review
login_as(User.where(role_id: 1).first.name)
expect(page).to have_content 'User: ' + User.where(role_id: 1).first.name
expect(page).to have_content 'TestAssignment'
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Block has too many lines. [71/25] Open
describe 'peer review testing' do
# User first and second are on AssignmentTeam first
# User third is on AssignmentTeam second
# User third is mapped to review team one
# User second is mapped to review team two
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Assignment Branch Condition size for load_your_scores is too high. [35/15] Open
def load_your_scores
login_as(User.where(role_id: 1).third.name)
expect(page).to have_content 'User: ' + User.where(role_id: 1).third.name
click_link 'Assignments'
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Method has too many lines. [16/10] Open
def add_review
login_as(User.where(role_id: 1).first.name)
expect(page).to have_content 'User: ' + User.where(role_id: 1).first.name
expect(page).to have_content 'TestAssignment'
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Block has too many lines. [29/25] Open
before(:each) do
create(:assignment, name: 'TestAssignment', directory_path: 'test_assignment')
create_list(:participant, 3)
create(:assignment_node)
create(:deadline_type, name: 'submission')
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.