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,

  1. go android studio -> preferences on mac os x (should window -> preferences on windows os)
  2. now inspections (if cant trace use search)
  3. now spellings check box , check (this checks typo)
  4. apply , close

thats it!! see typo or spelling correction highlights in android studio.

settings


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -