<commit_before># phpmd-symfony2

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
[![Build Status](https://travis-ci.org/mi-schi/phpmd-symfony2.svg?branch=master)](https://travis-ci.org/mi-schi/phpmd-symfony2)
[![Build Status](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/build.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/build-status/master)
[![Code Coverage](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/?branch=master)
[![Dependency Status](https://www.versioneye.com/user/projects/556054ac634daa30fb00115d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/556054ac634daa30fb00115d)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/892d02a2-5e5e-4b4e-b2d3-ee086edfbd78/small.png)](https://insight.sensiolabs.com/projects/892d02a2-5e5e-4b4e-b2d3-ee086edfbd78)

## Features

Extends phpmd with rules for Symfony2. Also add extra rules from clean code.

* Clean Code
    * [ClassNameSingleResponsibility](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/cleancode.xml#L15-L18)
    * [MethodOneTryCatch](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/cleancode.xml#L47)
* Symfony2
    * [ControllerMethodName](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/symfony2.xml#L14-L16)
    * [EntitySimpleGetterSetter](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/symfony2.xml#L41-L43)
* Tests
    * [MethodNumberOfMocks](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/test.xml#L14-L17)
    * [MethodNumberOfAsserts](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/test.xml#L56-L58)

## Installation<commit_msg>Add packagist badges<commit_after># phpmd-symfony2

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
[![Build Status](https://travis-ci.org/mi-schi/phpmd-symfony2.svg?branch=master)](https://travis-ci.org/mi-schi/phpmd-symfony2)
[![Build Status](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/build.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/build-status/master)
[![Code Coverage](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mi-schi/phpmd-symfony2/?branch=master)
[![Dependency Status](https://www.versioneye.com/user/projects/556054ac634daa30fb00115d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/556054ac634daa30fb00115d)

[![Latest Stable Version](https://poser.pugx.org/mi-schi/phpmd-symfony2/v/stable)](https://packagist.org/packages/mi-schi/phpmd-symfony2)
[![Total Downloads](https://poser.pugx.org/mi-schi/phpmd-symfony2/downloads)](https://packagist.org/packages/mi-schi/phpmd-symfony2)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/892d02a2-5e5e-4b4e-b2d3-ee086edfbd78/small.png)](https://insight.sensiolabs.com/projects/892d02a2-5e5e-4b4e-b2d3-ee086edfbd78)

## Features

Extends phpmd with rules for Symfony2. Also add extra rules from clean code.

* Clean Code
    * [ClassNameSingleResponsibility](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/cleancode.xml#L15-L18)
    * [MethodOneTryCatch](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/cleancode.xml#L47)
* Symfony2
    * [ControllerMethodName](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/symfony2.xml#L14-L16)
    * [EntitySimpleGetterSetter](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/symfony2.xml#L41-L43)
* Tests
    * [MethodNumberOfMocks](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/test.xml#L14-L17)
    * [MethodNumberOfAsserts](https://github.com/mi-schi/phpmd-symfony2/blob/master/Rulesets/test.xml#L56-L58)

## Installation
{'fraction_non_alphanumeric': 0.18183962264150944, 'fraction_numerical': 0.051415094339622644, 'mean_word_length': 5.699842022116903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 42, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2572407', 'n_tokens_mistral': 1853, 'n_tokens_neox': 1766, 'n_words': 88}