Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
/ LintRules Public archive

Add extra linting rules to Android projects

License

Notifications You must be signed in to change notification settings

Chesire/LintRules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LintRules

Extra lint rules to add to your project.

Android CI

Installation

Add the following line to your modules build.gradle

implementation 'com.github.chesire:lintrules:{version}'

Rules Added

lint-gradle

  • [DuplicateDependency] - Highlights when the same dependency has been used multiple times within the same Gradle file.
  • [LexicographicDependencies] - Highlights when dependencies within a Gradle file are not ordered lexicographically.
  • [MultipleNewline] - Highlights when multiple blank lines are detected in a row.
  • [MultipleSpaces] - Highlights when multiple spaces are detected in a row.

lint-xml

  • [ColorCasing] - Highlights when a color has been defined, but is not all uppercased.
  • [MultipleNewline] - Highlights when multiple blank lines are detected in a row.
  • [MultipleSpaces] - Highlights when multiple spaces are detected in a row.
  • [UnexpectedAttribute] - Highlights when an attribute has been used in a layout file, but it is not expected on that element.

License

Apache 2.0 - See LICENSE for more information.