Class ObjectCalisthenicsRules

java.lang.Object
com.github.larseckart.objectcalisthenics.gradle.ObjectCalisthenicsRules

public abstract class ObjectCalisthenicsRules extends Object
DSL for configuring which rules to enforce and their thresholds.
  • Constructor Details

    • ObjectCalisthenicsRules

      @Inject public ObjectCalisthenicsRules()
  • Method Details

    • getMaxClassLines

      @Input public abstract org.gradle.api.provider.Property<Integer> getMaxClassLines()
    • getMaxFieldsPerClass

      @Input public abstract org.gradle.api.provider.Property<Integer> getMaxFieldsPerClass()
    • getIncludeRecordComponentsInFieldRule

      @Input public abstract org.gradle.api.provider.Property<Boolean> getIncludeRecordComponentsInFieldRule()
    • getForbidElse

      @Input public abstract org.gradle.api.provider.Property<Boolean> getForbidElse()
    • getMaxMethodNesting

      @Input public abstract org.gradle.api.provider.Property<Integer> getMaxMethodNesting()
    • getForbidGetters

      @Input public abstract org.gradle.api.provider.Property<Boolean> getForbidGetters()
    • getForbidSetters

      @Input public abstract org.gradle.api.provider.Property<Boolean> getForbidSetters()
    • getForbidNonFirstClassCollections

      @Input public abstract org.gradle.api.provider.Property<Boolean> getForbidNonFirstClassCollections()
    • getStrictGetterNames

      @Input public abstract org.gradle.api.provider.Property<Boolean> getStrictGetterNames()
    • getForbidTraversalChains

      @Input public abstract org.gradle.api.provider.Property<Boolean> getForbidTraversalChains()
    • getPrimitiveObsessionThreshold

      @Input public abstract org.gradle.api.provider.Property<Integer> getPrimitiveObsessionThreshold()
    • getFluentChainMethods

      @Input public abstract org.gradle.api.provider.SetProperty<String> getFluentChainMethods()
    • getSafeChainRoots

      @Input public abstract org.gradle.api.provider.SetProperty<String> getSafeChainRoots()