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

Linter for all modules #521

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Linter for all modules #521

merged 2 commits into from
Nov 30, 2023

Conversation

Jolanrensen
Copy link
Collaborator

Fixes #520.

When reviewing #516 I noticed we didn't have a linter enabled for all modules. This PR enabled kotlinter for all modules (except jdbc as @zaleslaw is actively working on it), plus it fixes any linting issues encountered along the way.

?: vector.setNull(i)
}

is LargeVarCharVector -> column.convertToString()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is became more readable!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, someone didn't know also did exactly what they attempted to do with let. Honestly, I'd replace them with if (value == null) if I wrote it myself, for readability, but at least it's better now :)


package test

import org.jetbrains.kotlinx.dataframe.annotations.ImportDataSchema
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you do it manually or with automated refactoring? I had some troubles with automated

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

manually, unfortunately. But it makes sense that it isn't done automatically. Since it's a String you could mean anything, so it's good IntelliJ doesn't change it.

)
""".trimIndent()
CREATE TABLE Sale (
id INT PRIMARY KEY,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like a have alternative tabulation for SQL queries in my IDEA((

@Jolanrensen Jolanrensen merged commit f36912c into master Nov 30, 2023
2 checks passed
@Jolanrensen Jolanrensen deleted the linter-for-all-modules branch November 30, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linter missing for most modules
3 participants