rspec/rules/S1228/java/rule.adoc

38 lines
764 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
Each package in a Java project should include a ``++package-info.java++`` file. The purpose of this file is to document the Java package using javadoc and declare package annotations.
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,java]
2021-04-28 16:49:39 +02:00
----
/**
* This package has non null parameters and is documented.
**/
@ParametersAreNonnullByDefault
package org.foo.bar;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Add a 'package-info.java' file to document the 'xxxx' package
'''
== Comments And Links
(visible only on this page)
=== on 4 Sep 2013, 08:43:51 Freddy Mallet wrote:
Is implemented by \http://jira.codehaus.org/browse/SONARJAVA-325
endif::env-github,rspecator-view[]