Skip to content

A CSS linter that provides custom warnings to help avoid common errors and enforce team conventions in the CSS style designed with Ruby.

License

Notifications You must be signed in to change notification settings

KabohaJeanMark/linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby

CSS-linter

A CSS linter to check for custom warnings and common errors teams face during development.

Built With

  • Ruby

Prerequisites

  • A computer with ruby installed.

set up

git clone https://github.com/KabohaJeanMark/linter/
cd linter
bin/main.rb

Testing

  • Rspec is used to run the tests checking both negative and positive edge cases for the public methods in the LinterCheck class.
  • Change directory into the main project directory and run the rspec command.
cd linter
rspec

testing

Usage

  • git clone this repo to your local machine and navigate (cd ) to the top directory containing the main.rb file
  • run the following command
ruby bin/main.rb
  • It shows all of the linter checks being executed on a file.

linters

  • The user is then prompted to check another file by typing in 'csslint'
csslint

css file 2

  • The user is prompted to input 'read' to view a file with no errors
read

read terminal

Rules

This table shows the different CSS files side by side showing the errors and how to easily prevent making the same mistakes with a fun spot the difference game :)

CSS file without errors CSS file with errors
screenshot screenshot

Author

👤 Kaboha Jean Mark

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to Microverse.

📝 License

This project is MIT licensed.

About

A CSS linter that provides custom warnings to help avoid common errors and enforce team conventions in the CSS style designed with Ruby.

Topics

Resources

License

Stars

Watchers

Forks