Closed Amndeep7 closed 3 years ago
Besides the example files thing and any other comments from the reviewers, all that should be left is to rebase from current master to get rid of the conflicts which one would've thought would've been auto-resolvable considering that it's just more text in the list of text of that exact same format but git's throwing a fit regardless.
Edit: oh also, need to run the linter against it.
* Replace the examples with examples that are not so big
So the reason that the scoutsuite_sample.json is so big (20MB) is cause it has all the newlines/formatting put into it due to being prettified instead of all being on one line. This file as useful as a development tool but it's not necessary to store in the repo. Furthermore, it's easily reproducible when required (delete the first line and then run it through json formatter of choice).
If I delete that file, is it fine to leave the file we got directly from scoutsuite (4.5MB)? Still an order of magnitude more than the others (nikto/zap) but imo it's useful to have a complete file for testing/development purposes, and it's far less than what it was originally.
I think removing the 20MB file is a great start. I also don't think anyone has tried to get a smaller sample.
Looks good. Still looking for a resolution on the 4M sample size & rebase.
Drop this sample. It is not an appropriate Sample and takes 20MB. Only the 4MB .js sample is needed. https://github.com/mitre/heimdall_tools/blob/scoutsuite_mapper/sample_jsons/scoutsuite_mapper/sample_input_jsons/scoutsuite_sample.json
Deleted the files in history and then added the minified versions in af27e72
Only thing blocking this from being merged is rubocop complaining about the spinner for some reason even though that code is exactly the same as in all the other mappers and it saying that the to_hdf function has too many branches which I always thought was a pretty dumb rule cause stuff happens to be pretty darn conditional.
@Bialogs @rbclark any suggestions on how to get it to pass rubocop?
is it possible to merge and release by COB on this please?
So the reason that the scoutsuite_sample.json is so big (20MB) is cause it has all the newlines/formatting put into it due to being prettified instead of all being on one line. This file as useful as a development tool but it's not necessary to store in the repo. Furthermore, it's easily reproducible when required (delete the first line and then run it through json formatter of choice).
If I delete that file, is it fine to leave the file we got directly from scoutsuite (4.5MB)? Still an order of magnitude more than the others (nikto/zap) but imo it's useful to have a complete file for testing/development purposes, and it's far less than what it was originally.