android - is there any way to configure gradle to check spelling in strings.xml? -
i'd strings.xml checked spelling while building gradle. since use continuous integration need configured building command-line not in android studio. way it?
ps. i've tried:
lintoptions { abortonerror false // check *only* 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 got nothing:
:app:lint ran lint on variant release: 0 issues found ran lint on variant debug: 0 issues found wrote html report file:/users/asmirnov/documents/dev/src/project/app/build/outputs/lint-results.html wrote xml report /users/asmirnov/documents/dev/src/project/app/build/outputs/lint-results.xml also i've checked lint --show :
... typos ----- summary: spelling error priority: 7 / 10 severity: warning category: correctness:messages check looks through string definitions, , if finds words misspellings, flagged. ... pps. if add rule check (check 'typos', 'typographyellipsis') i'm getting warnings (for typographyellipsis) expected, in general linting works. reason "typos" rule not working only
if want spell check feature enabled default in android studio ide follow below given steps,
- go android studio -> preferences on mac os x (should window -> preferences on windows os)
- now inspections (if cant trace use search)
- now spellings check box , check (this checks typo)
- apply , close
thats it!! see typo or spelling correction highlights in android studio.

Comments
Post a Comment