Skip to content

specify coding style for Walmart#1658

Open
kshao56 wants to merge 2 commits intopalantir:developfrom
kshao56:add-walmart-style
Open

specify coding style for Walmart#1658
kshao56 wants to merge 2 commits intopalantir:developfrom
kshao56:add-walmart-style

Conversation

@kshao56
Copy link
Copy Markdown

@kshao56 kshao56 commented May 5, 2026

Before this PR

The palantir-java-format library supports three coding styles: PALANTIR (2-space indent, 120 char line length), GOOGLE (1-space indent multiplier, 100 char line length), and AOSP (2-space indent, 100 char line length). There was no option for teams that prefer Google-style import ordering with a 120 character line length limit.

After this PR

==COMMIT_MSG==
==COMMIT_MSG==
Add WALMART style option that combines Google-style formatting (1-space indent multiplier, Google import ordering) with a 120 character maximum line length. This provides an alternative for teams who prefer the readability of longer lines while maintaining Google's import organization conventions.

Possible downsides?

@palantirtech
Copy link
Copy Markdown
Member

Thanks for your interest in palantir/palantir-java-format, @kshao56! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app
Copy link
Copy Markdown

changelog-app Bot commented May 5, 2026

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

specify coding style for Walmart

Check the box to generate changelog(s)

  • Generate changelog entry

@kshao56
Copy link
Copy Markdown
Author

kshao56 commented May 6, 2026

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description specify coding style for Walmart

Check the box to generate changelog(s)

  • Generate changelog entry

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.

2 participants