Skip to content

Commit

Permalink
many: allow for more compact Markdown as CODING.md is quite nested
Browse files Browse the repository at this point in the history
extend the minal markdown checking to all the files, fix one
  • Loading branch information
pedronis committed Jan 17, 2023
1 parent 2c6a8c6 commit 0024d29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mdlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@


def lint_li(fname, text):
"""Ensure that the list-items are multiplies of 4"""
"""Ensure that the list-items are multiplies of 2"""
is_clean = True
for i, line in enumerate(text.splitlines()):
if line.lstrip().startswith("*") and line.index("*") % 4 != 0:
print("%s: line %i list has non-4 spaces indent" % (fname, i))
if line.lstrip().startswith("*") and line.index("*") % 2 != 0:
print("%s: line %i list has non-2 spaces indent" % (fname, i))
is_clean = False
return is_clean

Expand Down
2 changes: 1 addition & 1 deletion run-checks
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [ "$STATIC" = 1 ]; then

# Run static tests.
echo Checking docs
./mdlint.py ./*.md docs/*.md
./mdlint.py ./*.md ./**/*.md

# XXX: remove once we can use an action, see workflows/test.yaml for
# details why we still use this script
Expand Down
3 changes: 1 addition & 2 deletions tests/manual-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@

7. Boot the image.

8. Print the free space of the file system, replacing *{dev}* with the device that has the
*writable* partition:
8. Print the free space of the file system, replacing *{dev}* with the device that has the *writable* partition:

sudo parted -s {dev} unit % print free

Expand Down

0 comments on commit 0024d29

Please sign in to comment.