-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
olution #1943
base: master
Are you sure you want to change the base?
olution #1943
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on implementing the required functions and meeting the task requirements! 🎉 While there are some minor formatting issues with the dictionary keys and values that could lead to syntax errors, these do not significantly impact the functionality of your code. Please ensure that each key-value pair in your dictionaries is properly separated by commas to avoid any potential issues. Keep up the good work and continue refining your coding skills! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
return {"line": error | ||
["line_number"] | ||
, "column": error | ||
["column_number"] | ||
, "message": error | ||
["text"] | ||
, "name": error | ||
["code"] | ||
, "source": "flake8"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dictionary keys and values in the format_linter_error
function are not formatted correctly. Ensure that each key-value pair is separated by a comma, and the dictionary is properly structured. For example, the line should be return {"line": error["line_number"], "column": error["column_number"], ...}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Перевірив - кожна пара ключ-значення розділені комою. Структурував таким чином, щоб зменшити довжину рядка - flake8 app показував помилку. Виніс усі значення пар в [ ] в окремі рядки.
return {"errors": | ||
[format_linter_error(error) for error in errors] | ||
, "path": file_path, "status": "passed" | ||
if errors == [] else "failed"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the previous function, ensure that the dictionary in format_single_linter_file
is properly formatted with commas separating each key-value pair. The current structure may lead to syntax errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Перевірив - усі коми на місці.
No description provided.