You currently can't. It should be relatively straightforward to let you
suppress issues via lint.xml and lintOptions in build.gradle, and we should
do that ASAP. I've filed issue
https://code.google.com/p/android/issues/detail?id=64948
to track this.

It may not be possible to let you change severities (from warning to error
or error to warning) and have those be respected in the IDE. (The reason
for this is that lint is integration into Studio/IntelliJ by mapping each
lint rule into a native IntelliJ "inspection". Each inspection has a
severity which is specified statically in an XML file. It can be modified
by the user in the Options dialog, but I think those apply globally; I'm
not sure we have plugin access to modify them, and even if we did we
wouldn't want to modify them globally, we'd want it to be on a per module
basis (since that's where each lint.xml can set their own severity).

-- Tor



On Fri, Jan 17, 2014 at 8:49 AM, Xavier Ducrohet <[email protected]> wrote:

> Studio should be reading that information, I think.
>
>
> On Fri, Jan 17, 2014 at 3:48 AM, Dal <[email protected]> wrote:
>
>> Hi Xavier,
>>
>> On a related note, I would like our team of developers to all be warned
>> of the same issues in Android Studio by checking the lint.xml into source
>> control, along with specifying lintOptions in the build.gradle (rather than
>> everyone having the same Inspection settings in Android Studio). Is this
>> currently possible?
>>
>>
>> Thanks,
>>
>> Dal
>>
>>
>> On Thursday, 16 January 2014 22:05:54 UTC, Xavier Ducrohet wrote:
>>
>>> That seems broken. I've filed https://code.google.com/
>>> p/android/issues/detail?id=64914
>>>
>>>
>>> On Thu, Jan 16, 2014 at 1:12 PM, Michael Barany <[email protected]>wrote:
>>>
>>>>  thanks! that worked.
>>>>
>>>>
>>>> On Thursday, January 16, 2014 4:54:33 AM UTC-5, Dal wrote:
>>>>>
>>>>> I had this same issue - try app/src/main/res/values/qa-strings.xml
>>>>>
>>>>> On Wednesday, 15 January 2014 08:31:01 UTC, Michael Barany wrote:
>>>>>>
>>>>>> Anyone know what I'm doing wrong?
>>>>>>
>>>>>>
>>>>>> *My project structure is pretty straight forward.*
>>>>>> /build.gradle
>>>>>> /app/build.gradle
>>>>>> /app/lint.xml
>>>>>>
>>>>>> *lint options in /app/build.gradle:*
>>>>>>     lintOptions {
>>>>>>         abortOnError false
>>>>>>         absolutePaths false
>>>>>>         lintConfig file("lint.xml")
>>>>>>     }
>>>>>>
>>>>>> *lint.xml file contents:*
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <lint>
>>>>>>     <issue id="MissingTranslation">
>>>>>>         <ignore path="res/values/qa-strings.xml" />
>>>>>>     </issue>
>>>>>> </lint>
>>>>>>
>>>>>> I also tried the path src/main/res/values/qa-strings.xml
>>>>>>
>>>>>> The Lint Report still tells me "MissingTranslation: Incomplete
>>>>>> translation" in that file I'm trying to ignore.
>>>>>>
>>>>>> thanks!
>>>>>>
>>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "adt-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Xavier Ducrohet
>>> Android SDK Tech Lead
>>> Google Inc.
>>> http://developer.android.com | http://tools.android.com
>>>
>>> Please do not send me questions directly. Thanks!
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to