Git Product home page Git Product logo

linters-project's Introduction

Linters-Project

Project Description

This a Ruby Linter Project. It flag the following errors in any ruby code:

  • check Trailing white errors
  • check empty line spaces
  • check end of block
  • check indentation

Project Files

  • The 'bin' folder: This consist of the main.rb file. The main is the executable file that controls lint logic.

  • The 'lib' folder: This consists of two files which include: file_reading.rb: It consist of the class for reading through a file linters.rb: This class checks for mistakes within the code. Different methods are used to do this checks.

  • rspec Folder: This consist of the linters_spec.rb. It is primarily for writing unit tests to ensure all the methods pass

  • test.rb This short program is used to test our small linting program and see how it responds when a file is passed for error checks.

Built With

  • Ruby

How to Get One Running

  • Step 1: clone on your local machine
  • Step 2: Specify the path to the file you want to check by changing the value of file_path in main.rb. Note: The ruby file will run only if the path given is correct
  • Step 3: You have done step and step? Great! All you have to do now is to run this command bin/main.rb

Lint Errors

How to Run the Tests

  • Install Rspec by typing gem install rspec in your terminal.
  • The Rspec unit tests reside in linters_spec.rb file in the spec folder.
  • To run the test cases, type rspec spec/linters_spec.rb in your terminal.
  • You want to play around with the test cases? Be my guest in the spec/linters_spec.rb file

rspec

๐Ÿ‘ค Author

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Micronauts

๐Ÿ“ License

This project is MIT licensed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.