Skip to content

Commit

Permalink
feat : coding#42 check package name should not have version
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 9, 2021
1 parent 4bfd446 commit a401fcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@ if [ -n "$index_file" ]; then
diff index-body.md index-body-sorted.md
fi

package_name=$(awk '{print $1}' /tmp/index-body.md)
echo "check if package name have version number"
for i in $package_name; do
expr "$i" : ".*\.[0-9]\+\." > /dev/null && echo "[ERROR] $i : package name should not have version!" && exit 2
done

## lint markdown
# TODO

0 comments on commit a401fcc

Please sign in to comment.