This linter checks simpler error like and suggests alternatives to improve your code
- More than two break line
- More than 53 characters in a single line
- Have a break line after method and comment
- Have blank space after the class name
- Repeated method name
- Have colon and/or in a method line
- Ruby 2.6
In order to start with the project:
- You need to have Ruby environment installed. Click here for instructions
- Clone this repository 📘
- Run the main file
- In a terminal window write
ruby
[your_file_path]
main.rb
- In a terminal window write
- Once you get the file to enter your CSS file path. By default, it is set
style.css
in the examples folder, it doesn't matter always it has been returned a file it's going to return value
Without path | With path |
---|---|
We are using RSpec testing tool to test all enumerable methods. Also some detailed documentation about this tool
- In a terminal window type
gem install rspec
- Once rspec install has finished, type
rspec --init
- You will see a folder
spec
and a file.rspec
- Inside
spec
folder you'll see aspec_helper.rb
file.
We have already created a file called
logic_spec.rb
, if you want to create another one with the end[your file name]
_spec.rb
- Open
./spec/logic_spec.rb
file - Open a terminal window and type
rspec
- If all test were passed you will see:
Else you'll see a red message, then check errors and fix them
👤 Bertil Tandayamo
- Github: @bertil291utn
- Twitter: @btandayamo
- Linkedin: Bertil Tandayamo
Contributions, issues, and feature requests are welcome!
Feel free to submit a new suggestion issues page.
Hit the ⭐️ button if you like this project!