Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

flake8-bugbear: resolve B007 violation

Brendan Coles2a080c4d8db9
diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.py
index e4484ac7..68c985fb 100644
--- a/modules/sfp_dnsresolve.py
+++ b/modules/sfp_dnsresolve.py
@@ -238,7 +238,8 @@ class sfp_dnsresolve(SpiderFootPlugin):
addrs = self.sf.resolveIP(ipaddr)
if addrs:
self.sf.debug(f"Found a reversed hostname from {ipaddr} ({addrs})")
- for addr in addrs:
+ # TODO: review why addr is not used in this loop. should `ipaddr` instead be `addr` ?
+ for _addr in addrs:
# Generate an event for the IP, then
# let the handling by this module take
# care of follow-up processing.
diff --git a/setup.cfg b/setup.cfg
index 371ee2d7..465364c5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,7 +2,7 @@
flake8-max-line-length = 120
max-complexity = 100
select = C,E,F,W,B
-ignore = E501 W503 B006 B007
+ignore = E501 W503 B006
per-file-ignores =
spiderfoot/__init__.py:F401
sfcli.py:W605