Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Fix some bug risks and code quality issues #312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanketsaurav
Copy link

Changes:

  • In gatherers/gathererabc.py, utils/scan_utils.py and utils/utils.py, fix dangerous default argument (mutables) from being passed in methods
  • In scanners/sslyze.py, fix an instance of unnecessary len() call being used to check for emptiness of an iterable
  • In gatherers/censys.py, gatherers/rdns.py and utils/scan_utils.py, make logging calls to lazily evaluate strings

This PR also adds .deepsource.toml configuration file to run Continuous Quality analysis on the repo with DeepSource. Upon enabling DeepSource, quality analysis will be run on every PR to detect 500+ types of problems in the changes — including bug risks, anti-patterns, security vulnerabilities, etc.

DeepSource is a free to use for open-source projects, and is used by teams at NASA, Uber, Slack among many others.

To enable DeepSource analysis after merging this PR, please follow these steps:

  1. Signup on DeepSource with your GitHub account and grant access to this repo.
  2. Activate analysis on this repo here.

You can also look at the docs for more details. Do let me know if I can be of any help!

Cheers,

Sanket
Founder, DeepSource

Changes:
 - In `gatherers/gathererabc.py`, `utils/scan_utils.py` and `utils/utils.py`, fix dangerous default argument (mutables) from being passed in methods
 - In `scanners/sslyze.py`, fix an instance of unnecessary `len()` call being used to check for emptiness of an iterable
 - In `gatherers/censys.py`, `gatherers/rdns.py` and `utils/scan_utils.py`, make logging calls to lazily evaluate strings

Also added a .deepsource.toml configuration file to run Continuous Quality analysis on the repo.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant