Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonievonMann committed Jun 5, 2024
1 parent df60036 commit f4464bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions varats/varats/experiments/vara/blame_ast_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,18 @@ def analyze(self) -> actions.StepResult:
for binary in self.project.binaries:
varats_result_folder = get_varats_result_folder(self.project)

line_filepath = None
ast_filepath = None

for file in os.listdir(varats_result_folder):
if fnmatch.fnmatch(file, "LBA" + '*'):
line_filepath = Path(varats_result_folder / file)
if fnmatch.fnmatch(file, "ASTBA" + '*'):
ast_filepath = Path(varats_result_folder / file)

if not line_filepath or not ast_filepath:
return actions.StepResult.ERROR

line_annotations = BA(line_filepath)
ast_annotations = BA(ast_filepath)

Expand Down Expand Up @@ -255,6 +261,13 @@ class BlameASTExperiment(VersionExperiment, shorthand="BASTE"):
def actions_for_project(
self, project: VProject
) -> tp.MutableSequence[actions.Step]:
"""
Returns the specified steps to run the project(s) specified in the call
in a fixed order.
Args:
project: to analyze
"""

# Generate AST blame report (comparison)
analysis_actions: tp.MutableSequence[actions.Step] = [
Expand Down

0 comments on commit f4464bf

Please sign in to comment.