GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Add --google-style to select Google Style by hferreiro · Pull Request #1415 · google/google-java-format Conversation
|
|
Thanks, this looks fine. One minor question: WDYT about |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey @cushon, what do you think about the latest update? I followed clang-format and added a I'll go with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, I think I slightly prefer |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Done. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
--aosp was the only style switch, with no way to select Google Style once it had been passed. Wrapper scripts such as Chromium's google-java-format launcher append --aosp unconditionally, leaving projects that format through them no way to opt back into Google Style. Add a --google-style flag, and allow overriding a previously given style. When both --aosp and --google-style are given, the last one wins.
|
@cushon can you approve the workflow run? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
--aosp was the only style switch, with no way to select Google style once it had been passed. Wrapper scripts such as Chromium's google-java-format launcher append --aosp unconditionally, leaving projects that format through them no way to opt back into Google Style. Add a --google-style flag, and allow overriding a previously given style. When both --aosp and --google-style are given, the last one wins. Fixes #1415 FUTURE_COPYBARA_INTEGRATE_REVIEW=#1415 from hferreiro:no-aosp 0d1c53e PiperOrigin-RevId: 982467851
--aosp was the only style switch, with no way to select Google style once it had been passed. Wrapper scripts such as Chromium's google-java-format launcher append --aosp unconditionally, leaving projects that format through them no way to opt back into Google Style. Add a --google-style flag, and allow overriding a previously given style. When both --aosp and --google-style are given, the last one wins. Fixes #1415 FUTURE_COPYBARA_INTEGRATE_REVIEW=#1415 from hferreiro:no-aosp 0d1c53e PiperOrigin-RevId: 982467851
--aosp was the only style switch, with no way to select Google style once it had been passed. Wrapper scripts such as Chromium's google-java-format launcher append --aosp unconditionally, leaving projects that format through them no way to opt back into Google Style. Add a --google-style flag, and allow overriding a previously given style. When both --aosp and --google-style are given, the last one wins. Fixes #1415 FUTURE_COPYBARA_INTEGRATE_REVIEW=#1415 from hferreiro:no-aosp 0d1c53e PiperOrigin-RevId: 982467851
--aosp was the only style switch, with no way to select Google style once it had been passed. Wrapper scripts such as Chromium's google-java-format launcher append --aosp unconditionally, leaving projects that format through them no way to opt back into Google Style. Add a --google-style flag, and allow overriding a previously given style. When both --aosp and --google-style are given, the last one wins. Fixes #1415 FUTURE_COPYBARA_INTEGRATE_REVIEW=#1415 from hferreiro:no-aosp 0d1c53e PiperOrigin-RevId: 982467851
…rt, to google-java-format. This adds support for configurable code styles to google-java-format, including: - `--max-line-length`: configures the column limit (default 100). - `--style=google|aosp`: selects the code style, preserving any configured line length or tab settings. If multiple style options are given, the last one wins. - `JavaFormatterOptions.Style.Builder.useTabs(boolean)`: programmatic support for tab-based indentation. Related issues: * Line lengths: #425 * Tab-based indents: #1320 * `--style=` flag: #1415 PiperOrigin-RevId: 991524639
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.