ktrs-compose 0.5.1

Port of mrmans0n/compose-rules (the ktlint rule set `compose`) over the ktrs-lint engine
Documentation
1
2
3
4
5
6
7
8
9
10
//! Port of `ktlint/ComposableAnnotationNamingCheck.kt`.

use crate::ktlint::ktlint_rule::KtlintRule;
use crate::rules::composable_annotation_naming::ComposableAnnotationNaming;

pub const CHECK: Option<fn() -> KtlintRule> = Some(composable_annotation_naming_check);

pub fn composable_annotation_naming_check() -> KtlintRule {
    KtlintRule::new("compose:composable-annotation-naming", vec![], Box::new(ComposableAnnotationNaming))
}