diff options
author | Martin Roth <gaumless@gmail.com> | 2017-04-06 11:06:00 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-06-07 23:13:38 +0200 |
commit | 811d93af39142b4e18073574db69bfe36af512b1 (patch) | |
tree | 47fcf8b9d2157e19e7897c858a9fbf5ff2cad65f /util/msrtool | |
parent | a18353d7b72e5b7094d25fe5a6c7497993716fcd (diff) |
util/lint: Give better warning for help spacing issue
Because the help block uses significant whitespace to determine whether
or not text is inside the help block, a mixture of spaces and tabs
confuses the parser.
If there's an unrecognized line, and the previous line was inside a help
block, it's likely that this line is too.
Additionally, this was found with a line that started ' configuration',
and threw a perl warning about an uninitialized value because the parser
thought this was the start of a new config line, but couldn't find the
symbol. Now we make sure that config statements have whitespace after
the 'config' statement.
Change-Id: I46375738a18903b266ea9fff3102a1a91235e609
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/19155
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/msrtool')
0 files changed, 0 insertions, 0 deletions