Is there a way to configure gradle to spell check in strings.xml?

I would like to be strings.xmlchecked for spelling when building with gradle. Since we use continuous integration, we need to be configured to build from the command line not only in Android Studio. Any way to do this?

PS. I tried:

lintOptions {
    abortOnError false

    // check *only* the given issue id's
    check 'Typos'
}

strings.xml:

<resources>
    <string name="app_name">Project</string>

    <!-- Common Words -->
    <string name="test_spelling">sdfsdfdfds</string>

and

./gradlew assembleDebug lint

but received nothing:

:app:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found
Wrote HTML report to     file:/Users/asmirnov/Documents/dev/src/Project/app/build/outputs/lint-results.html
Wrote XML report to /Users/asmirnov/Documents/dev/src/Project/app/build/outputs/lint-results.xml

I also checked lint --show:

...

Typos
-----
Summary: Spelling error

Priority: 7 / 10
Severity: Warning
Category: Correctness:Messages

This check looks through the string definitions, and if it finds any words
that look like likely misspellings, they are flagged.

...

SFC. If I add another rule to check ( check 'Typos', 'TypographyEllipsis'), I get warnings (for TypographyEllipsis), as expected, so linting works in general. For some reason, the "Typos" rule does not work only

+4
1

, Android Studio IDE, :

  • Android Studio β†’ Mac OS X ( β†’ Windows)
  • Inspections ( , Search)
  • " " ( Typo)

! Android Studio - .

Settings

0