I want to ignore spellcheck warnings for specific files only in Android Studio. I have tried this out but this seems to be equivalent to SuppressLint instead of SuppressWarning. http://developer.android.com/tools/debugging/improving-w-lint.html
Here's an example of something like what I want to do
<?xml version="1.0" encoding="utf-8"?>
<lint>
<issue id="SpellCheckingInspection" severity="typo">
<ignore path="app/src/main/res/values/local_values.xml" />
<ignore path="app/src/main/res/values/strings.xml" />
<ignore path="app/src/main/AndroidManifest.xml" />
</issue>
</lint>
Any ideas?
You can prevent the lint check for comments like below;
click the yellow lamp and go to
"Typo:Change to..." -> "Edit inspection profile setting"
and Inspections window will open like below;
then uncheck the "Process comments" option and press OK button.
After those steps, typo underlines and typo lint warnings will gone.
Currently it is not possible to ignore spell check for specific files
You can
by running the code inspection and selecting the specific warning to be suppressed.
Here are the steps:
From the android studio menu bar, select Analyze -> Inspect Code
Once the inspection is complete, from the list of warnings under Proofreading -> Typo -> select the particular warning from a file that has to be suppressed.
On the right-side panel, select the drop-down to suppress the warning for:
Refer to the image below FYI:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With