You need to sign in to do that
Don't have an account?
Soundhariyaa M
How to get the number of lines of comments used in Apex code
Hi All,
Is there any tools like static code analyzers or any other means to get the number of lines of comments used in our code in Salesforce
Please suggest me any solution
Is there any tools like static code analyzers or any other means to get the number of lines of comments used in our code in Salesforce
Please suggest me any solution
>> https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_expressions_comments.htm
As mentioned in the above link the comments are not interpreted by the parser so we won't be able to fetch the number of lines of comments.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
You can take reference from this below code.
In case you find any other issue please mention.
If you find your Solution then mark this as the best answer.