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 'Typos'
}
strings.xml:
<resources>
<string name="app_name">Project</string>
<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