title: Customize Lint with Gradle
body: <p>How to write a Gradle Lint check task? Can I run the task from command line and get the lint logs (not from Android Studio)?</p>
  
  <p>For example: in Eclipse, the command may look like:</p>
  
  <pre><code>lint --check UnusedResources ~/myproject_path &gt; lint_log.log
  </code></pre>
  
  <p>Then I can find log info in <code>lint_log.log</code>. How could this work when I use gradle?</p>