This is a Javascript Mini Linter built using OOP in Ruby.
Javascript Mini Linter can scan and report common errors like:
- Redundant indentation;
- Extra space at the end of a line;
- Stylistic naming of functions (CamelCase over snake_case);
- Missing parentheses in function declaration;
- Missing opening/closing curly braces in function declaration;
- Ruby
- VS code
- Linters (RuboCop)
To get a local copy up and running follow these simple example steps.
- On the project GitHub page, navigate to the main page of the repository this page.
- Under the repository name, locate and click on a green button named
Code
. - Copy the project URL as displayed.
- If you're running Windows Operating System, open your command prompt. On Linux, Open your terminal.
- Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
- Type
git clone
, and then paste the URL you copied in Step 3.
$ git clone https://github.com/SarvarKh/Customized-Linter
Press Enter key - Press Enter. Your local copy will be created.
Please Note that you must have Git installed on your PC, this can be done here.
- Follow Getting Started section to download the game
- Open/navigate to the project directory in your terminal
- Type main.rb and include the file's location and its title that need to be scanned for Linter errors in your terminal.
For instance from your root directory:
ruby ./bin/main.rb ./samples/javascript_test_01.js
. - You must see Linter errors in your terminal, like shown below:
- Follow Getting Started section to download the game
- Open/navigate to the project directory in your terminal
- Run rspec in your terminal to see if the test cases passes your RSpec test You shall see number of test cases and number of failures.
- Open the link Introduction to RSpec if you want to learn more about RSpec.
👤 Sarvar Khalimov
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
This project is MIT licensed.