Skip to content

Feature: Support Kotlin coding conventions#128

Merged
TimOrtel merged 7 commits intomainfrom
feature/kotlin_coding_convention
Mar 7, 2026
Merged

Feature: Support Kotlin coding conventions#128
TimOrtel merged 7 commits intomainfrom
feature/kotlin_coding_convention

Conversation

@TimOrtel
Copy link
Owner

@TimOrtel TimOrtel commented Feb 15, 2026

Added NamingStrategy, a plugin configuration option on how code declaration names should be derived from proto source code. Users may use the naming strategy LEGACY if they want to preserve the old code generation. Well known types require you to use naming strategy KOTLIN_IDIOMATIC.

Breaking:

  • KOTLIN_IDIOMATIC is now the default naming strategy, breaking existing code.
  • When using PROTO_LITERAL, repeated field and map field variable names are no longer appended with "List" and "Map"

Closes #125

… Extend name conflict resolution to classes and files.
@TimOrtel TimOrtel self-assigned this Feb 15, 2026
@TimOrtel TimOrtel marked this pull request as ready for review March 7, 2026 09:25
@TimOrtel TimOrtel merged commit 9427cdd into main Mar 7, 2026
11 checks passed
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.

Kotlin naming convention in generated property names

1 participant