diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-06-25 19:00:41 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-06-25 19:00:41 +0200 |
commit | 720dd6cd748b56727e2fd911a21cb678a5187370 (patch) | |
tree | c91c6cbef7ceeecbf5fb529e8f73bf9b1ad82eb6 | |
parent | 16e6e3e9852c988b5bf0b416fabaeaa03588696f (diff) | |
download | xtools-720dd6cd748b56727e2fd911a21cb678a5187370.tar.gz xtools-720dd6cd748b56727e2fd911a21cb678a5187370.tar.xz xtools-720dd6cd748b56727e2fd911a21cb678a5187370.zip |
Revert "xlint: lint multi-line value indentation"
18:59:51 <abby> leah2, can you revert the multiline lint for now, I'm working on a better way but it's too buggy to stay for now This reverts commit 16e6e3e9852c988b5bf0b416fabaeaa03588696f.
-rwxr-xr-x | xlint | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/xlint b/xlint index b8f7893..d94a507 100755 --- a/xlint +++ b/xlint @@ -47,22 +47,6 @@ explain_make_check() { ' $template } -check_multiline_vars() { - for q in '"' "'"; do - awk "-vargument=$argument" "-vquote=$q" -vOFS=: ' - BEGIN { - reBegin="^[^=]+=" quote "[^" quote "=]*$"; reEnd="^[^" quote "=]*" quote "$"; - firstLine="^[^ ].*=" quote ".*$"; lastLine="^( [[:graph:]]|" quote "$)" - } - ($0 ~ reBegin),($0 ~ reEnd) { - if ($0 !~ firstLine && $0 !~ lastLine) - print(argument, FNR, " indent multi-line continuations with a single space") - if ($0 ~ /\\$/) - print(argument, FNR, " do not use backslashes to end lines in multi-line continuations") - }' $template - done | sort -u -k2 -} - variables_order() { local curr_index max_index max_index_line variables_end message line local line_number max_index_line_number @@ -500,7 +484,6 @@ for argument; do header file_end explain_make_check - check_multiline_vars else echo no such template "$argument" 1>&2 fi | sort -t: -n -k2 -k3 | grep . && ret=1 |