Sha256: a17357d9269365d88d117b386fb0b94d38fe79e0059820ba672b170ab9e720b7

Contents?: true

Size: 305 Bytes

Versions: 25

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  class ValidYaml < YamlCheck
    severity :error
    category :yaml
    doc docs_url(__FILE__)

    def on_file(file)
      return unless file.parse_error

      message = file.parse_error
      add_offense(message, app_file: file)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.13 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.12 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.11 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.10 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.9 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.8 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.7 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.6 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.5 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.4 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.3 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.2 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.1 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.4.0 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.3.3 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.3.1 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.3.0 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.2.2 lib/platformos_check/checks/valid_yaml.rb
platformos-check-0.2.1 lib/platformos_check/checks/valid_yaml.rb