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:
- Lines be less than 80-characters long.
- Tab characters should not be used (USE SPACES).
- Your files should compile.
- Clone repository
git clone https://github.com/SpaceKatt/CSS343_ValidatorScript.git
- Assign execute permission to script (if they haven't been set already)
chmod +x bin/validator
- Add the
bin
directory to$PATH
.- To do this manually, once per terminal session:
- Navigate to the root directory of this repo.
- Use the command:
export PATH=$PATH:$(pwd)/bin
- To permanently add this to your
$PATH
:- Navigate to the root directory of this repo.
- Use the command:
echo "export PATH=\$PATH:$(pwd)/bin" >> ~/.bashrc
- You can remove it later by opening
~/.bashrc
in your favorite text editor.
- You can remove it later by opening
- To do this manually, once per terminal session:
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 |