Class AsciiOnly

java.lang.Object
org.eolang.lints.comments.AsciiOnly
All Implemented Interfaces:
Lint<com.jcabi.xml.XML>

public final class AsciiOnly extends Object implements Lint<com.jcabi.xml.XML>
A comment must include only ASCII characters.
Since:
0.1.0
  • Constructor Details

    • AsciiOnly

      public AsciiOnly()
  • Method Details

    • defects

      public Collection<Defect> defects(com.jcabi.xml.XML xmir) throws IOException
      Description copied from interface: Lint
      Find and return defects.
      Specified by:
      defects in interface Lint<com.jcabi.xml.XML>
      Parameters:
      xmir - The entity to analyze (could be XML or Path)
      Returns:
      Defects
      Throws:
      IOException
    • motive

      public String motive() throws Exception
      Description copied from interface: Lint
      Returns motive for a lint, explaining why this lint exists.
      Specified by:
      motive in interface Lint<com.jcabi.xml.XML>
      Returns:
      Motive text about lint
      Throws:
      Exception - if something went wrong