Reference: Hyaline Check Results

Overview

This documents the results produced by the check current and check change commands.

Check Current

{
  "results": [
    {
      "system": "my-app",
      "documentationSource": "backend",
      "document": "README.md",
      "section": [
        "Running Locally",
      ],
      "check": "COMPLETE",
      "result": "ERROR",
      "message": "This section is not complete. While it does contain an explanation of how to run the app locally, it does not contain an example as required in the stated purpose."
    },
    {
      "system": "my-app",
      "documentationSource": "backend",
      "document": "README.md",
      "section": [
        "Running Locally",
      ],
      "check": "DESIRED_DOCUMENT_EXISTS",
      "result": "PASS",
      "message": ""
    },
    {
      "system": "my-app",
      "documentationSource": "backend",
      "document": "README.md",
      "section": [
        "Running Locally",
      ],
      "check": "MATCHES_PURPOSE",
      "result": "PASS",
      "message": ""
    },
    {
      "system": "my-app",
      "documentationSource": "backend",
      "document": "README.md",
      "section": [
        "Running Locally",
      ],
      "check": "REQUIRED",
      "result": "PASS",
      "message": ""
    },

  ]
}

Fields

A list of fields, their types, and a description of each.

FieldTypeDescription
resultsArrayThe array of results
results[n]ObjectA result
results[n].systemStringThe system ID
results[n].documentationSourceStringThe documentation source ID
results[n].documentStringThe name of the document
results[n].sectionArray OR undefinedIf present, the section (including parent sections)
results[n].section[n]StringThe section name
results[n].checkStringThe check being run
results[n].resultStringThe result of the check
results[n].messageStringThe message (may be an empty string)

Checks

The list of available checks, what cli option is required to perform the chck (if any), and a description of the check

CheckCLI OptionDescription
COMPLETE–check-completenessIf the document or section contents are complete
DESIRED_DOCUMENT_EXISTS(none)If there is a corresponding document or section in the configuration
MATCHES_PURPOSE–check-purposeIf the document or section contents match the stated purpose in the config
REQUIRED(none)If the document or section is present if marked as required in the config

Results

The list of possible results and a description of the result

CheckDescription
ERRORThe check did not pass
PASSThe check passed
SKIPPEDThe check was skipped due to the document or section being ignored
WARNThe document or section does not have a stated purpose

Check Change

{
  "recommendations": [
    {
      "system": "my-app",
      "documentationSource": "backend",
      "document": "README.md",
      "section": [
        "Running Locally"
      ],
      "recommendation": "Consider reviewing and updating this documentation",
      "reasons": [
        "Update this section if any files matching package.json were modified"
      ],
      "changed": true
    }
  ]
}

Fields

A list of fields, their types, and a description of each.

FieldTypeDescription
recommendationsArrayThe array of recommendations
recommendations[n]ObjectA result
recommendations[n].systemStringThe system ID
recommendations[n].documentationSourceStringThe documentation source ID
recommendations[n].documentStringThe name of the document
recommendations[n].sectionArray OR undefinedIf present, the section (including parent sections)
recommendations[n].section[n]StringThe section name
recommendations[n].recommendationStringThe recommendation
recommendations[n].reasonsArrayA list of reasons
recommendations[n].reasons[n]StringA reason
recommendations[n].changedBooleanIf the document or section was marked as changed in the change data set