Requirements Document - Wednesday, 13th November 1997
Part III Computer Science Project
Department of Electronics & Computer Science
University of Southampton
Introduction:
This document aims to outline some of the functionality requirements for the finished project.
Since starting, it has become clear that this program should behave in a similar way to "Lint", the UNIX C Program Checker. It's job is to examine C source programs detecting bugs and obscurities.
Requirements:
Some of the requirements of this JavaScript Error Checker are outlined below:
- To detect unused variables and functions
- To detect variables that are referenced before they are initialised
- Attempt to report unreachable portions of code
- Have the option to give portability warnings. i.e. some JavaScript code will function correctly using Netscape Navigator, but not using Microsoft Internet Explorer
- To report incorrect syntax.
- To report some common bugs. e.g.
if (a=b) ...