Replies: 3 comments
-
This is an interesting feature but requires some discussion since there is the question of how we could measure comment coverage and what acceptable thresholds are or how to configure these best. Last #WeCamp18 (a coding retreat int he Netherlands) one team described documentation coverage as how many methods had an |
Beta Was this translation helpful? Give feedback.
-
I think, at least basics: percantage of commented classes, methods, properties. Veraxus, how is your percentage of test covearage work? (how does it measured?) |
Beta Was this translation helpful? Give feedback.
-
In my case, I require documentation for:
In my mind, each of these is worth 1 (equal weight by item, including sub-items like function params). A partial documentation for any of these (e.g. a return without a note or a param without a type) is worth 0.5 while missing documentation is 0. The percentage would be calculated: t = total possible documentable components coverage = ( a / t ) / 100 |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get a feature that outputs comment coverage as a percentage? I want to be able to enforce documentation coverage the same way I enforce test coverage, and having the ability to run a command in CI that simply returns a PhpDoc coverage percentage would be incredible.
Beta Was this translation helpful? Give feedback.
All reactions