-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add filters and sorting on date of check in Report #106
Conversation
@atigiti Thank you for your PR. I tested it and like the functionality. In the actions , you can see that some checks failed (you can also see that in the PR). Since these are minor issues (coding guidelines, phpstan functional tests), I already pushed some fixes. In the future you can perform the checks locally yourself, and in the case of coding guidelines (CGL) even fix them locally. Please see the file CONTRIBUTING.md for more info. Also, I adhere to TYPO3 core best practices as much as possible, core also enforces CGL checks and uses phpstan. Example: phpstan complains about this but I also prefer to add type hints as much as possible, e.g.
I will give the patch a more thorough review next, the above are more general things. |
Thank you for your response, I will start to run the local tests before the PR, thanks also for changing the getBrokenLinks signature! |
i'm trying also to add a new Tab in the info module, for Manage the exclusions links. |
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 change, I especially like the possibility to filter for URL. I tested and it works if sorting is changed and also works with pagination.
I made some comments. If you can get these fixed, that would be great.
I already mentioned the phpstan, CGL, test things - that might be something to do in future PR.
i have a question please, how can use the phpstan in typo3 project ??? |
@atigiti It depends - if you want to use it to test brofix or set it up for your project normally, you can do this (after you setup the phpstan.neon):
For brofix however, the test suite is setup to run via You must first do the equivalent of composer install: In the brofix directory:
After that, you can call phpstan with
Sorry, if this seems a bit complicated. I may still change things in the future. You can also look here:
You can also come to the Slack workspace and write me a direct message to |
Thank you for your help! |
in my last commit, i tried to fix all point in the code that you mentioned after your code check, i also run the tests and phpstan for code review, i hope thaht will be helpful! |
@atigiti I pushed a fix for the CGL issue The pipepline has run executing the tests: https://github.com/sypets/brofix/actions/runs/1341403243 see Actions You can fix coding guideline issues locally: see https://github.com/sypets/brofix/blob/master/CONTRIBUTING.md These commands are still work-in-progress, will optimize and then update CONTRIBUTING.md |
Because of changes in signature of function getBrokenLinks(), the functional tests must be adapted.
0acb86d
to
2c6ebc4
Compare
I tried to add filters functionality and also the sorting on date of check in Report