fluxo-kt/fluxo-mvi

View on GitHub

Showing 8 of 2,395 total issues

Method apply has a Cognitive Complexity of 86 (exceeds 20 allowed). Consider refactoring.
Open

override fun apply(target: Project) {
if (!target.isRootProject) {
return
}
 
 
Severity: Minor
Found in gradle/plugins/setup/src/main/kotlin/GradleSetupPlugin.kt - About 1 day to fix

Method setupPublicationPom has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

internal fun MavenPublication.setupPublicationPom(project: Project, config: PublicationConfig) {
// Publish docs with each artifact.
val useDokka = USE_DOKKA && !config.isSnapshot
try {
check(useDokka) { "Dokka disabled" }
Severity: Minor
Found in gradle/plugins/setup/src/main/kotlin/SetupPublication.kt - About 2 hrs to fix

Method apply has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

override fun apply(target: Project) {
if (!target.isRootProject) {
return
}
 
 
Severity: Major
Found in gradle/plugins/setup/src/main/kotlin/GradleSetupPlugin.kt - About 2 hrs to fix

    Method setupPublicationMultiplatform has a Cognitive Complexity of 34 (exceeds 20 allowed). Consider refactoring.
    Open

    private fun Project.setupPublicationMultiplatform(config: PublicationConfig) {
    applyMavenPublishPlugin()
     
    group = config.group
    version = config.version
    Severity: Minor
    Found in gradle/plugins/setup/src/main/kotlin/SetupPublication.kt - About 2 hrs to fix

    Method setupPublicationPom has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    internal fun MavenPublication.setupPublicationPom(project: Project, config: PublicationConfig) {
    // Publish docs with each artifact.
    val useDokka = USE_DOKKA && !config.isSnapshot
    try {
    check(useDokka) { "Dokka disabled" }
    Severity: Minor
    Found in gradle/plugins/setup/src/main/kotlin/SetupPublication.kt - About 2 hrs to fix

      Method scmTag has a Cognitive Complexity of 29 (exceeds 20 allowed). Consider refactoring.
      Open

      @Incubating
      @Suppress("ComplexCondition", "MagicNumber")
      fun Project.scmTag(allowBranch: Boolean = true): Provider<String?> {
      val envOrProp = envOrProp("SCM_TAG")
      return provider {
      Severity: Minor
      Found in gradle/plugins/setup/src/main/kotlin/Utils.kt - About 1 hr to fix

      Method setupPublicationAndroidLibrary has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      private fun Project.setupPublicationAndroidLibrary(config: PublicationConfig) {
      if (!isGenericCompilationEnabled) {
      return
      }
       
       
      Severity: Minor
      Found in gradle/plugins/setup/src/main/kotlin/SetupPublication.kt - About 1 hr to fix

        Method setupPublicationRepository has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        internal fun Project.setupPublicationRepository(config: PublicationConfig) {
        val notify = signingKeyNotificationLogged.compareAndSet(false, true)
        if (config.isSigningEnabled) {
        if (notify) logger.lifecycle("> Conf SIGNING_KEY SET, applying signing configuration")
        plugins.apply("signing")
        Severity: Minor
        Found in gradle/plugins/setup/src/main/kotlin/SetupPublication.kt - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language