Skip to content

Commit

Permalink
SOLUTION!
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleit1 committed Nov 26, 2024
1 parent 0be8357 commit 9f45e48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
def format_linter_error(error: dict) -> dict:
# write your code here
pass
return {
"line": error["line_number"],
"column": error["column_number"],
Expand All @@ -9,6 +11,8 @@ def format_linter_error(error: dict) -> dict:


def format_single_linter_file(file_path: str, errors: list) -> dict:
# write your code here
pass
return {
"path": file_path,
"status": "failed" if errors else "passed",
Expand All @@ -18,6 +22,8 @@ def format_single_linter_file(file_path: str, errors: list) -> dict:


def format_linter_report(linter_report: dict) -> list:
# write your code here
pass
return [
format_single_linter_file(file_path,file_errors)
for file_path,file_errors in linter_report.items()
Expand Down

0 comments on commit 9f45e48

Please sign in to comment.