Skip to content

Code Standards, Reformat and Verification #13754

Open
@codeconsole

Description

@codeconsole

Code Format

In the Grails Core module:

if()

occurs 1529 times vs

if (

occurs 6502 times.

I always remember back in the day at the University, my professor would say... if is not a function; therefore, it should be formatted accordingly.

Code formatting should not be left to personal preference. Fortunately, a great deal of time and effort has been invested by others to establish good practices on how to properly format code, enhancing its readability and promoting consistency throughout the codebase.

Some good starting points are:
https://www.oracle.com/java/technologies/javase/codeconventions-contents.html (With the exception of line wrapping as screen widths have changed)

https://google.github.io/styleguide/javaguide.html](https://google.github.io/styleguide/javaguide.html

I recommend we start with consistent bracing and horizontal whitespace

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions