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.
2 parents a72a32d + 9e4855f commit c155235Copy full SHA for c155235
Rakefile
@@ -72,12 +72,15 @@ end
72
73
desc 'Confirm documentation is up to date'
74
task confirm_documentation: :generate_cops_documentation do
75
- _, _, _, process =
76
- Open3.popen3('git diff --exit-code docs/')
77
-
78
- unless process.value.success?
79
- raise 'Please run `rake generate_cops_documentation` ' \
80
- 'and add docs/ to the commit.'
+ stdout, _stderr, status =
+ Open3.capture3('git diff --exit-code docs/')
+
+ unless status.success?
+ 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