njazari/sef-founderwall

View on GitHub
config/initializers/simple_form.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [85/80]
Open

  # type as key and the wrapper that will be used for all inputs with specified type.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [87/80]
Open

  # Tell browsers whether to use the native HTML5 validations (novalidate form option).
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [91/80]
Open

  # config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [83/80]
Open

  # You can define the class to use on all collection wrappers. Defaulting to none.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Align the elements of a hash literal if they span more than one line.
Open

    hint_class: :field_with_hint, error_class: :field_with_errors do |b|
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

- key (left align keys)
- separator (align hash rockets and colons, right align keys)
- table (left align keys, hash rockets, and values)

The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

- always_inspect
- always_ignore
- ignore_implicit (without curly braces)
- ignore_explicit (with curly braces)

Example:

# EnforcedHashRocketStyle: key (default)
# EnforcedColonStyle: key (default)

# good
{
  foo: bar,
  ba: baz
}
{
  :foo => bar,
  :ba => baz
}

# bad
{
  foo: bar,
   ba: baz
}
{
  :foo => bar,
   :ba => baz
}

Example:

# EnforcedHashRocketStyle: separator
# EnforcedColonStyle: separator

#good
{
  foo: bar,
   ba: baz
}
{
  :foo => bar,
   :ba => baz
}

#bad
{
  foo: bar,
  ba: baz
}
{
  :foo => bar,
  :ba => baz
}
{
  :foo => bar,
  :ba  => baz
}

Example:

# EnforcedHashRocketStyle: table
# EnforcedColonStyle: table

#good
{
  foo: bar,
  ba:  baz
}
{
  :foo => bar,
  :ba  => baz
}

#bad
{
  foo: bar,
  ba: baz
}
{
  :foo => bar,
   :ba => baz
}

Line is too long. [93/80]
Open

  # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [91/80]
Open

  # in this configuration, which is recommended due to some quirks from different browsers.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [92/80]
Open

  # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

Line is too long. [89/80]
Open

  # These validations are enabled in SimpleForm's internal config but disabled by default
Severity: Minor
Found in config/initializers/simple_form.rb by rubocop

There are no issues that match your filters.

Category
Status