This a Ruby Capstone project from the Microverse Ruby curriculum. The purpose of this project is to build a custom linter program for the documentation of a specific file type.
This custom linter program is developed to catch standard documentation offenses of ruby files.
The program compares the actual and the standard indentation of a line in code and puts an error message with line number
The program will look before the new method opening tag and if there is no newline it puts an error message
The program will loop through each line and gives an error message when it gets one which is not before a new method tag
The program will catch unnecessary white space in a line and loops through each line and give comments with line number and column number information
The program checks for balance of line standard indentation level and checks if there is an unclosed tab and puts error message when one founds
The program will count the size of each line strings and puts an error message when it exceeds the set maximum
The program will count the length of each method blocks and puts an error message when it exceeds the set maximum
- Ruby
- VS code
The usage of this program is simple.
- Ruby
- copy the program folder in your project directory
- run the user interface 'my_linter.rb' from the bin folder
- Once the message displayed asking the file name, input the file name
Run the code demonstrations below
ruby bin/my_linter.rb
👤 Henok Mossissa
- GitHub: @henatan99
- Twitter: @henatan99
- LinkedIn: Henok Mossissa
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
This project is MIT licensed.