whitespace-linter icon indicating copy to clipboard operation
whitespace-linter copied to clipboard

A program that detects and formats trailing whitespace and extra empty lines in your code and config files.

Whitespace Linter

Basic linter that detects and formats trailing whitespace and extra empty lines.

Features

  • Detects excessive whitespace in your file.
  • Allows you to fix detected errors.

Built With

  • Ruby
  • Rspec

Code examples

Bad code

screenshot

Good code

screenshot

Prerequisites

  • Ruby

Install

gem install ws_lint

Usage

ws_lint /path/to/file

Testing

bundle exec rspec

Author

👤 Meron Ogbai

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.