HomePhabricator

[LINTER] Display the line number in the lint-locale-dependence.sh linter

Description

[LINTER] Display the line number in the lint-locale-dependence.sh linter

Summary:
This makes the output to look like this:

<source file>:<line nunmber>:<code snippet>

Having the line number makes it easier to locate the code line and make
sure all the issues are fixed. This is especially true in this case
where it is likely to have multiple times the same line in the file.

Depends on D2698

Test Plan:

./test/lint/lint-locale-dependence.sh

Check the script outputs not error (no output)

Comment any of the known exceptions in the lint-locale-dependence.sh
script.

./test/lint/lint-locale-dependence.sh

Check the output contains the line number

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2704

Details

Provenance
FabienAuthored on Mar 19 2019, 08:18
FabienPushed on Mar 25 2019, 08:45
Reviewer
Restricted Project
Differential Revision
D2704: [LINTER] Display the line number in the lint-locale-dependence.sh linter
Parents
rABC568a8f9c4b09: Merge #11028: Avoid masking of difficulty adjustment errors by checkpoints
Branches
Unknown
Tags
Unknown