Skip to content

Commit

Permalink
Fix bug where non-frontmatter is being mistaken as JSON (#499)
Browse files Browse the repository at this point in the history
* Allow abs filepath in filename flag

* Skip preprocessor includes, they are not JSON

* Skip templates, not JSON either

* Use GOPATH to discover markdown files

* Comment to avoid confusion
  • Loading branch information
sourishkrout authored Feb 15, 2024
1 parent 84ae66a commit 0e702a5
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 23,536 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ test/update-snapshots:

.PHONY: test/robustness
test/robustness:
@cd integration/subject && npm install --include=dev
find . -name "node_modules" | grep -v "\/\." | xargs dirname | uniq | xargs -n1 -I {} ./runme fmt --project {} > /dev/null
find "$$GOPATH/pkg/mod/github.com" -name "*.md" | grep -v "\/\." | xargs dirname | uniq | xargs -n1 -I {} ./runme fmt --project {} > /dev/null

.PHONY: coverage/html
test/coverage/html:
Expand Down
28 changes: 0 additions & 28 deletions integration/subject/.gitignore

This file was deleted.

60 changes: 0 additions & 60 deletions integration/subject/README.md

This file was deleted.

Loading

0 comments on commit 0e702a5

Please sign in to comment.