Small Elixir app that checks all files in a directory for missing metadata to practice the Elixir lang.
-
Clone repo
-
cd blog_linter
-
Download any dependency with:
$ mix deps.get
- Run the main script with:
$ mix run main.ex
["post1.markdown", "post2.markdown"]
- For each file:
- check all meta data in the --- yaml --- section
- check the
<!-- more -->
comment is present - validate that the post metadata image file actually exists
- Process all files:
- Return failures
- Add linting for the code editor using Credo
- Add the elixir language server extension for your code editor