spec/models/tag_prompt_spec.rb
Block has too many lines. [41/25] Open
Open
describe TagPrompt do
let(:ct_criterion) { Criterion.new id: 1, type: "Criterion", seq: 1.0, txt: "test txt", weight: 1 }
let(:ct_cbox) { Criterion.new id: 1, type: "Checkbox", seq: 1.0, txt: "test txt", weight: 1 }
let(:ct_text) { Criterion.new id: 1, type: "Text", seq: 1.0, txt: "test txt", weight: 1 }
let(:an_long) { Answer.new question: ct_criterion, answer: 5, comments: "test comments" }
- 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.
Unnecessary spacing detected. Open
Open
let(:tag_dep_slider) { TagPromptDeployment.new id: 2, tag_prompt: tp2, question_type: "Criterion", answer_length_threshold: 5 }
- Read upRead up
- Exclude checks
This cop checks for extra/unnecessary whitespace.
Example:
# good if AllowForAlignment is true
name = "RuboCop"
# Some comment and an empty line
website += "/bbatsov/rubocop" unless cond
puts "rubocop" if debug
# bad for any configuration
set_app("RuboCop")
website = "https://github.com/bbatsov/rubocop"
Unnecessary spacing detected. Open
Open
let(:tag_dep) { TagPromptDeployment.new id: 1, tag_prompt: tp, question_type: "Criterion", answer_length_threshold: 5 }
- Read upRead up
- Exclude checks
This cop checks for extra/unnecessary whitespace.
Example:
# good if AllowForAlignment is true
name = "RuboCop"
# Some comment and an empty line
website += "/bbatsov/rubocop" unless cond
puts "rubocop" if debug
# bad for any configuration
set_app("RuboCop")
website = "https://github.com/bbatsov/rubocop"