Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (24 loc) · 1.39 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.39 KB

LearnLinter

Gem to accompany Learn curriculum development. Install gem and run from command line with learn-lint < directory name >. Given a directory, the gem will lint for

  • presence of .learn file
  • valid yaml in .learn file
  • valid whitespace for Learn in .learn file. Learn requires two whitespace before a - in any lines containing a -.
  • precense of LICENSE.md
  • valid license content in that file.
  • precense of README.md
  • valid code snippets in README.md
  • precense of CONTRIBUTING.md
  • valid contributing content in that file.

Installation

From the command line, gem install learn_linter.

Usage

Run from command line with learn-lint < directory name >.

Or, from within the directory you want to line, learn-lint

To turn off error message output to termina, use learn-lint <directory name> quiet or learn-lint quiet from within directory you want to lint.

Successes and failures will be printed out to your terminal (in color) :)

Contributing

  • Fork and clone this repo
  • Bundle install and then run rspec
  • If you add to the gem functionality, please be sure that any changes are tested. In your commit message/PR message, describe the change and describe the test, pointing out where to find the test (what file, what line).

License

The gem is available as open source under the terms of the MIT License.