Skip to content

Commit b88d6f8

Browse files
committed
Ignore ABC size and RuboCop fixes
1 parent 29aeedf commit b88d6f8

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.rubocop.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
3939

4040
Metrics/AbcSize:
4141
Max: 18
42-
Exclude:
43-
- "demo/test/**/*"
44-
- "test/**/*"
42+
Enabled: false
4543

4644
Metrics/BlockLength:
4745
Exclude:

demo/app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class User < ApplicationRecord
1515

1616
has_rich_text(:life_story)
1717

18-
def always # rubocop:disable Naming/PredicateMethod
18+
def always
1919
true
2020
end
2121

lib/bootstrap_form/components/validation.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def generate_error(name)
7171
content_tag(help_tag, help_text, class: help_klass)
7272
end
7373

74-
# rubocop:disable Metrics/AbcSize
7574
def get_error_messages(name)
7675
object.class.try(:reflections)&.each do |association_name, a|
7776
next unless a.is_a?(ActiveRecord::Reflection::BelongsToReflection)

lib/bootstrap_form/form_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def form_group_content_tag(name, field_name, without_field_name, options, html_o
2929
end
3030
end
3131

32-
def form_group_content(label, help_text, options, &) # rubocop:disable Metrics/AbcSize
32+
def form_group_content(label, help_text, options, &)
3333
label ||= ActiveSupport::SafeBuffer.new
3434
if group_layout_horizontal?(options[:layout])
3535
label + tag.div(capture(&) + help_text, class: form_group_control_class(options))

0 commit comments

Comments
 (0)