Skip to content

Commit a6f1ff8

Browse files
authored
Add Linear tickets to all TODOs (#419)
1 parent 2be5cc9 commit a6f1ff8

File tree

14 files changed

+17
-246
lines changed

14 files changed

+17
-246
lines changed

src/launchpad/api/update_api_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AppleAppInfo(BaseModel):
4646
main_binary_uuid: Optional[str] = None
4747
profile_expiration_date: Optional[str] = None
4848
certificate_expiration_date: Optional[str] = None
49-
# TODO: add "date_built" field once exposed in 'AppleAppInfo'
49+
# TODO(EME-423): add "date_built" field once exposed in 'AppleAppInfo'
5050

5151

5252
class UpdateData(BaseModel):
@@ -63,4 +63,4 @@ def serialize_datetime(self, dt: datetime | None) -> str | None:
6363
"""Serialize datetime objects to ISO format strings for JSON compatibility."""
6464
return dt.isoformat() if dt is not None else None
6565

66-
# TODO: add "date_built" and custom android fields
66+
# TODO(EME-423): add "date_built" and custom android fields

src/launchpad/artifact_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _do_distribution(
252252
with apk.raw_file() as f:
253253
self._sentry_client.upload_installable_app(organization_id, project_id, artifact_id, f)
254254
else:
255-
# TODO: Should call _update_artifact_error here once we
255+
# TODO(EME-422): Should call _update_artifact_error here once we
256256
# support setting errors just for build.
257257
logger.error(f"BUILD_DISTRIBUTION failed for {artifact_id} (project: {project_id}, org: {organization_id})")
258258

@@ -429,7 +429,7 @@ def _get_artifact_type(artifact: Artifact) -> ArtifactType:
429429

430430
apple_app_info = None
431431
if isinstance(app_info, AppleAppInfo):
432-
# TODO: add "date_built" field once exposed in 'AppleAppInfo'
432+
# TODO(EME-423): add "date_built" field once exposed in 'AppleAppInfo'
433433
apple_app_info = AppleAppInfoModel(
434434
is_simulator=app_info.is_simulator,
435435
codesigning_type=app_info.codesigning_type,
@@ -440,7 +440,7 @@ def _get_artifact_type(artifact: Artifact) -> ArtifactType:
440440
profile_expiration_date=app_info.profile_expiration_date,
441441
certificate_expiration_date=app_info.certificate_expiration_date,
442442
)
443-
# TODO: add "date_built" and custom android fields
443+
# TODO(EME-423): add "date_built" and custom android fields
444444

445445
update_data = UpdateData(
446446
app_name=app_info.name,

src/launchpad/parsers/android/dex/dex_method_parser.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
from launchpad.parsers.android.dex.dex_mapping import DexMapping
2-
from launchpad.parsers.android.dex.types import (
3-
AccessFlag,
4-
Annotation,
5-
DexFileHeader,
6-
Method,
7-
Prototype,
8-
)
2+
from launchpad.parsers.android.dex.types import AccessFlag, Annotation, DexFileHeader, Method, Prototype
93
from launchpad.parsers.buffer_wrapper import BufferWrapper
104

115

@@ -59,7 +53,7 @@ def parse(self) -> Method:
5953
prototype=self._prototype,
6054
access_flags=self._access_flags,
6155
annotations=self._annotations,
62-
parameters=[], # TODO: Implement when needed in future
56+
parameters=[], # TODO(EME-424): Implement when needed in future
6357
)
6458

6559
def get_size(self) -> int:

src/launchpad/parsers/apple/macho_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_header_size(self) -> int:
7272
# Mach-O header is typically at the beginning
7373
# Size varies by architecture but 32 bytes is common for 64-bit
7474
header_size = 32
75-
# TODO: implement proper header size, seems hard to do with LIEF
75+
# TODO(EME-425): implement proper header size, seems hard to do with LIEF
7676
return header_size
7777

7878
@sentry_sdk.trace
@@ -290,7 +290,7 @@ def find_symbol(addr: int) -> lief.Symbol | None:
290290
if sym:
291291
symbols.append(sym)
292292
else:
293-
# TODO: there are some addresses that are not in the symbols list
293+
# TODO(EME-426): there are some addresses that are not in the symbols list
294294
# but are present in the FUNCTION_STARTS section. for now we can just
295295
# add a placeholder symbol name.
296296
symbols.append(f"__mod_init_func_{count}")

src/launchpad/size/analyzers/apple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def analyze(self, artifact: AppleArtifact) -> AppleAnalysisResults:
231231
alternate_icons_optimization=self._generate_insight_with_tracing(
232232
AlternateIconsOptimizationInsight, insights_input, "alternate_icons_optimization"
233233
),
234-
# TODO: enable audio/video compression insights once we handle ffmpeg
234+
# TODO(EME-427): enable audio/video compression insights once we handle ffmpeg
235235
# audio_compression=self._generate_insight_with_tracing(
236236
# AudioCompressionInsight, insights_input, "audio_compression"
237237
# ),
@@ -349,7 +349,7 @@ def _get_profile_type(self, profile_data: dict[str, Any]) -> Tuple[str, str]:
349349
# Check certificate type
350350
developer_certs = profile_data.get("DeveloperCertificates", [])
351351
if developer_certs:
352-
# TODO: Parse DER certificate to check if it's a development certificate
352+
# TODO(EME-428): Parse DER certificate to check if it's a development certificate
353353
# For now, default to development if we have a certificate
354354
return "development", profile_name
355355

src/launchpad/size/hermes/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def make_hermes_reports(file_path: Path) -> Dict[str, HermesReport]:
1616
for hermes_file in hermes_files:
1717
report = make_hermes_report(hermes_file)
1818
if report is not None:
19-
# TODO: Add absolute path support to FileInfo so we can use the absolute path here
19+
# TODO(EME-429): Add absolute path support to FileInfo so we can use the absolute path here
2020
reports[str(hermes_file.relative_to(file_path))] = report
2121
return reports
2222

src/launchpad/size/insights/android/image_optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate(self, input: InsightsInput) -> WebPOptimizationInsightResult | None
2525
if file_info.full_path.name.endswith(".9.png"):
2626
continue
2727

28-
# TODO: verify that the file is actually an image
28+
# TODO(EME-430): verify that the file is actually an image
2929

3030
original_size = get_file_size(Path(file_info.full_path))
3131
with tempfile.NamedTemporaryFile(suffix=".webp", delete=True) as tmp_webp:

src/launchpad/size/insights/apple/localized_strings_minify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def generate(self, input: InsightsInput) -> LocalizedStringCommentsInsightResult
5050
total_savings = 0
5151

5252
for file_info in input.file_analysis.files:
53-
# TODO: look into InfoPlist.strings
53+
# TODO(EME-431): look into InfoPlist.strings
5454
if not file_info.path.endswith(".strings") or file_info.path.endswith("InfoPlist.strings"):
5555
continue
5656

src/launchpad/size/models/apple.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ class MachOBinaryAnalysis:
125125
segments: List[SegmentInfo]
126126
load_commands: List[LoadCommandInfo]
127127
swift_metadata: SwiftMetadata | None = None
128-
# TODO(telkins): try to remove the lief types from this model
129-
# it's only working by coincidence right now
128+
# TODO(EME-432): remove lief types from this model so it's safe to use after the binary is closed
130129
symbol_info: SymbolInfo | None = None
131130
header_size: int = 0
132131
dyld_info: DyldInfo | None = None

src/launchpad/size/treemap/treemap_builder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def __init__(
3939
filesystem_block_size: int | None = None,
4040
# Optional presentation tweak: collapse one-child directory chains (off by default)
4141
compress_paths: bool = False,
42-
# TODO: Move iOS-specific logic out of constructor
4342
binary_analysis_map: Dict[str, MachOBinaryAnalysis] | None = None,
4443
class_definitions: list[ClassDefinition] | None = None,
4544
hermes_reports: Dict[str, HermesReport] | None = None,

0 commit comments

Comments
 (0)