Skip to content

Small Elixir app that checks all files in a directory for missing metadata to practice the Elixir lang.

License

Notifications You must be signed in to change notification settings

arielj/blog_linter_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogLinter

Small Elixir app that checks all files in a directory for missing metadata to practice the Elixir lang.

Installation

  1. Clone repo

  2. cd blog_linter

  3. Download any dependency with:

$ mix deps.get
  1. Run the main script with:
$ mix run main.ex
["post1.markdown", "post2.markdown"]

TODO

  • 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

Recommendations

  • Add linting for the code editor using Credo
  • Add the elixir language server extension for your code editor

About

Small Elixir app that checks all files in a directory for missing metadata to practice the Elixir lang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages