- Notifications
You must be signed in to change notification settings - Fork 5
Merge from master #665
Conversation
Merge pull request #656 from iKostanOrg/master
suggestion (testing): Test cases for invalid sizes are missing. It would be beneficial to add tests for invalid sizes like rectangular or non-square matrices, such as 2x3 or 3x4. This would ensure more comprehensive test coverage. Depending on where you insert these changes in your parameterized test list (e.g., near the top or in the middle), ensure that the commas and brackets match the existing code structure.
Merge from master
Merge pull request #658 from iKostanOrg/master
Merge from master
Merge from master
Merge pull request #660 from iKostanOrg/master
Merge from master
Merge pull request #662 from iKostanOrg/master
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
Reviewer's Guide by SourceryThis pull request includes several key updates: test refactoring to use parameterized tests for improved readability and coverage, standardization of GitHub Actions workflows, and updates to the README file to accurately reflect solution availability. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ikostan - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding type hints to function signatures for better readability and maintainability.
- It looks like you've added a lot of tests using parameterized, which is great, but consider refactoring common setup code into setUp methods to avoid repetition.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟡 Security: 1 issue found
- 🟡 Testing: 2 issues found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| on: # yamllint disable-line rule:truthy | ||
| push: | ||
| branches: | ||
| - 'kyu3' | ||
| - kyu3 |
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.
🚨 suggestion (security): Explicit permissions reduce token scope.
Adding an explicit permissions block with 'contents: read' and 'pull-requests: read' helps enforce the principle of least privilege.
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - 'kyu3' | |
| - kyu3 | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - kyu3 | |
| permissions: | |
| contents: read | |
| pull-requests: read |
| ([[1, 0, 0, 0, 0, 1, 1, 0, 0, 0], | ||
| [1, 0, 1, 0, 0, 0, 0, 0, 1, 0], | ||
| [1, 0, 1, 0, 1, 1, 1, 0, 1, 0], | ||
| [1, 0, 0, 0, 0, 0, 0, 0, 0, 0], | ||
| [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], | ||
| [0, 0, 0, 0, 1, 1, 1, 0, 0, 0], | ||
| [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], | ||
| [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], | ||
| [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], | ||
| [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], |
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.
suggestion (testing): Suggest adding more test cases for edge cases and invalid inputs.
Consider adding tests for scenarios like all zeros, all ones, invalid ship sizes, ships placed outside the grid, overlapping ships, and other non-standard inputs to ensure comprehensive coverage.
| " \\| \\|", | ||
| "X-----+------+", | ||
| " \\| ", | ||
| " X "]]]) |
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.
suggestion (testing): Add tests for invalid grid formats.
The tests currently focus on valid paths. Consider adding tests with invalid characters, non-rectangular grids, or grids with multiple start/end points to ensure the Walker class handles these scenarios gracefully.
Merge pull request #665 from iKostanOrg/master
Summary by Sourcery
Refactor and enhance test suites for several katas, improving readability, maintainability, and test coverage by using parameterized tests and adding more test cases. Also, improve test logging and reporting with allure steps for better traceability.
Enhancements:
Tests: