Analysis of comments in code


(Jose) #1

Hi,

Is it possible to verify that the code has comments? For example:

  • That a class has comments
  • That a method has comments
  • That a function has comments

If there is an option, in what languages ​​is it possible?

Thanks


(G Ann Campbell) #2

Hi,

I believe most languages offer top-level comment measures. What you may not be aware of is that those top-level measures are available because they’re first computed (and stored!) file-by-file and then rolled up.

You can see those in the UI by choosing Measures from the “hamburger menu” at the top-right of the code viewer (also available via web services).

Measures aren’t calculated below the file level.

 
Ann