Skip to content
New issue

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

fix: update to latest kotlin-editor and don't delete complex statements in dependencies blocks. #126

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

autonomousapps
Copy link
Collaborator

Comment on lines +244 to +258
val complex = "a:complex:$expression"

if (org.apache.tools.ant.taskdefs.condition.Os.isArch("aarch64")) {
// Multi-line comment about why we're
// doing this.
testImplementation("io.github.ganadist.sqlite4java:libsqlite4java-osx-aarch64:1.0.392")
}

add("extraImplementation", libs.a)

api(libs.d)

implementation(complex)

testImplementation("g:e:1")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this ordering could be improved further. We can probably specially parse the add(...) expression, and maybe also ensure that property expressions are modeled as such and always at top, rather than at top by accident. The if-expression is more complex, and arguably an anti-pattern, so I think we'll just leave that alone.

@autonomousapps autonomousapps merged commit e1aeb7b into main Nov 5, 2024
1 check passed
@autonomousapps autonomousapps deleted the trobalik.complex-statements branch November 5, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant