The main concept of this Capstone, it's building Linters for Ruby, the project provides feedback about errors or warnings in code. Built completely with Ruby following best practices maintaining good coding standards working DIY and managing the version control with Gitflow.
To get a local copy of the repository please run the following commands on your terminal:
$ cd <folder>
$ git clone https://github.com/carlos-ssh/Capstone_Ruby.git
To check for errors on a file:
$ bin/main ./bugs/bug.rb
The file bug.rb will be contain errors on it, because it is just for tests.
It checks, the following errors & warnings.
- check empty line error
- check for trailing spaces
- check missing/unexpected end
- check for missing/unexpected tags i.e. '( )', '[ ]', and '{ }'
- check for wrong indentation
Below are demonstrations of good and bad code for the above cases. I will use the pipe '|' symbol to indicate cursor position where necessary.
# Good Code
class Ticket
def initialize(venue, date)
@venue = venue
@date = date
end
end
# Bad Code
class Ticket
def initialize(venue, date) |
@venue = venue
@date = date
end
end
- Ruby
- Rubcop
- RSpec for Ruby Testing
- Love
👤 Carlos Robles
- Github: @carlos.robles
- Twitter: @carlos.robles
- Linkedin: carlos.robles
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
- Project inspired by Microverse