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
$ ktlint -F should format everything according to style. Just do it, no matter what.
$ ktlint -F
Unexpected indentation (expected 16, actual 12)
private fun replaceLogger(deviceId: String, orgName: String) { stateManager .firebaseLogger = Logging( mode = if (BuildConfig.DEBUG) Logging.Companion.LogDestination.DEV else Logging.Companion.LogDestination.PROD, appInstanceIdentity = deviceId, org = orgName ) stateManager.firebaseLogger.tellTheCloudAboutMe() customisation.attachToFirebase(stateManager.firebaseLogger.appCloudPrefix) }
repositories { jcenter() } configurations { ktlint } dependencies { // TODO: Do we need to file? Are they non-3rd party ways of running ktlint as a presubmit? ktlint 'com.pinterest:ktlint:0.38.1' } task ktlint(type: JavaExec, group: "verification") { description = "Check Kotlin code style." classpath = configurations.ktlint main = "com.pinterest.ktlint.Main" args "src/**/*.kt" } check.dependsOn ktlint task ktlintFormat(type: JavaExec, group: "formatting") { description = "Fix Kotlin code style deviations." classpath = configurations.ktlint main = "com.pinterest.ktlint.Main" args "-F", "src/**/*.kt" }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
$ ktlint -F
should format everything according to style. Just do it, no matter what.Observed Behavior
Unexpected indentation (expected 16, actual 12)
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: