Block has too many lines. [135/25] Open
RSpec.describe AnnotationDocument, type: :model do
before(:each) do
@annotation_document = FactoryGirl.build(:annotation_document)
@annotation_document_with_different_admin = FactoryGirl.build(:annotation_document_with_different_admin,
interface_type: @annotation_document.interface_type)
- 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.
Block has too many lines. [42/25] Open
describe 'payload' do
it 'should not be nil' do
@annotation_document.payload = nil
expect(@annotation_document).to be_invalid
end
- 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.
Block has too many lines. [30/25] Open
describe 'should be unique within one project and' do
it 'should not be assigned twice' do
common_project = @annotation_document_with_different_admin.raw_datum.project
test_string = 'The company Implisense GmbH in Berlin.'
- 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.
Line is too long. [108/80] Open
@annotation_document_with_different_admin = FactoryGirl.build(:annotation_document_with_different_admin,
- Exclude checks
Use normalcase for variable numbers. Open
project_1 = @annotation_document.raw_datum.project
- Read upRead up
- Exclude checks
This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.
Example: EnforcedStyle: snake_case
# bad
variable1 = 1
# good
variable_1 = 1
Example: EnforcedStyle: normalcase (default)
# bad
variable_1 = 1
# good
variable1 = 1
Example: EnforcedStyle: non_integer
# bad
variable1 = 1
variable_1 = 1
# good
variableone = 1
variable_one = 1
Line is too long. [84/80] Open
common_project = @annotation_document_with_different_admin.raw_datum.project
- Exclude checks
Use normalcase for variable numbers. Open
project_2 = FactoryGirl.create(:another_project)
- Read upRead up
- Exclude checks
This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.
Example: EnforcedStyle: snake_case
# bad
variable1 = 1
# good
variable_1 = 1
Example: EnforcedStyle: normalcase (default)
# bad
variable_1 = 1
# good
variable1 = 1
Example: EnforcedStyle: non_integer
# bad
variable1 = 1
variable_1 = 1
# good
variableone = 1
variable_one = 1
Line is too long. [84/80] Open
common_project = @annotation_document_with_different_admin.raw_datum.project
- Exclude checks
Use normalcase for variable numbers. Open
test_string_1 = 'The company Implisense GmbH in Berlin.'
- Read upRead up
- Exclude checks
This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.
Example: EnforcedStyle: snake_case
# bad
variable1 = 1
# good
variable_1 = 1
Example: EnforcedStyle: normalcase (default)
# bad
variable_1 = 1
# good
variable1 = 1
Example: EnforcedStyle: non_integer
# bad
variable1 = 1
variable_1 = 1
# good
variableone = 1
variable_one = 1
Line is too long. [118/80] Open
interface_type: @annotation_document.interface_type)
- Exclude checks
Use normalcase for variable numbers. Open
test_string_2 = 'The company 3antworten UG in Berlin.'
- Read upRead up
- Exclude checks
This cop makes sure that all numbered variables use the configured style, snakecase, normalcase or noninteger, for their numbering.
Example: EnforcedStyle: snake_case
# bad
variable1 = 1
# good
variable_1 = 1
Example: EnforcedStyle: normalcase (default)
# bad
variable_1 = 1
# good
variable1 = 1
Example: EnforcedStyle: non_integer
# bad
variable1 = 1
variable_1 = 1
# good
variableone = 1
variable_one = 1