Problem/Motivation
Docblocks in Views are pretty subpar, while good documentation is key, if not prerequisite for actual code cleanups, bugfixes and many other tasks.
Recognizing that many efforts in the past stalled, but also that Views currently doesn't see too many changes in code and that this finally needs to be done: let's get started! Of course, while making sure the scope is clear, not stretched, and the resulting patches are reviewable.
Steps to reproduce
Proposed resolution
- Start with fixing docblocks in Views filter plugins.
- correct existing docblocks in regard to coding standards
- add missing docblocks or {@inheritdoc}
- add undocumented parameters and typehints
- add undocumented return types
- don't change any code
Remaining tasks
Split this into two patches one with just the @inheritdoc changes and the other with everything else.
Reroll patch
Review
Commit
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
panchoA first step, not yet ready for review. We should probably start with the generic base classes and interfaces in a separate issue.
Comment #6
andypostIt looks duplicate of #2066451: In FilterPluginBase Rename Views properties to core standards
Comment #10
quietone commentedSkimming the patch, I think it will be easier to review if the @inheritdoc changes are moved to a separate issue.
Also, this needs a reroll and there are @param being added that need a comment.
Comment #11
immaculatexavier commentedRerolled Patch against 9.4.x
Comment #12
shashwat purav commentedComment #13
immaculatexavier commentedRerolled Patch against #11 with diff - fixed custom commands
Comment #14
immaculatexavier commentedComment #15
shashwat purav commentedHi @immaculatexavier, there are still custom commands issues.
Comment #16
immaculatexavier commented@Shashwat Purav
I am working on the same
Comment #17
immaculatexavier commentedRerolled patch against #13 attaching interdiff
Comment #18
immaculatexavier commentedNeed review for #17
Comment #21
smustgrave commentedCommit check failures
The last patch doesn't pass commit checks, could you make sure to run
./core/scripts/dev/commit-code-check.shbefore uploading a patch to make sure there are no issues with code formatting. see https://www.drupal.org/docs/develop/development-tools/running-core-devel...Comment #22
quietone commented@immaculatexavier, thanks for working on this patch.
Actually, my comment in #10 isn't quite right. Coding standards are fixed by sniff, not module. The work is being done in #2571965: [meta] Fix PHP coding standards in core, stage 1.
I have moved the @param changes to the growing patch in #3207949: Fix Drupal.Commenting.FunctionComment.MissingParamType.
I am closing this as outdated.