summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-12-11 11:58:51 +0100
committerrebortg <github@ghlr.de>2020-12-11 11:58:51 +0100
commite3e08b3af1f91464b33da51a6f7020283f984c48 (patch)
tree3e9b58789f60a6002022bf1d6f5fcd155155c03e
parent23fa394cb212ecf4f26e0816ccf390f989b84970 (diff)
downloadvyos-documentation-e3e08b3af1f91464b33da51a6f7020283f984c48.tar.gz
vyos-documentation-e3e08b3af1f91464b33da51a6f7020283f984c48.zip
linter: fix line lenght detection, strip linebreak
-rw-r--r--.github/vyos-linter.py1
-rw-r--r--docs/documentation.rst2
2 files changed, 2 insertions, 1 deletions
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 ``<pre>``
which have the save line format as in the rst file.