Showing 1,441 of 1,441 total issues
Line is too long. [94/80] Open
associated_problem_identifiers: %w(ner ultraNER))
- Exclude checks
Line is too long. [96/80] Open
@interface.template = File.new("#{Rails.root}/spec/fixtures/interfaces/text_nominal.html")
- Exclude checks
Line is too long. [90/80] Open
@interface.java_script = File.new("#{Rails.root}/spec/fixtures/interfaces/empty.js")
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
associated_problem_identifiers: %w(ner ultraNER))
- Read upRead up
- Exclude checks
This cop enforces the consistent usage of %
-literal delimiters.
Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.
Example:
# Style/PercentLiteralDelimiters:
# PreferredDelimiters:
# default: '[]'
# '%i': '()'
# good
%w[alpha beta] + %i(gamma delta)
# bad
%W(alpha #{beta})
# bad
%I(alpha beta)
Line is too long. [88/80] Open
@project.iterate_service = FactoryGirl.create(:iterate_service, problem_id: 'NER')
- Exclude checks
Line is too long. [106/80] Open
@project.machine_learning_service = FactoryGirl.create(:machine_learning_service, problem_id: 'NER')
- Exclude checks
Line is too long. [120/80] Open
template: File.new("#{Rails.root}/spec/fixtures/interfaces/ner_complete.html")
- Exclude checks
Use normalcase for variable numbers. Open
file_path_1 = Rails.root.join('spec/fixtures/text/valid.md')
- 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
Redundant curly braces around a hash parameter. Open
{
success: ['valid.md'],
error: ['invalid.bin']
}
- Read upRead up
- Exclude checks
This cop checks for braces around the last parameter in a method call
if the last parameter is a hash.
It supports braces
, no_braces
and context_dependent
styles.
Example: EnforcedStyle: braces
# The `braces` style enforces braces around all method
# parameters that are hashes.
# bad
some_method(x, y, a: 1, b: 2)
# good
some_method(x, y, {a: 1, b: 2})
Example: EnforcedStyle: no_braces (default)
# The `no_braces` style checks that the last parameter doesn't
# have braces around it.
# bad
some_method(x, y, {a: 1, b: 2})
# good
some_method(x, y, a: 1, b: 2)
Example: EnforcedStyle: context_dependent
# The `context_dependent` style checks that the last parameter
# doesn't have braces around it, but requires braces if the
# second to last parameter is also a hash literal.
# bad
some_method(x, y, {a: 1, b: 2})
some_method(x, y, {a: 1, b: 2}, a: 1, b: 2)
# good
some_method(x, y, a: 1, b: 2)
some_method(x, y, {a: 1, b: 2}, {a: 1, b: 2})
Line is too long. [87/80] Open
interface_type: @interface.interface_type,
- Exclude checks
Line is too long. [86/80] Open
interface_types: [interface_type])
- Exclude checks
Redundant curly braces around a hash parameter. Open
{
'text_nominal' => text_nominal_interface.title
}
- Read upRead up
- Exclude checks
This cop checks for braces around the last parameter in a method call
if the last parameter is a hash.
It supports braces
, no_braces
and context_dependent
styles.
Example: EnforcedStyle: braces
# The `braces` style enforces braces around all method
# parameters that are hashes.
# bad
some_method(x, y, a: 1, b: 2)
# good
some_method(x, y, {a: 1, b: 2})
Example: EnforcedStyle: no_braces (default)
# The `no_braces` style checks that the last parameter doesn't
# have braces around it.
# bad
some_method(x, y, {a: 1, b: 2})
# good
some_method(x, y, a: 1, b: 2)
Example: EnforcedStyle: context_dependent
# The `context_dependent` style checks that the last parameter
# doesn't have braces around it, but requires braces if the
# second to last parameter is also a hash literal.
# bad
some_method(x, y, {a: 1, b: 2})
some_method(x, y, {a: 1, b: 2}, a: 1, b: 2)
# good
some_method(x, y, a: 1, b: 2)
some_method(x, y, {a: 1, b: 2}, {a: 1, b: 2})
Line is too long. [85/80] Open
interface_type_1 = FactoryGirl.create(:interface_type, name: 'fancy_interface')
- Exclude checks
Use normalcase for variable numbers. Open
interface_type_2 = FactoryGirl.create(:interface_type, name: 'regular_interface')
- 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
it 'should be unique in the scope of projects and override existing raw_data' do
- Exclude checks
Line is too long. [87/80] Open
interface_type: @interface.interface_type,
- Exclude checks
Line is too long. [87/80] Open
interface_type: @interface.interface_type,
- Exclude checks
Line is too long. [97/80] Open
interface_types: [interface_type_1, interface_type_2])
- Exclude checks
Line is too long. [100/80] Open
expect(merge_data[:annotation_documents].first).to eq(annotation_document.relevant_attributes)
- 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