Open cmlccie opened 5 years ago
Additionally... the mixed snake-case/upper-camel-case functions naming isn't good, recommended names would be as follows:
readIocsFile() --> read_ioc_file()
get_FromThreatGrid() --> get_from_threat_grid()
find_Obervables() --> find_observables()
writer_file() --> write_file()
There are also bugs in the mission code, like attempting to import env_lab
before the path system path has been updated (sys.path.insert(0, str(repository_root))
) to enable python to locate the python files in the repository root.
...and why are we updating the path twice?
sys.path.insert(0, str(repository_root))
sys.path.insert(0, str(repository_root))
The scripts that were added after the last update (
intro-threatgrid/maldomain.py
andintro-threatgrid/mission/thgrid_mission.py
) need consistency refactoring. They don't follow the code styling and structuring that were to be made consistent in the last refactoring effort.Flake8 Report:
Also, the last code refactoring updates haven't made it through to the lab instructions which still reference the old scripts: