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

Mention naming convention in CONTRIBUTING.adoc (#809 / #812) #812

Merged
merged 2 commits into from Apr 24, 2024

Conversation

Bukama
Copy link
Member

@Bukama Bukama commented Apr 20, 2024

The naming convention for classes and methods was not yet mentioned in our contributing guideline.

closes: #809
PR: #812

The naming convention for classes and methods was not yet mentioned in our contributing guideline.
@Bukama Bukama changed the title Mention naming convention in CONTRIBUTING.adoc (#809 / NA) Mention naming convention in CONTRIBUTING.adoc (#809 / #812) Apr 20, 2024
==== Naming Convention

If not explicit mentioned differently, we follow the https://en.wikipedia.org/wiki/Camel_case[`camelCase`] convention for naming classes and methods.
This means that everything is written without spaces, but every word starts with an upper letter, e.g. `DisableIfTestFailsExtension` (class name) or `handleTestExecutionException` (method name).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not really the case. We follow the commonly accepted Java naming conventions which include SCREAMING_SNAKE_CASE (lol) for constants.
Maybe link to this instead: https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well :p. You are arguing with the naming of constants, while the text clearly is written about

convention for naming classes and methods.

And the Java naming conventions also say camelCase :D

Class names should be nouns, in mixed case with the first letter of each internal word capitalized

But yeah you are right, the Java code conventions would be the correct source. Will update it later.

@Bukama Bukama requested a review from Michael1993 April 20, 2024 10:51
@Michael1993 Michael1993 merged commit e9e465e into junit-pioneer:main Apr 24, 2024
11 checks passed
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.

Mention naming convention in contributing
2 participants