Scinspector (Source Code Inspector) is script for searching chosen mistakes in source codes written in C and C++.
This script is one of the result of my bachelor thesis - Analyzing most common programming mistakes of C/C++ students
For more information about controlling mistakes and this script read thesis (https://is.muni.cz/th/433826/fi_b/)
You need to install command line version of:
./scinpector -c|-cpp directory [options...]
o switch -c resp. -cpp for control of source codes in C resp. C++
o directory - input directory with all source codes
o options - optional switches (more information in MANPAGE)
Input directory must have this structure:
In first level, there are directories of students (001,002), second level contains directories with all homework (hw01,hw02,hw01), third level contains directories with all submitted homework (221005_nanecisto,135004_naostro,...), these directories contain files with controlled source codes.
Name of the directory with submitted homework must be in format 'id_naostro' resp. 'id_nanecisto'
For fast control of your source codes create directory with this path: directory/yourName/projectName/firstVersion_naostro/
Insert your source codes into directory firstVersion_naostro.
Output of this script consists of 2 files.
o results.txt - contains:
• Controlling semester
• Mark of the mistake
• Mode of submitted homework
• Mark of the student
• Mark of the homework
• Name of the directory with submitted homework
• Name of the file containing mistake
• Number of line, where the mistake occurred
o results_stats.txt - contains:
• Mark of the mistake
• Total number of occurrences of the mistake.
Information are from the absolute path of file where mistake occurred, due to this fact structure of input directory is important.
Example of output file - results.txt
Example of output file - results_stats.txt
For manual page with all optional possibilities use this command: ./scinpector --help
Control of all homework submitted in 'nanecito' mode in C++ of student 003, of homework hw03 in directory pb161_spring17
./scinspector -cpp pb161_spring17 -s=003 -hw=hw03 -n
Control of all homework submitted in last 'naostro' mode in C++ of student 003 in directory pb071_spring17
./scinspector -c pb071_spring17 -s=003 -lo
Control of all homework submitted in 'naostro' mode in C++ of all students, of homework hw04 in directory pb161_autumn17,
values in output file will be separated by dash
./scinspector -cpp pb161_autumn17 -hw=hw04 -d='-' -o
Control of all submitted homework in C, of all students in directory pb071_autumn17
./scinspector -c pb071_autumn17
Output form of scinspector:
Copyright  [David Horov]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Your can contact author using email - email@example.com