-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added shadow for diktat-runner (#1834)
- added shadow artifact for diktat-runner to resolve issue with guava in spotless
- Loading branch information
Showing
7 changed files
with
89 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
diktat-runner/src/main/kotlin/com/saveourtool/diktat/DiktatFactories.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Contains only initialized factories | ||
*/ | ||
|
||
package com.saveourtool.diktat | ||
|
||
import com.saveourtool.diktat.api.DiktatBaselineFactory | ||
import com.saveourtool.diktat.api.DiktatReporterFactory | ||
import com.saveourtool.diktat.api.DiktatRuleConfigReader | ||
import com.saveourtool.diktat.api.DiktatRuleSetFactory | ||
import com.saveourtool.diktat.ktlint.DiktatBaselineFactoryImpl | ||
import com.saveourtool.diktat.ktlint.DiktatProcessorFactoryImpl | ||
import com.saveourtool.diktat.ktlint.DiktatReporterFactoryImpl | ||
import com.saveourtool.diktat.ruleset.rules.DiktatRuleConfigReaderImpl | ||
import com.saveourtool.diktat.ruleset.rules.DiktatRuleSetFactoryImpl | ||
import generated.KTLINT_VERSION | ||
|
||
/** | ||
* Info about engine | ||
*/ | ||
const val ENGINE_INFO: String = "Ktlint: $KTLINT_VERSION" | ||
|
||
/** | ||
* @return initialized [DiktatRuleConfigReader] | ||
*/ | ||
val diktatRuleConfigReader: DiktatRuleConfigReader = DiktatRuleConfigReaderImpl() | ||
|
||
/** | ||
* @return initialized [DiktatRuleSetFactory] | ||
*/ | ||
val diktatRuleSetFactory: DiktatRuleSetFactory = DiktatRuleSetFactoryImpl() | ||
|
||
/** | ||
* @return initialized [DiktatProcessorFactory] | ||
*/ | ||
val diktatProcessorFactory: DiktatProcessorFactory = DiktatProcessorFactoryImpl() | ||
|
||
/** | ||
* @return initialized [DiktatBaselineFactory] | ||
*/ | ||
val diktatBaselineFactory: DiktatBaselineFactory = DiktatBaselineFactoryImpl() | ||
|
||
/** | ||
* @return initialized [DiktatReporterFactory] | ||
*/ | ||
val diktatReporterFactory: DiktatReporterFactory = DiktatReporterFactoryImpl() | ||
|
||
/** | ||
* @return initialized [DiktatRunnerFactory] | ||
*/ | ||
val diktatRunnerFactory: DiktatRunnerFactory = DiktatRunnerFactory( | ||
diktatRuleConfigReader, | ||
diktatRuleSetFactory, | ||
diktatProcessorFactory, | ||
diktatBaselineFactory, | ||
diktatReporterFactory, | ||
) |
28 changes: 0 additions & 28 deletions
28
diktat-runner/src/main/kotlin/com/saveourtool/diktat/DiktatRunnerFactoryProvider.kt
This file was deleted.
Oops, something went wrong.