Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Contribution Requirements #13754

Open
codeconsole opened this issue Oct 14, 2024 · 0 comments
Open

Basic Contribution Requirements #13754

codeconsole opened this issue Oct 14, 2024 · 0 comments

Comments

@codeconsole
Copy link
Contributor

codeconsole commented Oct 14, 2024

Feature description

In the Grails Core module:

if()

occurs 1529 times vs

if (

occurs 6502 times.

In most programming languages, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant