Skip to content

Commit 0578e66

Browse files
committed
DX-1846: Use %w or %W for an array of words.
- Fix the RuboCop error: lib/commands/verifier.rb:78:21: C: [Corrected] Style/WordArray: Use %w or %W for an array of words. - Add rubocop-rake and rubocop-rspec to rubocop config.
1 parent a7697d8 commit 0578e66

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.docker/entrypoint/.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require:
2+
- rubocop-rake
3+
- rubocop-rspec
14
AllCops:
25
NewCops: enable
36
Exclude:

.docker/entrypoint/lib/commands/verifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def options(ignore_urls = nil)
7575

7676
def default_options
7777
{
78-
checks: ['Links', 'Images', 'Scripts', 'UnrenderedLink'],
78+
checks: %w[Links Images Scripts UnrenderedLink],
7979
allow_missing_href: true,
8080
check_html: true,
8181
enforce_https: true,

0 commit comments

Comments
 (0)