From 427a29c2b66a9c700057a309256d46c719ae623d Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 16 Aug 2022 16:09:59 +0200 Subject: [PATCH] Pylint notes to ignore some lines too long --- mvt/android/modules/bugreport/accessibility.py | 2 +- mvt/android/modules/bugreport/activities.py | 2 +- mvt/android/modules/bugreport/appops.py | 2 +- mvt/android/modules/bugreport/dbinfo.py | 2 +- mvt/android/modules/bugreport/receivers.py | 2 +- mvt/android/parsers/dumpsys.py | 4 ++-- mvt/ios/modules/fs/webkit_safariviewservice.py | 2 +- mvt/ios/modules/mixed/chrome_history.py | 2 +- mvt/ios/modules/mixed/interactionc.py | 15 ++++++++++----- .../mixed/webkit_resource_load_statistics.py | 6 +++--- .../modules/mixed/webkit_session_resource_log.py | 8 ++++---- 11 files changed, 26 insertions(+), 21 deletions(-) diff --git a/mvt/android/modules/bugreport/accessibility.py b/mvt/android/modules/bugreport/accessibility.py index c9ec260..efb1194 100644 --- a/mvt/android/modules/bugreport/accessibility.py +++ b/mvt/android/modules/bugreport/accessibility.py @@ -55,7 +55,7 @@ class Accessibility(BugReportModule): if not in_accessibility: continue - if line.strip().startswith("------------------------------------------------------------------------------"): + if line.strip().startswith("------------------------------------------------------------------------------"): # pylint: disable=line-too-long break lines.append(line) diff --git a/mvt/android/modules/bugreport/activities.py b/mvt/android/modules/bugreport/activities.py index 21d99c0..8880230 100644 --- a/mvt/android/modules/bugreport/activities.py +++ b/mvt/android/modules/bugreport/activities.py @@ -58,7 +58,7 @@ class Activities(BugReportModule): if not in_package: continue - if line.strip().startswith("------------------------------------------------------------------------------"): + if line.strip().startswith("------------------------------------------------------------------------------"): # pylint: disable=line-too-long break lines.append(line) diff --git a/mvt/android/modules/bugreport/appops.py b/mvt/android/modules/bugreport/appops.py index 8bfd5bd..cc00396 100644 --- a/mvt/android/modules/bugreport/appops.py +++ b/mvt/android/modules/bugreport/appops.py @@ -77,7 +77,7 @@ class Appops(BugReportModule): if not in_appops: continue - if line.strip().startswith("------------------------------------------------------------------------------"): + if line.strip().startswith("------------------------------------------------------------------------------"): # pylint: disable=line-too-long break lines.append(line) diff --git a/mvt/android/modules/bugreport/dbinfo.py b/mvt/android/modules/bugreport/dbinfo.py index b1d3b09..976677c 100644 --- a/mvt/android/modules/bugreport/dbinfo.py +++ b/mvt/android/modules/bugreport/dbinfo.py @@ -59,7 +59,7 @@ class DBInfo(BugReportModule): if not in_dbinfo: continue - if line.strip().startswith("------------------------------------------------------------------------------"): + if line.strip().startswith("------------------------------------------------------------------------------"): # pylint: disable=line-too-long break lines.append(line) diff --git a/mvt/android/modules/bugreport/receivers.py b/mvt/android/modules/bugreport/receivers.py index 2dabc65..43c5dba 100644 --- a/mvt/android/modules/bugreport/receivers.py +++ b/mvt/android/modules/bugreport/receivers.py @@ -81,7 +81,7 @@ class Receivers(BugReportModule): if not in_receivers: continue - if line.strip().startswith("------------------------------------------------------------------------------"): + if line.strip().startswith("------------------------------------------------------------------------------"): # pylint: disable=line-too-long break lines.append(line) diff --git a/mvt/android/parsers/dumpsys.py b/mvt/android/parsers/dumpsys.py index deea1ab..61eb9d6 100644 --- a/mvt/android/parsers/dumpsys.py +++ b/mvt/android/parsers/dumpsys.py @@ -186,8 +186,8 @@ def parse_dumpsys_battery_history(output: str) -> list: def parse_dumpsys_dbinfo(output: str) -> list: results = [] - rxp = re.compile(r'.*\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3})\].*\[Pid:\((\d+)\)\](\w+).*sql\=\"(.+?)\"') - rxp_no_pid = re.compile(r'.*\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3})\][ ]{1}(\w+).*sql\=\"(.+?)\"') + rxp = re.compile(r'.*\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3})\].*\[Pid:\((\d+)\)\](\w+).*sql\=\"(.+?)\"') # pylint: disable=line-too-long + rxp_no_pid = re.compile(r'.*\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3})\][ ]{1}(\w+).*sql\=\"(.+?)\"') # pylint: disable=line-too-long pool = None in_operations = False diff --git a/mvt/ios/modules/fs/webkit_safariviewservice.py b/mvt/ios/modules/fs/webkit_safariviewservice.py index e5351dc..ce5aa1e 100644 --- a/mvt/ios/modules/fs/webkit_safariviewservice.py +++ b/mvt/ios/modules/fs/webkit_safariviewservice.py @@ -9,7 +9,7 @@ from typing import Optional from .webkit_base import WebkitBase WEBKIT_SAFARIVIEWSERVICE_ROOT_PATHS = [ - "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/", + "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/", # pylint: disable=line-too-long ] diff --git a/mvt/ios/modules/mixed/chrome_history.py b/mvt/ios/modules/mixed/chrome_history.py index 3a4cb29..3acf83a 100644 --- a/mvt/ios/modules/mixed/chrome_history.py +++ b/mvt/ios/modules/mixed/chrome_history.py @@ -17,7 +17,7 @@ CHROME_HISTORY_BACKUP_IDS = [ ] # TODO: Confirm Chrome database path. CHROME_HISTORY_ROOT_PATHS = [ - "private/var/mobile/Containers/Data/Application/*/Library/Application Support/Google/Chrome/Default/History", + "private/var/mobile/Containers/Data/Application/*/Library/Application Support/Google/Chrome/Default/History", # pylint: disable=line-too-long ] diff --git a/mvt/ios/modules/mixed/interactionc.py b/mvt/ios/modules/mixed/interactionc.py index 7bb58a8..e63b28f 100644 --- a/mvt/ios/modules/mixed/interactionc.py +++ b/mvt/ios/modules/mixed/interactionc.py @@ -129,11 +129,16 @@ class InteractionC(IOSExtraction): ZINTERACTIONS.ZDERIVEDINTENTIDENTIFIER, ZINTERACTIONS.Z_PK FROM ZINTERACTIONS - LEFT JOIN ZCONTACTS ON ZINTERACTIONS.ZSENDER = ZCONTACTS.Z_PK - LEFT JOIN Z_1INTERACTIONS ON ZINTERACTIONS.Z_PK == Z_1INTERACTIONS.Z_3INTERACTIONS - LEFT JOIN ZATTACHMENT ON Z_1INTERACTIONS.Z_1ATTACHMENTS == ZATTACHMENT.Z_PK - LEFT JOIN Z_2INTERACTIONRECIPIENT ON ZINTERACTIONS.Z_PK == Z_2INTERACTIONRECIPIENT.Z_3INTERACTIONRECIPIENT - LEFT JOIN ZCONTACTS RECEIPIENTCONACT ON Z_2INTERACTIONRECIPIENT.Z_2RECIPIENTS == RECEIPIENTCONACT.Z_PK; + LEFT JOIN ZCONTACTS + ON ZINTERACTIONS.ZSENDER = ZCONTACTS.Z_PK + LEFT JOIN Z_1INTERACTIONS + ON ZINTERACTIONS.Z_PK == Z_1INTERACTIONS.Z_3INTERACTIONS + LEFT JOIN ZATTACHMENT + ON Z_1INTERACTIONS.Z_1ATTACHMENTS == ZATTACHMENT.Z_PK + LEFT JOIN Z_2INTERACTIONRECIPIENT + ON ZINTERACTIONS.Z_PK == Z_2INTERACTIONRECIPIENT.Z_3INTERACTIONRECIPIENT + LEFT JOIN ZCONTACTS RECEIPIENTCONACT + ON Z_2INTERACTIONRECIPIENT.Z_2RECIPIENTS == RECEIPIENTCONACT.Z_PK; """) # names = [description[0] for description in cur.description] diff --git a/mvt/ios/modules/mixed/webkit_resource_load_statistics.py b/mvt/ios/modules/mixed/webkit_resource_load_statistics.py index 430b838..9205581 100644 --- a/mvt/ios/modules/mixed/webkit_resource_load_statistics.py +++ b/mvt/ios/modules/mixed/webkit_resource_load_statistics.py @@ -12,10 +12,10 @@ from mvt.common.utils import convert_unix_to_iso from ..base import IOSExtraction -WEBKIT_RESOURCELOADSTATICS_BACKUP_RELPATH = "Library/WebKit/WebsiteData/ResourceLoadStatistics/observations.db" +WEBKIT_RESOURCELOADSTATICS_BACKUP_RELPATH = "Library/WebKit/WebsiteData/ResourceLoadStatistics/observations.db" # pylint: disable=line-too-long WEBKIT_RESOURCELOADSTATICS_ROOT_PATHS = [ - "private/var/mobile/Containers/Data/Application/*/Library/WebKit/WebsiteData/ResourceLoadStatistics/observations.db", - "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/observations.db", + "private/var/mobile/Containers/Data/Application/*/Library/WebKit/WebsiteData/ResourceLoadStatistics/observations.db", # pylint: disable=line-too-long + "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/observations.db", # pylint: disable=line-too-long ] diff --git a/mvt/ios/modules/mixed/webkit_session_resource_log.py b/mvt/ios/modules/mixed/webkit_session_resource_log.py index dec3e34..4c82b70 100644 --- a/mvt/ios/modules/mixed/webkit_session_resource_log.py +++ b/mvt/ios/modules/mixed/webkit_session_resource_log.py @@ -15,11 +15,11 @@ from ..base import IOSExtraction WEBKIT_SESSION_RESOURCE_LOG_BACKUP_IDS = [ "a500ee38053454a02e990957be8a251935e28d3f", ] -WEBKIT_SESSION_RESOURCE_LOG_BACKUP_RELPATH = "Library/WebKit/WebsiteData/ResourceLoadStatistics/full_browsing_session_resourceLog.plist" +WEBKIT_SESSION_RESOURCE_LOG_BACKUP_RELPATH = "Library/WebKit/WebsiteData/ResourceLoadStatistics/full_browsing_session_resourceLog.plist" # pylint: disable=line-too-long WEBKIT_SESSION_RESOURCE_LOG_ROOT_PATHS = [ - "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/full_browsing_session_resourceLog.plist", - "private/var/mobile/Containers/Data/Application/*/Library/WebKit/WebsiteData/ResourceLoadStatistics/full_browsing_session_resourceLog.plist", - "private/var/mobile/Library/WebClips/*/Storage/full_browsing_session_resourceLog.plist", + "private/var/mobile/Containers/Data/Application/*/SystemData/com.apple.SafariViewService/Library/WebKit/WebsiteData/full_browsing_session_resourceLog.plist", # pylint: disable=line-too-long + "private/var/mobile/Containers/Data/Application/*/Library/WebKit/WebsiteData/ResourceLoadStatistics/full_browsing_session_resourceLog.plist", # pylint: disable=line-too-long + "private/var/mobile/Library/WebClips/*/Storage/full_browsing_session_resourceLog.plist", # pylint: disable=line-too-long ]