[
https://issues.apache.org/jira/browse/ARTEMIS-5957?focusedWorklogId=1010177&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1010177
]
ASF GitHub Bot logged work on ARTEMIS-5957:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 18/Mar/26 21:36
Start Date: 18/Mar/26 21:36
Worklog Time Spent: 10m
Work Description: jbertram opened a new pull request, #6302:
URL: https://github.com/apache/artemis/pull/6302
I was surprised to see we weren't already enforcing this as well as how many
violations there were throughout the code-base.
Issue Time Tracking
-------------------
Worklog Id: (was: 1010177)
Remaining Estimate: 0h
Time Spent: 10m
> Ensure consistent style for one-line conditionals, etc.
> -------------------------------------------------------
>
> Key: ARTEMIS-5957
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5957
> Project: Artemis
> Issue Type: Task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In many places across the code-base there are instance of things like this:
> {code:java}
> if (condition) ...;{code}
> {code:java}
> if (condition)
> ...;{code}
> {code:java}
> if (condition) {
> ...;
> }{code}
> These should all use a consistent style like:
> {code:java}
> if (condition) {
> ...;
> }{code}
> Checkstyle can enforce this for us using the {{NeedBraces}} module.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]