Skip to content

Commit a4fd93c

Browse files
Enable no trailing comma in arguments cop
1 parent 0de8092 commit a4fd93c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Style/PredicateName:
6060
- has_many
6161
- has_many_actions
6262

63+
Style/TrailingCommaInArguments:
64+
Enabled: true
65+
6366
Layout/TrailingBlankLines:
6467
Enabled: true
6568

lib/active_admin/views/components/active_admin_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def create_another_checkbox
111111
id: 'create_another',
112112
class: 'create_another',
113113
name: 'create_another',
114-
type: 'checkbox',
114+
type: 'checkbox'
115115
)
116116
label(I18n.t('active_admin.create_another', model: label), for: 'create_another')
117117
end

spec/support/rails_template_with_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
namespace: :admin,
320320
author: AdminUser.first,
321321
body: "Test comment \#{i}",
322-
resource: categories.sample,
322+
resource: categories.sample
323323
)
324324
end
325325
RUBY

0 commit comments

Comments
 (0)