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 }}

Tab detected.
Open

    has_many :donations
Severity: Minor
Found in app/models/user.rb by rubocop

Tab detected.
Open

    has_many :sponsors
Severity: Minor
Found in app/models/user.rb by rubocop

Tab detected.
Open

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

Trailing whitespace detected.
Open

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

Inconsistent indentation detected.
Open

    def illness_params
      params.require(:illness).permit(:name, :description, :priority, :treatment)
    end

This cops checks for inconsistent indentation.

Example:

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

Space inside parentheses detected.
Open

    redirect_to( locations_path )

Checks for spaces inside ordinary round parentheses.

Example:

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

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

Extra blank line detected.
Open


  def update

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Tab detected.
Open

    belongs_to :user
Severity: Minor
Found in app/models/colonies_user.rb by rubocop

Inconsistent indentation detected.
Open

    has_many :donations
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

Inconsistent indentation detected.
Open

    has_many :adoptions
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

Inconsistent indentation detected.
Open

    has_many :cats, through: :sponsors
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

Inconsistent indentation detected.
Open

    validates :username, 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

Tab detected.
Open

    enum role: [ :admin, :volunteer, :basic]
Severity: Minor
Found in app/models/user.rb by rubocop

Do not use space inside array brackets.
Open

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

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

Example: EnforcedStyle: space

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

# bad
array = [a, b, c, d]

# good
array = [ a, b, c, d ]

Example: EnforcedStyle: no_space

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

# bad
array = [ a, b, c, d ]

# good
array = [a, b, c, d]

Example: EnforcedStyle: compact

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

# bad
array = [ a, [ b, c ] ]

# good
array = [ a, [ b, c ]]

Tab detected.
Open

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

Space inside parentheses detected.
Open

    @illness = Illness.find( 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

    @location = Location.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 ]

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

    !@user.nil? && (@user.role == "volunteer" || @user.role == "admin")
Severity: Minor
Found in app/policies/suffering_policy.rb by rubocop

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"

Final newline missing.
Open

end
Severity
Category
Status
Source
Language