mahmud83 / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

suggestion - allow configuration of lint check #412

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
command line android lint has the following parameter

--check <list>     
Only check the specific list of issues. This will disable everything and 
re-enable the given list of issues. The list should be a comma-separated list 
of issue id's or categories.

Consequently you can easily run something like:
$ANDROID_SDK/tools/lint --check MissingTranslation ./res/

It would be handy to be able to configure an equivalent in the maven-android 
plugin. 

Something along the lines of:
<plugin>
  <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  <artifactId>android-maven-plugin</artifactId>
  <version>3.6.x</version>
  <configuration>
    ... other config ...
    <lint>
      <failOnError>true</failOnError>
      <check>MissingTranslation</check>
    </lint>
  </configuration>
</plugin>

My specific use case is re-use of existing automated build infrastructure built 
around maven and Jenkins to notify people of missing translations.  However I 
am sure there are other uses.

I am using android lint command line version 22.0.1.  I am not sure if --check 
has been in all versions of the android lint command tool.

Original issue reported on code.google.com by Michael....@palomamobile.com on 6 Aug 2013 at 4:00

GoogleCodeExporter commented 9 years ago
For now you could set this up in a lint.xml file that you change. But a pull 
request would also be appreciated .. 

Original comment by mosa...@gmail.com on 18 Sep 2013 at 4:24

GoogleCodeExporter commented 9 years ago
Closed until we get a pull request.

Original comment by william....@xandar.com.au on 10 Mar 2014 at 11:59