<commit_before># Gradle Fortify plugin #

[![Build Status](https://travis-ci.org/sw-samuraj/gradle-fortify-plugin.svg?branch=master)](https://travis-ci.org/sw-samuraj/gradle-fortify-plugin)

A Gradle plugin for building of Fortify artifacts for static security analysis.

## Applying the plugin ##

### Gradle 2.1+ ###

```groovy
plugins {
    id "cz.swsamuraj.fortify" version "0.1.0"
}
```
### All Gradle versions (or local repository) ##

```groovy
buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.cz.swsamuraj:gradle-fortify-plugin:0.1.0"
    }
}

apply plugin: "cz.swsamuraj.fortify"
```

## Using the plugin ##

### Prerequisities ###

**Java plugin**

The plugin is meant for analysis of Java source code. Therefore expects an application of the *Java plugin* and
by default is processing Java *source sets*, excluding *test* source code.

Moreover, it re-uses `sourceCompatibility` property inherited from the *Java plugin*.<commit_msg>Update README for version 0.1.2<commit_after># Gradle Fortify plugin #

[![Build Status](https://travis-ci.org/sw-samuraj/gradle-fortify-plugin.svg?branch=master)](https://travis-ci.org/sw-samuraj/gradle-fortify-plugin)

A Gradle plugin for building of Fortify artifacts for static security analysis.

## Applying the plugin ##

### Gradle 2.1+ ###

```groovy
plugins {
    id "cz.swsamuraj.fortify" version "0.1.2"
}
```
### All Gradle versions (or local repository) ##

```groovy
buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.cz.swsamuraj:gradle-fortify-plugin:0.1.2"
    }
}

apply plugin: "cz.swsamuraj.fortify"
```

## Using the plugin ##

### Prerequisities ###

**Java plugin**

The plugin is meant for analysis of Java source code. Therefore expects an application of the *Java plugin* and
by default is processing Java *source sets*, excluding *test* source code.

Moreover, it re-uses `sourceCompatibility` property inherited from the *Java plugin*.
{'fraction_non_alphanumeric': 0.1336448598130841, 'fraction_numerical': 0.009813084112149532, 'mean_word_length': 3.644251626898048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '580129', 'n_tokens_mistral': 709, 'n_tokens_neox': 677, 'n_words': 189}