Package analyzer.comments
Class AvoidHardCodedTestCases
java.lang.Object
analyzer.Comment
analyzer.comments.AvoidHardCodedTestCases
This comment instructs students not to hard-code values used in the exercise tests.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class analyzer.Comment
Comment.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
The comment key is aString
that uniquely identifies the comment.getType()
UseComment.Type.ESSENTIAL
to instruct students that they must address it. UseComment.Type.ACTIONABLE
to instruct students that they could improve their solution by addressing it. UseComment.Type.INFORMATIVE
to give students extra information without expecting them to use it. UseComment.Type.CELEBRATORY
to tell students that they did something right.
-
Constructor Details
-
AvoidHardCodedTestCases
public AvoidHardCodedTestCases()
-
-
Method Details
-
getKey
Description copied from class:Comment
The comment key is aString
that uniquely identifies the comment.Comment keys use the format
"java.<scope>.<name>"
. The<scope>
can be eithergeneral
for general comments, or the slug of the exercise for exercise-specific comments. The<name>
specifies the name of the comment.The combination of
<scope>
and<name>
must be unique, and defines the location of the Markdown template in the exercism/website-copy repository.For example, the comment key
"java.hello-world.foo_bar"
would translate to the Markdown file atanalyzer-comments/java/hello-world/foo_bar.md
. -
getType
Description copied from class:Comment
- Use
Comment.Type.ESSENTIAL
to instruct students that they must address it. - Use
Comment.Type.ACTIONABLE
to instruct students that they could improve their solution by addressing it. - Use
Comment.Type.INFORMATIVE
to give students extra information without expecting them to use it. - Use
Comment.Type.CELEBRATORY
to tell students that they did something right.
- Use
-