IntelliTrack Networks Users Email Lists

IntelliTrack Users Email List will aid you to connect with those tech professionals who are utilizing IntelliTrack. IntelliTrack is a famous trade name of the stock following programming, which is…


独家优惠奖金 100% 高达 1 BTC + 180 免费旋转

Making Custom Lint for Kotlin Code

This blog is my learning on writing Custom Lint for Kotlin code, and provide a working example as reference. The learning came from extracting information from various sources, which I will provide them together.

As per the links above, it provides you some details of how to trigger the available lint and help checks

For some reason, it is not run by default when one compile and launch the App. In order to get it run by default (when in Gradle Command Line and Android Studio), just add the following gradle tasks dependencies in build.gradle

Also to get informed about any warning and error, and halt compilation, just add the following in the android section of build.gradle

In doing above, we could uncover all lint warnings and fixed them. However, if we have some other rules like we don’t want to use non Camel Case naming as shown below (in bold), the lint is not helping.

To solve this, we’ll need to implement custom lint rule.

The below blog is an exceptional reference I use, and manage to get it work.

Add a comment

Related posts:

Daily analyze of cryptocurrency 20190701

According to Ambcrypto on June 30, because of the sudden unexpected rise in the price of Bitcoin, the price of counterfeit coins has fallen sharply relative to BTC. Most of the counterfeit coins have…

Lego Sorter using TensorFlow on Raspberry Pi

In early 2017 I stumbled across one of the documented Google Cloud and Tensorflow use cases titled How a Japanese cucumber farmer is using deep learning and TensorFlow. It stuck in my mind and…

Three input element properties that I discovered while reading MDN

Recently I was reading Twitter and stumbled across a tweet by Dan Abramov. He shared a short code snippet that caught my eye. It included some JavaScript which accessed an input element from the DOM…