This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 3
3
# For configuration defaults, refer to: https://github.com/gjtorikian/html-proofer/blob/master/lib/html-proofer/configuration.rb
4
4
#
5
5
html-proofer :
6
+ # Do not flag a tags missing href
7
+ :allow_missing_href : true
8
+
9
+ # Ignores images with missing alt tags
10
+ :ignore_missing_alt : true
11
+
12
+ # Ignores images with empty alt tags.
13
+ :empty_alt_ignore : true
6
14
7
15
# Validate HTML
8
16
:check_html : true
9
17
10
18
# Do not check external links.
11
19
:disable_external : true
12
20
13
- # Report only errors that fall within the 4xx status code range.
14
- :only_4xx : true
15
-
16
- # Ignores images with empty alt tags.
17
- :empty_alt_ignore : true
18
-
19
21
# Sort errors by description in the report
20
22
:error_sort : :desc
21
-
22
- # Use up to 3 parallel processes to speed up internal file checks.
23
- :parallel :
24
- :in_processes : 3
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def self.options
18
18
return config [ 'html-proofer' ] unless ENV [ 'BUILD_NUMBER' ]
19
19
20
20
staging_prefix = '/' + ENV [ 'BUILD_NUMBER' ]
21
- url_swap = { url_swap : { /\A #{ staging_prefix } / => '' } }
21
+ url_swap = { swap_urls : { /\A #{ staging_prefix } / => '' } }
22
22
config [ 'html-proofer' ] . merge ( url_swap )
23
23
end
24
24
You can’t perform that action at this time.
0 commit comments