In this project, I have implemented my own version of Linters using Ruby.
- Ruby
- VS Code
To get a local copy of the repository please run the following commands on your terminal:
$ cd <folder>
$ git clone https://github.com/garciajordy/Ruby-Linters-Capstone.git
$ cd Ruby-Linters-Capstone
$ rspec
Copy your ruby file in the Ruby-Linters-Capstone folder
$ cd Ruby-Linters-Capstone
$ ruby bin/main.rb test.rb
Change test.rb with any file you would like to check
Good Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Bad Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Good Example
I Used the pipe "|" on the second line to indicate the cursor
class Test
def initialize(name)|
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Bad Example
class Test
def initialize(name) |
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Good Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Bad Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Good Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Bad Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
end
Good Example
class Test
def initialize(name)
@name = [name]
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
Bad Example
class Test
def initialize(name)
@name = [name
@age = name.length
end
def call_me
puts "HEEEEY, #{@name}!!"
end
end
👤 Jordy Garcia
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give ⭐ Star me on GitHub — it helps!