Showing 8 of 8 total issues
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" }
- Read upRead up
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
- Read upRead up
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" }
Method setupPublicationAndroidLibrary
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
private fun Project.setupPublicationAndroidLibrary(config: PublicationConfig) { if (!isGenericCompilationEnabled) { return }
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")
TODO found Open
// TODO: Set RC/alpha/beta releases status to Ivy's: milestone/integration when it will be possible
- Exclude checks
Similar blocks of code found in 2 locations. Consider refactoring. Open
private fun Project.setupPublicationKotlinJvm(config: PublicationConfig) { if (!isGenericCompilationEnabled) { return }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
private fun Project.setupPublicationJava(config: PublicationConfig) { if (!isGenericCompilationEnabled) { return }
- Read upRead up