<commit_before># scalastyle-sbt-plugin

This project is intended to provide SBT 0.11.x plugin support for Scalastyle.
For more information about Scalastyle, see https://github.com/scalastyle/scalastyle.

## Setup

add following line to `project/plugins.sbt`

```scala
  addSbtPlugin("com.github.aselab" %% "scalastyle-sbt-plugin" % "0.1.0-SNAPSHOT")

  resolvers ++= Seq(
    "aselab repo" at "http://aselab.github.com/maven/",
    "Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
  )
```

and, inject plugin settings into project in build.sbt:

```scala
  import com.github.aselab.scalastyle._

  ScalaStylePlugin.Settings
```

## Usage

You can check your code by typing `sbt scalastyle`.
The result is output `target/scalastyle-result.xml` (its compatible CheckStyle format).

ScalaStyle Configuration file is used by default is `./scalastyle-config.xml`.
Generate default configuration file, by typing `sbt scalastyle-generate-config`.
<commit_msg>Update master<commit_after># scalastyle-sbt-plugin

This project is intended to provide SBT 0.11.x plugin support for Scalastyle.
For more information about Scalastyle, see https://github.com/scalastyle/scalastyle.

## Setup

add following line to `project/plugins.sbt`

```scala
  addSbtPlugin("com.github.aselab" %% "scalastyle-sbt-plugin" % "0.1.0-SNAPSHOT")

  resolvers ++= Seq(
    "aselab repo" at "http://aselab.github.com/maven/",
    "Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
  )
```

and, inject plugin settings into project in `build.sbt`:

```scala
  import com.github.aselab.scalastyle._

  ScalaStylePlugin.Settings
```

## Usage

You can check your code by typing `sbt scalastyle`.
The result is output `target/scalastyle-result.xml` (its compatible CheckStyle format).

ScalaStyle Configuration file is used by default is `./scalastyle-config.xml`.
Generate default configuration file, by typing `sbt scalastyle-generate-config`.

{'fraction_non_alphanumeric': 0.11794354838709678, 'fraction_numerical': 0.006048387096774193, 'mean_word_length': 4.513888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1105784', 'n_tokens_mistral': 678, 'n_tokens_neox': 642, 'n_words': 181}