Git Product home page Git Product logo

css343_validatorscript's Introduction

CSS343 Validator Script

The purpose of this script is to validate a set of files against a set of criteria. CSS343 mandates that submitted files meet the following criteria:

  1. Lines be less than 80-characters long.
  2. Tab characters should not be used (USE SPACES).
  3. Your files should compile.

Setup

  1. Clone repository
    • git clone https://github.com/SpaceKatt/CSS343_ValidatorScript.git
  2. Assign execute permission to script (if they haven't been set already)
    • chmod +x bin/validator
  3. Add the bin directory to $PATH.
    • To do this manually, once per terminal session:
      1. Navigate to the root directory of this repo.
      2. Use the command: export PATH=$PATH:$(pwd)/bin
    • To permanently add this to your $PATH:
      1. Navigate to the root directory of this repo.
      2. Use the command: echo "export PATH=\$PATH:$(pwd)/bin" >> ~/.bashrc
        • You can remove it later by opening ~/.bashrc in your favorite text editor.

Use

Run validator in the working directory containing .h and .cpp files.

Argument Description Example
-m Minimal output mode. Only shows where 80-char and tab character violations are. g++ will still display errors and warnings, but will also display a message indicating pass or fail status. validator -m

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.