From e3e08b3af1f91464b33da51a6f7020283f984c48 Mon Sep 17 00:00:00 2001 From: rebortg Date: Fri, 11 Dec 2020 11:58:51 +0100 Subject: linter: fix line lenght detection, strip linebreak --- .github/vyos-linter.py | 1 + docs/documentation.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/vyos-linter.py b/.github/vyos-linter.py index 4a8108b8..bb58786d 100644 --- a/.github/vyos-linter.py +++ b/.github/vyos-linter.py @@ -64,6 +64,7 @@ def lint_AS(cnt, line): def lint_linelen(cnt, line): + line = line.rstrip() if len(line) > 80: return (f"Line too long: len={len(line)}", cnt, 'warning') diff --git a/docs/documentation.rst b/docs/documentation.rst index 3a2bfdcb..64531c32 100644 --- a/docs/documentation.rst +++ b/docs/documentation.rst @@ -157,7 +157,7 @@ Please don't use other public address space. Line length ^^^^^^^^^^^ -Limit all lines to a maximum of 79 characters. +Limit all lines to a maximum of 80 characters. Except in ``.. code-block::`` because it will use the html tag ``
``
 which have the save line format as in the rst file.
-- 
cgit v1.2.3