@Override
  public void visitToken(DetailAST ast) {
    if (isApiOperation(ast) && !isDocumentedApiOperation(ast) && !isIgnoredApi(ast)) {
      log(ast.getLineNo(), MESSAGE);
    }
  }
REST API operations should either be documented, or marked to be ignored.
ambari-utility/src/main/java/org/apache/ambari/checkstyle/UndocumentedRestApiOperationCheck.java