Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 2.27 KB

readme.md

File metadata and controls

82 lines (67 loc) · 2.27 KB

Arspell

Build Status codecov

Lib version Gradle plugin version License: GPLv3

Resources spell testing library and gradle plugin.

How to

For example, you have two files:

readme.md:

Hello world!
Привет, миииир!

strings.xml:

<resources>
  <string name="hello_world">Hello, world!</string>  
  <string name="hello_world_bad">Hello, worllld!</string>
</resources>

To check it, you should define plugin and configure it:

plugins {
    id("com.nikialeksey.arspell").version("<latest>")
}

arspell {
    md(file("./readme.md")) {
        dictionary {
            en()
            ru()
        }
        ignoreWords(["миииир"])
    }
    android(file("./strings.xml")) {
        dictionary {
            en()
        }
        ignoreKeys(["hello_world_bad"])
    }
}

Then run it as gradle task:

./gradlew arspell

@todo #10:30 m Write docs about LanguageTool using

Publish

gradlew build publish closeAndReleaseRepository

Changelog

  • 3.1.3 - support aarch64

  • 3.1.2 - small fixes for Android strings (skip format specifiers, skip references in string resources)

  • 3.1.1 - upgrade dependencies

  • 3.1.0 - migrate to maven central