From 368d8bf2be782ae51ab79dc3c45699e6d1b4cbfc Mon Sep 17 00:00:00 2001 From: Vianey Juarez <37337540+vianeyja@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:06:41 -0500 Subject: [PATCH] Docs: Update Readme.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08a773d..f0f2f38 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This action is useful when you need to examine your Scala code to idetify potent ### Prerequisites +* Make sure you have a [Scalastyle configuration file](http://www.scalastyle.org/configuration.html) (scalastyle_config.xml) with your defined rules. * Make sure you have setup Java * Make sure you have setup Scala * Make sure you have downloaded Scalastyle. A suggested GitHub Action to perform this can found in this [link](https://github.com/marketplace/actions/scalastyle-download). @@ -28,7 +29,8 @@ steps: - name: Validate Scala Code uses: microsoft/scalastyle-validate@v1.0.0 with: - working-directory: './path-to-code' + scala-code-directory: './path-to-code' + scalastye-config-directory: './path-to-configfile' scalastyle-directory: './path-to-scalastyle' ``` @@ -36,8 +38,9 @@ steps: | Name | Description | Required | Default value | | --- | --- | --- | --- | -| `working-directory` | Path for the Scala code | true | NA | -| `working-directory` | Path where the Scalastyle jar is downloaded | false | scalastyle.jar | +| `scala-code-directory` | Path for the Scala code | true | NA | +| `scalastye-config-directory` | Path for the Scalastyle configuration file | true | NA | +| `scalastyle-directory` | Path where the Scalastyle jar is downloaded. Default value assumes is in the same working directory | false | scalastyle.jar | ## Contributing