Sha256: 4c81b293fb48b27647da6f67ce2e9ecf769459e25b661b30e8b5d51ab9a7d8d4

Contents?: true

Size: 299 Bytes

Versions: 10

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class ValidJson < JsonCheck
    severity :error
    category :json

    def on_file(file)
      if file.parse_error
        message = format_json_parse_error(file.parse_error)
        add_offense(message, template: file)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
theme-check-0.4.0 lib/theme_check/checks/valid_json.rb
theme-check-0.3.3 lib/theme_check/checks/valid_json.rb
theme-check-0.3.2 lib/theme_check/checks/valid_json.rb
theme-check-0.3.1 lib/theme_check/checks/valid_json.rb
theme-check-0.3.0 lib/theme_check/checks/valid_json.rb
theme-check-0.2.2 lib/theme_check/checks/valid_json.rb
theme-check-0.2.0 lib/theme_check/checks/valid_json.rb
theme-check-0.1.2 lib/theme_check/checks/valid_json.rb
theme-check-0.1.1 lib/theme_check/checks/valid_json.rb
theme-check-0.1.0 lib/theme_check/checks/valid_json.rb