Lint for Life: Your Customizable Guard On the Go
The ONLY and MOST comprehensive and up to date talk on Android Lint!
Android Lint was introduced in ADT 16 as a tool to scan for potential bugs. However, Lint itself has been around since the Unix V7 in 1979 as a static analysis tool and adopted by every major programming language over the past 40 years.
Well utilized Lint not only prevents common errors such as use of deprecated elements or API calls, but also improves code quality and enforce tailored rules.
At the end of this session, audience will walk out with knowledge that reveals the full potential behind Android Lint from the built-in checks and configuration, most updated APIs, PSI Library. I will also share customized checks used by the production Groupon app, and step by step examples on how to implement your own rules. This talk will also cover the difference between Android Lint and other static code analysis tools such as PMD and Findbugs to help you make better decisions on which fits a certain purpose best.
Now are you ready to join us and become a Lint Expert?
Outline/structure of the Session
Intro of Static Code Analysis
Intro of Static Code Analysis Tools in Android (with examples and usages)
Components for a Lint Rule
Step by Step Coding Example: RetrofitApiEndpointDetector.java
(With AST and Intellij PSI APIs，and unit testing in the end)
Comprehensive understanding of static code analysis, ability to utilize different Android static code analysis tools to fit for different use cases. And of course, customize your own Lint rules!
Basic knowledge for Java, Android, and static code analysis tools