-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
One feature I always wanted with my Scaladocs was a way to validate that my scaladoc isn't out of date with my actual code. Take the following example:
/** Here is my foo method
*
* @param a
* the first arg
* @param b
* the second arg
* @return
* the return value
*/
private def foo(a: Int, c: Int): Int = ???This is incorrect. Maybe it was correct at some point in time, but b changed to c and therefore my scaladocs are now wrong. When I run scaladoc on this I won't get any warning about mismatched code and scaladoc. It'd be amazing if you could run like --validate or something when running Scaladoc and get something like:
Mismatched Scaladoc
Found: param b
But param "b" ins't a parameter in "foo". Did you mean "c"?
Or something like that.
Baccata, keynmol, bishabosha, KacperFKorban and TheElectronWill
Metadata
Metadata
Assignees
Labels
No labels