{"repo":"DeGraciaMathieu/php-smelly-code-detector","free":true,"listed":false,"github":"https://github.com/DeGraciaMathieu/php-smelly-code-detector","clone":"git clone https://github.com/DeGraciaMathieu/php-smelly-code-detector.git","description":"Detects code smells by assessing complexity to identify potentially problematic code","language":"PHP","stars":29,"topics":["php","ci","metrics","quality","static-analyzer"],"license":null,"category":"analytics","readme_excerpt":"php-smelly-code-detector \"A code smell is a surface indication that usually corresponds to a deeper problem in the system.\" Martin Fowler Code smell is a potentially problematic code indicator with the following formula : ($ccn + $arg) $loc - ccn : cyclomatic complexity of the method - arg : number of method arguments - loc : number of lines in the method A high smell value will often reveal that the method is too complex. This complexity could be detrimental to the maintainability of the method, favoring the appearance of bugs in the future. This indicator does not replace the expertise of a developer and must above all be considered as an alarm detecting \"smelly\" code. Installation Phar This tool is distributed as a PHP Archive (PHAR): Composer Alternately, you can directly use composer : Analyze methods Options options description ----------------------- ------------- --min-smell= The minimum smell threshold to show. --max-smell= The maximum smell threshold to show. --only= Comma-separated list of smells to show. --ignore= Comma-separated list of smells to ignore. --limit= The maximum number of results to show, default 20. --public Show only public methods. --private Show only private methods. --protected Show only protected methods. --without-constructor Hide constructors. --sort-by=smell Sort order (smell, loc, arg, ccl), default smell. --json Render metrics in JSON Examples 20 lines are displayed by default, you can configure this with the --limit= option. You can selec","default_branch":null,"files":null,"tree":[],"storefront":"/r/DeGraciaMathieu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DeGraciaMathieu/php-smelly-code-detector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}