Skip to content

Issue #13501: Kill mutation for NonEmptyAtclauseDescriptionCheck#13558

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:NonEmptyAtclauseDescriptionCheck
Aug 22, 2023
Merged

Issue #13501: Kill mutation for NonEmptyAtclauseDescriptionCheck#13558
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:NonEmptyAtclauseDescriptionCheck

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

Issue #13501: Kill mutation for NonEmptyAtclauseDescriptionCheck


Check :-

https://checkstyle.org/checks/javadoc/nonemptyatclausedescription.html#NonEmptyAtclauseDescription


Mutation

<mutation unstable="false">
<sourceFile>NonEmptyAtclauseDescriptionCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.NonEmptyAtclauseDescriptionCheck</mutatedClass>
<mutatedMethod>visitJavadocToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailNode::getText</description>
<lineContent>log(ast.getLineNumber(), MSG_KEY, ast.getText());</lineContent>
</mutation>


Explaination

Their is only one message key

non.empty.atclause=At-clause should have a non-empty description.

not require ast.getText

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Ok to merge.
Double checked non of translation has parameter.

Copy link
Copy Markdown
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

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

lgtm

@rdiachenko rdiachenko assigned Vyom-Yadav and unassigned rdiachenko Aug 17, 2023
Copy link
Copy Markdown
Member

@Vyom-Yadav Vyom-Yadav left a comment

Choose a reason for hiding this comment

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

LGTM!

@Vyom-Yadav Vyom-Yadav assigned romani and unassigned Vyom-Yadav Aug 22, 2023
@romani romani merged commit 67b51b8 into checkstyle:master Aug 22, 2023
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.

4 participants