infusionvlc/ConexionFelina

View on GitHub
app/models/user.rb

Summary

Maintainability
A
0 mins
Test Coverage

Tab detected.
Open

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

Tab detected.
Open

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

Inconsistent indentation detected.
Open

    has_and_belongs_to_many :colonies
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 :bio, length: { maximum: MAXIMUM_BIO_LENGTH }
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: :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

Tab detected.
Open

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

Tab detected.
Open

    validates :username, :email, :role, :purrs, presence: true
Severity: Minor
Found in app/models/user.rb by rubocop

Inconsistent indentation detected.
Open

    validates :username, :email, :role, :purrs, presence: 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

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

Tab detected.
Open

    has_many :cats, through: :adoptions
Severity: Minor
Found in app/models/user.rb by rubocop

Inconsistent indentation detected.
Open

    MAXIMUM_BIO_LENGTH = 512
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

    has_and_belongs_to_many :turns
Severity: Minor
Found in app/models/user.rb by rubocop

Tab detected.
Open

    validates :bio, length: { maximum: MAXIMUM_BIO_LENGTH }
Severity: Minor
Found in app/models/user.rb by rubocop

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

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

Inconsistent indentation detected.
Open

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

                 :recoverable, :rememberable, :trackable, :validatable
Severity: Minor
Found in app/models/user.rb by rubocop

Tab detected.
Open

    has_and_belongs_to_many :colonies
Severity: Minor
Found in app/models/user.rb by rubocop

Inconsistent indentation detected.
Open

    enum role: [ :admin, :volunteer, :basic]
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 :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

Do not use space inside array brackets.
Open

    enum role: [ :admin, :volunteer, :basic]
Severity: Minor
Found in app/models/user.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

    MAXIMUM_BIO_LENGTH = 512
Severity: Minor
Found in app/models/user.rb by rubocop

Line is too long. [102/80]
Open

  validates :purrs, numericality: { only_integer: true, greater_than_or_equal_to: MINIMUM_PURR_VALUE }
Severity: Minor
Found in app/models/user.rb by rubocop

Inconsistent indentation detected.
Open

    has_and_belongs_to_many :turns
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

    MINIMUM_PURR_VALUE = 0
Severity: Minor
Found in app/models/user.rb by rubocop

Tab detected.
Open

     validates :username, length: { maximum: MAXIMUM_USERNAME_LENGTH }
Severity: Minor
Found in app/models/user.rb by rubocop

Align the parameters of a method call if they span more than one line.
Open

                 :recoverable, :rememberable, :trackable, :validatable
Severity: Minor
Found in app/models/user.rb by rubocop

Here we check if the parameters on a multi-line method call or definition are aligned.

Example: EnforcedStyle: withfirstparameter (default)

# good

foo :bar,
    :baz

# bad

foo :bar,
  :baz

Example: EnforcedStyle: withfixedindentation

# good

foo :bar,
  :baz

# bad

foo :bar,
    :baz

Inconsistent indentation detected.
Open

    MINIMUM_PURR_VALUE = 0
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

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

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

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

There are no issues that match your filters.

Category
Status