Skip to content

sydseter/CommentCount

Repository files navigation

This PHP CLI program counts the number of commented lines and the number of non-commented lines and writes the result to standard out. It recognizes all valid php comment markers.

See: http://php.net/manual/en/language.basic-syntax.comments.php

NB: It will not detect unintentional syntax mistakes and it will count lines with code as comment lines if there is a multi-line comment marker on the same line. All forms of inline comments are ignored.

##Install

curl -sS https://getcomposer.org/installer | php
./composer.phar install

##Test

composer compile

##Usage

bin/comment_count_script.php <php-file> | -help | -help | -h | -?

About

Counts the numer of lines which is comments and the number of lines which aren't and display the result to the user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published