Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 2.2 KB

File metadata and controls

90 lines (57 loc) · 2.2 KB

Ruby-Capstone-Project

My_Linter

My_Linter is a linter that provides feedback if HTML best practices are not met.

How it works

The Linter is for beginners who are not familiar with the CSS best practices. There are so many recommended practices for CSS but this linter focus on the basic requirement to have a good CSS syntax.

  • The Linter checks if doctype is declared at the beginning of the file.
  • It checks if meta tag description is declared.
  • It checks if head tag is found.
  • It checks if body contents are found.
  • It checks if ul tag is found.
  • It checks if lang attribute is found and that it is not too long.
  • It checks that no elements have an inline style

Built With

  • Ruby.

Live Video

Video Presentation

Getting Started

To get a local copy running follow these simple example steps.

Prerequisites

  • Ruby
  • Colorize
  • Nokogiri

Setup

Fork this project to your local machine Clone the repo on your local machine Cd into the folder

How to run the linter in your terminal

Run this command line: bin/main.rb

Example of Passed Tests with more information

screenshot

Example of Failed Tests with more information

screenshot

Author

👤 Rahma Halane

🤝 Contributing

Contributions, issues and feature requests are all welcome! Start by:

Setting Up Project

  • Forking the project
  • Cloning the project to your local machine
  • cd into the project directory
  • Run git checkout -b your-branch-name
  • Make your contributions
  • Push your branch up to your forked repository
  • Open a Pull Request with a detailed description to the develop branch of the original project for a review
  • Please feel free to contribute to any of these!

Feel free to check the issues/.

Show your support

Give a ⭐️ if you like this project!!

Acknowledgments

📝 License

No Licence