About | Rules | Installing | Setup | Built with | Using Linter | Testing | Author
This project is a CSS Linter, It checks for errors in CSS files
- Checks if there's a space before the opening brace
.test {
background: blue;
}.test{
background: blue;
}- Checks if there's 2 spaces indentation in a block
.test {
background: blue;
}.test {
background: blue;
}- Checks if the hex code is in lower case
.test {
background: #fff;
}.test {
background: #FFF;
}- Checks if the block is empty
.test {
background: blue;
}.test {
}- Checks if there's no unit for 0 value
.test {
background: blue;
padding: 0;
}.test {
background: blue;
padding: 0px;
}- Ruby
- RSpec (Testing)
- Fork the repo to your remote repository.
- Clone or download the repository to a local directory on your computer.
- Ruby must be installed on machine.
- run
bundle installto install the dependencies for the project
- cd into the project directory
- run
bin/main.rb <target_file> - Example is
bin/main.rb css/error.cssto check the error.css file
- cd into the project directory
- To test run
rspecorbundle exec rspec
👤 Ahmad Chata
- Github: ahmadchata
- Twitter: ahmadchata
- Linkedin: Ahmad Chata
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse.
