> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Correctness

<AccordionGroup>
  <Accordion title="eqeq">
    `$X == $X` or `$X != $X` is always true. (Unless the value compared is a float or double). To test if `$X` is not-a-number, use `Double.isNaN($X)`.
  </Accordion>

  <Accordion title="hardcoded-conditional">
    This if statement will always have the same behavior and is therefore unnecessary.
  </Accordion>

  <Accordion title="no-string-eqeq">
    Strings should not be compared with '=='. This is a reference comparison operator. Use '.equals()' instead.
  </Accordion>

  <Accordion title="assignment-comparison">
    The value of `$X` is being ignored and will be used in the conditional test
  </Accordion>
</AccordionGroup>
