Skip to content

Commit 5a99401

Browse files
committed
Improve confirm_documentation task to display out-of-sync documentation
1 parent 1278b73 commit 5a99401

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ end
7272

7373
desc 'Confirm documentation is up to date'
7474
task confirm_documentation: :generate_cops_documentation do
75-
_, _, status =
75+
stdout, _stderr, status =
7676
Open3.capture3('git diff --exit-code docs/')
7777

7878
unless status.success?
79-
raise 'Please run `rake generate_cops_documentation` ' \
80-
'and add docs/ to the commit.'
79+
warn 'Documentation is out of sync:'
80+
warn stdout
81+
warn 'Please run `rake generate_cops_documentation` ' \
82+
'and add docs/ to the commit.'
83+
exit 1
8184
end
8285
end
8386

0 commit comments

Comments
 (0)