<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 12:43 PM, James Craig <span dir="ltr"><<a href="mailto:jcraig@apple.com" target="_blank">jcraig@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class=""><div>On Apr 4, 2014, at 9:08 AM, Zoltan Horvath <<a href="mailto:zoltan@webkit.org" target="_blank">zoltan@webkit.org</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hi there,<div><br></div><div>prepare-Changelog:</div><div> - The style checker script runs on the ChangeLogs as well, and it gives warning if the bug number or the tests' line are not filled.</div>
</div></blockquote><div><br></div></div><div>I consider this an expected behavior. If you don't include --bug=12345 parameter when running prepare-Changelog, your diff is currently in a state that would fail style checks. Having the Terminal output immediately tell you that detail is useful.</div>
<div class=""><br><blockquote type="cite"><div dir="ltr"><div> - I think the best behavior for this case would be to abort the change log creation, if there are errors on the actual code check. (Then you can fix those, and when you rerun prepare-Changelog, it puts the recent things into the change log. [e.g. you've got a lower/uppercase function naming warning, and the function name appears in the change log])</div>
</div></blockquote><div><br></div></div><div>I don't think this is right. If we aborted the change log creation, you'd never be able to run prepare-Changelog without the --bug parameter, unless you specifically disabled the style check with --no-style.</div>
<div class=""><br></div></div></div></blockquote><div><br></div><div>I'd avoid running the style-checker on the change logs themselves <since these're being created> when running prepare-Changelog, and abort changelog creation, if the _rest of the code_ have coding style violation <since fact of violation is our interest at this point>.</div>
</div></div></div>