[UPDATE] Applied ktlint formatter #44
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces formatting improvements, updates to development guidelines, and integration of the
kotlinterplugin across multiple modules. Additionally, it refactors code for better readability and consistency in both the main application and benchmark modules.Development Guidelines and Build Process Updates:
.github/copilot-instructions.md: Added./gradlew formatKotlincommand to the development flow and updated key guidelines to include formatting requirements and discourage wildcard imports. [1] [2]Plugin Integration:
app/build.gradle.ktsandbenchmark/build.gradle.kts: Integrated thekotlinterplugin to enforce consistent Kotlin code formatting. [1] [2]Codebase Formatting and Refactoring:
app/src/main/kotlin/App.kt: Improved code readability by aligning multi-line strings and collections, using consistent indentation, and simplifying expressions. [1] [2] [3] [4]app/src/main/kotlin/TestModels.kt: Added trailing commas in data class definitions for consistency. [1] [2]benchmark/src/main/kotlin/dev/hossain/json5kt/benchmark/BenchmarkRunner.kt: Refactored multi-line method calls and added trailing commas for improved readability. [1] [2] [3]benchmark/src/main/kotlin/dev/hossain/json5kt/benchmark/SerializationBenchmark.kt: Refactored methods to use concise expression bodies and improved readability in method signatures. [1] [2]These changes collectively enhance code quality, enforce formatting standards, and simplify the development workflow.