We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following snippet can be a starting point for implementation inside FileStructureRule.kt:
FileStructureRule.kt
private val recommendedComparator = Comparator<ASTNode> { import1, import2 -> require(import1.elementType == IMPORT_DIRECTIVE && import2.elementType == IMPORT_DIRECTIVE) { "This comparator is for sorting imports" } val pathSegments1 = (import1.psi as KtImportDirective).importPath!!.fqName.pathSegments() val pathSegments2 = (import2.psi as KtImportDirective).importPath!!.fqName.pathSegments() return@Comparator 0 }
The text was updated successfully, but these errors were encountered:
petertrr
Successfully merging a pull request may close this issue.
The following snippet can be a starting point for implementation inside
FileStructureRule.kt
:The text was updated successfully, but these errors were encountered: