Skip to content

Finds errors in the metadata section of the FreePN blog post markdown files

Notifications You must be signed in to change notification settings

freepn/Metadata-Error-Reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Metadata-Error-Reporter

Finds errors in the metadata section of the FreePN blog post markdown files

The script works is that all the blog articles are stored as .md files in a folder the script is run and produces three outputs one is a list of all the files that passed all the tests (csv file) one is the list of files that failed at least one test (csv file) one is a txt file containing the logs for each file, including which tests were failed for which file

there are a total of 11 tests

  1. the first checks that the first line is ''---'
  2. checks for 'TITLE: '
  3. checks for 'DESCRIPTION: '
  4. checks if the length of description is between 120 and 158 characters
  5. checks for 'AUTHOR: '
  6. checks for 'DATE: '
  7. checks for the data format and if it is all correct in the format yyyy-mm-dd
  8. checks for 'IMAGE: '
  9. checks for '---' in the last line
  10. checks for the blank line between metadata and start of article
  11. checks if heading and title match

About

Finds errors in the metadata section of the FreePN blog post markdown files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%