Before submitting, please ensure that you are using the latests code by performing a git pull.
Please include your operating system, your operating system version number (16.04, 10.6, etc), and the dojo install you are using (setup.bash, docker, etc).
Bugs that do not have this information will be closed.
Here are a few things to keep in mind when making changes to DefectDojo.
Please use these test scripts to test your changes. These are the exact scripts we run in our Travis Build.
For changes that require additional settings, settings.dist.py is the file you want to change. Settings.py is created by setup.bash from settings.dist.py
With the nearing deprecation of python 2.7, the conversion to python3 will be executed as smoothly as possible. During this process, DefectDojo will also be upgraded to Django 2.2.1. Going forward, the 'dev' branch will only accept bug fixes, Please instead contribute features / bug fixes to the ‘python3_dev’ branch.
For compatibility reasons, the code in dev branch should be python3.5 compliant.
Logging is configured in settings.dist.py.
Specific logger can be added. For example to activate logs related to the deduplication, change the level from DEBUG to INFO in:
'dojo.specific-loggers.deduplication': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
}
The following are things to consider before submitting a pull request to DefectDojo.
-
Ensure all changes made to the code, packages, etc. are reflected in the setup.bash script and the setup.py script.
-
Make sure that the install is working properly.
-
All tests found in these test scripts should be passing.
-
All submitted code should conform to PEP8 standards.
-
Pull requests should be submitted to the 'dev' or 'legacy-python2.7' branch.
-
In dev branch, the code should be python 3.5 compliant.