We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
confirm_documentation
1 parent 1278b73 commit 5a99401Copy full SHA for 5a99401
Rakefile
@@ -72,12 +72,15 @@ end
72
73
desc 'Confirm documentation is up to date'
74
task confirm_documentation: :generate_cops_documentation do
75
- _, _, status =
+ stdout, _stderr, status =
76
Open3.capture3('git diff --exit-code docs/')
77
78
unless status.success?
79
- raise 'Please run `rake generate_cops_documentation` ' \
80
- 'and add docs/ to the commit.'
+ warn 'Documentation is out of sync:'
+ warn stdout
81
+ warn 'Please run `rake generate_cops_documentation` ' \
82
+ 'and add docs/ to the commit.'
83
+ exit 1
84
end
85
86
0 commit comments