Skip to content

Commit efaebee

Browse files
committed
chore: fix pylint message redefined-variable-type
1 parent 6ef2447 commit efaebee

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/macaron/slsa_analyzer/checks/build_as_code_check.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
202202
confidence=Confidence.HIGH,
203203
)
204204
)
205-
overall_res = CheckResultType.PASSED
205+
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
206206
try:
207207
for build_command in ci_service.get_build_tool_commands(
208208
callgraph=ci_info["callgraph"], build_tool=tool
@@ -263,7 +263,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
263263
confidence=confidence,
264264
)
265265
)
266-
overall_res = CheckResultType.PASSED
266+
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
267267
except CallGraphError as error:
268268
logger.debug(error)
269269

@@ -292,7 +292,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
292292
confidence=Confidence.LOW,
293293
)
294294
)
295-
overall_res = CheckResultType.PASSED
295+
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
296296

297297
# The check passing is contingent on at least one passing, if
298298
# one passes treat whole check as passing. We do still need to

src/macaron/slsa_analyzer/checks/build_service_check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
164164
confidence=confidence,
165165
)
166166
)
167-
overall_res = CheckResultType.PASSED
167+
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
168168
except CallGraphError as error:
169169
logger.debug(error)
170170

@@ -193,7 +193,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
193193
confidence=Confidence.LOW,
194194
)
195195
)
196-
overall_res = CheckResultType.PASSED
196+
overall_res = CheckResultType.PASSED # pylint: disable=redefined-variable-type
197197

198198
# The check passing is contingent on at least one passing, if
199199
# one passes treat whole check as passing. We do still need to

src/macaron/slsa_analyzer/checks/provenance_l3_check.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@ class Feedback(NamedTuple):
451451
result_value = CheckResultType.FAILED
452452
else:
453453
result_tables.append(ProvenanceL3VerifiedFacts(confidence=Confidence.HIGH))
454-
result_value = CheckResultType.PASSED
455-
return CheckResultData(result_tables=result_tables, result_type=result_value)
454+
return CheckResultData(result_tables=result_tables, result_type=CheckResultType.PASSED)
456455

457456
return CheckResultData(result_tables=result_tables, result_type=result_value)
458457

0 commit comments

Comments
 (0)