{"repo":"slackhq/slack-lints","free":true,"listed":false,"github":"https://github.com/slackhq/slack-lints","clone":"git clone https://github.com/slackhq/slack-lints.git","description":"A collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack.","language":"Kotlin","stars":248,"topics":["android","kotlin","lint","android-lint","static-analysis"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"slack-lints =========== This repository contains a collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack. While we do publish artifacts to Maven Central, some of the lints checks may only really be relevant to Slack's codebase. We develop these in the open to knowledge-share with the community. Installation Add the dependency to the lintChecks configuration. Note for non-android projects, you must apply the com.android.lint Gradle plugin to use this. Overview Do Not Mock The slack.lint.mocking package contains several detectors and utilities for detecting mocking of types that should not be mocked. This is similar to ErrorProne's DoNotMockChecker and acts as an enforcement layer to APIs and classes annotated with @DoNotMock . This also detects common types that should never be mocked, such as Kotlin data classes or AutoValue classes. Inclusivity In order to write more inclusive code, we have an InclusiveNamingChecker tool to check for a configurable list of non-inclusive names. Moshi MoshiUsageDetector contains a wealth of checks for common programmer errors when writing classes for use with Moshi and MoshiX. Misc JavaOnlyDetector - detects use of Java-only APIs from Kotlin. Based on the original unreleased implementation in uber/lint-checks. DaggerKotlinIssuesDetector - detects some known issues when using Dagger in Kotlin code. RetrofitUsageDetector - detects some common issues when using Retrofit. DenyListedApi – detects use o","default_branch":null,"files":null,"tree":[],"storefront":"/r/slackhq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slackhq/slack-lints/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}