infusionvlc/ConexionFelina

View on GitHub

Showing 303 of 303 total issues

Space inside { missing.
Open

  validates :notes, length: {maximum: MAXIMUM_CHARACTERS}
Severity: Minor
Found in app/models/treatment_entry.rb by rubocop

Checks that braces used for hash literals have or don't have surrounding space depending on configuration.

Example: EnforcedStyle: space

# The `space` style enforces that hash literals have
# surrounding space.

# bad
h = {a: 1, b: 2}

# good
h = { a: 1, b: 2 }

Example: EnforcedStyle: no_space

# The `no_space` style enforces that hash literals have
# no surrounding space.

# bad
h = { a: 1, b: 2 }

# good
h = {a: 1, b: 2}

Example: EnforcedStyle: compact

# The `compact` style normally requires a space inside
# hash braces, with the exception that successive left
# braces or right braces are collapsed together in nested hashes.

# bad
h = { a: { b: 2 } }

# good
h = { a: { b: 2 }}

Space inside parentheses detected.
Open

    @location = Location.find( params[ :id ])

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Space inside parentheses detected.
Open

    saved_state && ( saved_state.include?('colony') || active?)
Severity: Minor
Found in app/models/cat.rb by rubocop

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Line is too long. [96/80]
Open

    devise_parameter_sanitizer.permit(:sign_up, keys: [:username, :role, :bio, :avatar, :purrs])

Inconsistent indentation detected.
Open

    MAXIMUM_USERNAME_LENGTH = 20
Severity: Minor
Found in app/models/user.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Line is too long. [83/80]
Open

    redirect_to treatment_entries_path(suffering_id: @treatment_entry.suffering_id)

Tab detected.
Open

    
Severity: Minor
Found in app/models/illness.rb by rubocop

Line is too long. [83/80]
Open

    redirect_to treatment_entries_path(suffering_id: @treatment_entry.suffering_id)

Tab detected.
Open

    enum priority: [ :low, :medium, :high ] 
Severity: Minor
Found in app/models/illness.rb by rubocop

Trailing whitespace detected.
Open

  
Severity: Minor
Found in app/policies/illness_policy.rb by rubocop

Space inside parentheses detected.
Open

    @location = Location.new( location_params )

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

      record.errors[:date] << "Date must be in the past"

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Line is too long. [91/80]
Open

       last_payment_date: Date.today, start_date: Date.today, user: current_user, cat: cat)
Severity: Minor
Found in app/controllers/cats_controller.rb by rubocop

Line is too long. [138/80]
Open

                                sufferings_attributes: [:id, :illness_id, :cat_id, :diagnosis_date, :notes, :chronic, :status, :_destroy])
Severity: Minor
Found in app/controllers/cats_controller.rb by rubocop

Inconsistent indentation detected.
Open

  validates :description, length: {maximum: MAXIMUM_DESCRIPTION_LENGTH}
Severity: Minor
Found in app/models/illness.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected.
Open

    validates :email, uniqueness: true
Severity: Minor
Found in app/models/user.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Space inside parentheses detected.
Open

    redirect_to (illness_path( params[ :id ] ))

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Do not use space inside reference brackets.
Open

    redirect_to (illness_path( params[ :id ] ))

Checks that reference brackets have or don't have surrounding space depending on configuration.

Example: EnforcedStyle: no_space (default)

# The `no_space` style enforces that reference brackets have
# no surrounding space.

# bad
hash[ :key ]
array[ index ]

# good
hash[:key]
array[index]

Example: EnforcedStyle: space

# The `space` style enforces that reference brackets have
# surrounding space.

# bad
hash[:key]
array[index]

# good
hash[ :key ]
array[ index ]

Tab detected.
Open

    validates :name, :description, :priority, :treatment, presence: true
Severity: Minor
Found in app/models/illness.rb by rubocop

Do not use space inside reference brackets.
Open

    @illness = Illness.find( params[ :id ])

Checks that reference brackets have or don't have surrounding space depending on configuration.

Example: EnforcedStyle: no_space (default)

# The `no_space` style enforces that reference brackets have
# no surrounding space.

# bad
hash[ :key ]
array[ index ]

# good
hash[:key]
array[index]

Example: EnforcedStyle: space

# The `space` style enforces that reference brackets have
# surrounding space.

# bad
hash[:key]
array[index]

# good
hash[ :key ]
array[ index ]
Severity
Category
Status
Source
Language