File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Verify that the code snippets in README.md are formatted.
44# The tool https://github.com/hougesen/mdsf is used.
55
6- if [ -n " $( mdsf verify --config .mdsf.json README.md 2>&1 ) " ]; then
6+ if [ -n " $( mdsf verify --config .mdsf.json --log-level error README.md 2>&1 ) " ]; then
77 echo " Go code in the README.md is not formatted."
88 echo " Did you forget to run 'mdsf format --config .mdsf.json README.md'?"
9+ mdsf format --config .mdsf.json README.md
10+ git diff
911 exit 1
1012fi
Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://raw.githubusercontent.com/hougesen/mdsf/main/schemas/v0.4.1 /mdsf.schema.json" ,
2+ "$schema" : " https://raw.githubusercontent.com/hougesen/mdsf/main/schemas/v0.8.2 /mdsf.schema.json" ,
33 "format_finished_document" : false ,
44 "languages" : {
55 "go" : [
You can’t perform that action at this time.
0 commit comments