Sha256: e980c5ce64ea212cf511a8efdeef16907c99f647af2189c6a5cdfa31acf90e48

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

# YAML Check API

This API is designed for checking the content of `.yml` files.

```ruby
module PlatformosCheck
  class MyCheckName < YamlCheck
    category :yaml,
    # A check can belong to multiple categories. Valid categories are:
    categories :translation, :performance
    severity :suggestion # :error or :style

    def on_file(file)
      file # an instance of `PlatformosCheck::JsonFile`
      file.content # the parsed JSON, as a Ruby object, usually a Hash
    end
  end
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
platformos-check-0.4.14 docs/api/yaml_check.md
platformos-check-0.4.13 docs/api/yaml_check.md