Skip to content

Commit

Permalink
checking test code is disabled by default (#143)
Browse files Browse the repository at this point in the history
* checking test code is disabled by default

fixes #142

* fix the mojo and IT
  • Loading branch information
jtnord authored Feb 9, 2021
1 parent 47b21f5 commit ac40ac4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public class CheckSignatureRule
/**
* Should test classes be checked.
*
* //parameter default-value="true"
* //parameter default-value="false"
* @since 1.19
*/
private boolean checkTestClasses = true;
private boolean checkTestClasses = false;

public void execute( EnforcerRuleHelper helper )
throws EnforcerRuleException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
invoker.goals.1=verify -Danimal.sniffer.checkTestClasses=false
invoker.goals.1=verify

invoker.goals.2=verify
invoker.goals.2=verify -Danimal.sniffer.checkTestClasses=true
invoker.buildResult.2=failure
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class CheckSignatureMojo
*
* @since 1.19
*/
@Parameter( property = "animal.sniffer.checkTestClasses", defaultValue = "true" )
@Parameter( property = "animal.sniffer.checkTestClasses", defaultValue = "false" )
protected boolean checkTestClasses;

/**
Expand Down

0 comments on commit ac40ac4

Please sign in to comment.