cisagov / CHIRP

A DFIR tool written in Python.
Creative Commons Zero v1.0 Universal
1.04k stars 90 forks source link

Refactor code quality issues #25

Closed akshgpt7 closed 3 years ago

akshgpt7 commented 3 years ago

🗣 Description

Hey :wave:, I'm a Developer Outreach at DeepSource and ran DeepSource analysis on my fork of the repo. It found some interesting code quality improvements to consider.

This PR fixes a few of the issues detected for you to assess if it is right for you. Happy to provide the tweaks separately otherwise :)

Summary of changes

💭 Motivation and context

There are certain Anti-Patterns, bug risks and performance issues detected in some files (linked above), that can improve the general code quality here.

✅ Checklist

akshgpt7 commented 3 years ago

@DeemOnSecurity DeepSource cannot be run as a GitHub action, however, it can run as a GitHub check (checks that run on a PR). The configuration file for a GitHub check has to be present in the root of the repository. Several other CI tools like TravisCI, codecov etc. have their configs in the root itself. Can you let me know your inclination towards having only GitHub actions?

DeemOnSecurity commented 3 years ago

@DeemOnSecurity DeepSource cannot be run as a GitHub action, however, it can run as a GitHub check (checks that run on a PR). The configuration file for a GitHub check has to be present in the root of the repository. Several other CI tools like TravisCI, codecov etc. have their configs in the root itself. Can you let me know your inclination towards having only GitHub actions?

After extensive conversations internally, we have decided not to merge DeepSource into this repository. Thank you for your submission!