Skip to content

Commit

Permalink
Fix detekt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaygaba committed Jun 10, 2024
1 parent 67254d9 commit db922c4
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ object ShowkaseModuleApiWriter {
receiver(ShowkaseExtensionFunctionsWriter.SHOWKASE_OBJECT_CLASS_NAME)
returns(ShowkaseExtensionFunctionsWriter.SHOWKASE_ELEMENTS_METADATA_CLASS_NAME)
addKdoc(
"Helper function that gives you access to Showkase elements that are declared in a given module. " +
"This contains data about the composables, colors and typography that are meant to be rendered" +
"inside the Showkase browser. This is different from the Showkase.${ShowkaseExtensionFunctionsWriter.METADATA_FUNCTION_NAME}() " +
"function, which contains all the Showkase elements in a given ShowkaseRoot graph, whereas this function " +
"only contains metadata about the module it's generated in. Each module where Showkase is setup " +
"will have this function generated in it."
"Helper function that gives you access to Showkase elements that are " +
"declared in a given module. This contains data about the composables, " +
"colors and typography that are meant to be rendered inside the Showkase " +
"browser. This is different from the " +
"Showkase.${ShowkaseExtensionFunctionsWriter.METADATA_FUNCTION_NAME}() " +
"function, which contains all the Showkase elements in a given " +
"ShowkaseRoot graph, whereas this function only contains metadata " +
"about the module it's generated in. Each module where Showkase is " +
"setup will have this function generated in it."
)
addCode(
CodeBlock.Builder()
Expand All @@ -107,4 +110,4 @@ object ShowkaseModuleApiWriter {

private const val MODULE_METADATA_FUNCTION_NAME = "getModuleMetadata"
private const val MODULE_LEVEL_SHOWKASE_PROVIDER_CLASS_PREFIX = "ShowkaseModuleMetadata"
}
}

0 comments on commit db922c4

Please sign in to comment.