spec/features/peer_review_spec.rb
Block has too many lines. [74/25] Open
Open
describe "peer review testing" do
before(:each) do
create(:assignment, name: "TestAssignment", directory_path: 'test_assignment')
create_list(:participant, 3)
create(:assignment_node)
- 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_questionnaire is too high. [26/15] Open
Open
def load_questionnaire
login_as('student2064')
expect(page).to have_content "User: student2064"
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