|Release Date:||21st December, 2020|
MaxCop is a work-in-progress attempt at a BlitzMax source code checker.
Quick Installation Guide
- Extract the contents of the MaxCop zip to a directory.
- Optional Add this directory to your PATH variable (how do I do this on Windows?)
maxcop in your project folder will perform a complete scan of any BMX
maxcop also supports passing one or more files or directories.
maxcop src my_file.bmx
maxcop searches the directory of the current file for a
.maxcop.ini file. If one is not found,
maxcop will search upwards until it
finds a rules files, or until the root directory is reached.
Local rules file override any other rules in the project.
Rules can be disabled by including their full name and setting
Rule options can be set in a similar way.
To enable scanning of modules, maxcop needs to configured with the correct module paths. maxcop will look for an ini file in the following places:
maxcop.iniin the maxcop executable directory
An example configuration file looks something like this (replacing the full paths with ones for your system):
[mod_path] win32 = c:\full\path\to\blitzmax\mods\ linux = /full/path/to/blitzmax/mods/ macos = /full/path/to/blitzmax/mods/
This step is only required if you wish to scan modules by name (e.g. running
maxcop brl.basic) instead of with an absolute path.