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

Multiple documentation fixes #136

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

Bananeweizen
Copy link
Contributor

  • document more static code analysis tools that can find wrong assertions
  • fix grammar, typos and punctuation to be consistent for English language
  • the comments in Java are called "Javadoc" (with uppercase J), only the tool to create them is called "javadoc" (with lowercase J).
  • lists must be separated by an empty line from previous content, otherwise they don't render correctly

* document more static code analysis tools that can find wrong
assertions
* fix grammar, typos and punctuation to be consistent for English
language
* the comments in Java are called "Javadoc" (with uppercase J), only the
tool to create them is called "javadoc" (with lowercase J).
* lists must be separated by an empty line from previous content,
otherwise they don't render correctly
# Conflicts:
#	src/docs/asciidoc/user-guide/assertj-core-release-notes.adoc
#	src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc
The main trap is to pass the object under test to `assertThat()` and forget to call an assertion afterward.
This misuse can be detected by multiple static code analysis tools:

* https://spotbugs.github.io/[SpotBugs] or http://findbugs.sourceforge.net/[Findbugs] with the https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#rv-method-ignores-return-value-is-this-ok-rv-return-value-ignored-inferred[RV_RETURN_VALUE_IGNORED_INFERRED] rule
Copy link
Member

@scordio scordio Jan 10, 2023

Choose a reason for hiding this comment

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

Do we still want/need to mention FindBugs?

The current version of FindBugs is 3.0.1, released on 13:05:33 EST, 06 March, 2015

Copy link
Member

Choose a reason for hiding this comment

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

For now, I'm keeping it but I believe we could even remove it.

CC @joel-costigliola

@scordio scordio merged commit 1ebdf5b into assertj:main Oct 10, 2023
2 checks passed
@Bananeweizen Bananeweizen deleted the multiple_cleanups branch October 10, 2023 18:52
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.

2 participants