Following scripts
https://github.com/dilawar/iitb_moodle_check_assignment
streamline the process of using
[code-sniffer](
https://github.com/dilawar/sniffer) on single zip file downloaded
from moodle.
git clone -r
https://github.com/dilawar/iitb_moodle_check_assignment
Option -r is rather important. DO NOT miss it.
Download assignments from MOODLE. It is a single zip file. Right? Let's call it assignment.zip. Save it somewhere, let's say ~/Downloads/assignment.zip
Change the config file in this directory to your taste. Check the format of this file here. The file is pretty self-explanatory.
Run ./check_moodle_zip.sh ~/Downloads/assignment.zip in terminal.
Wait and watch.
Collect the results in _result directory. (provided that you have not changed
the database parameter in config file. You are looking for `csv` files which
says which file is copied from which file (student <-> student) and how much.
1.0 is identical, 0.0 is nothing common. If it is more than 0.55, usually a
pretty good copy case.
best,
Dilawar
NCBS Bangalore