Sha256: 96498efe3acfab3b3482089c539ac4b299883dbfc9b71d4a1fb04b8ea9240fc5

Contents?: true

Size: 328 Bytes

Versions: 18

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class ValidJson < JsonCheck
    severity :error
    category :json
    doc docs_url(__FILE__)

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/checks/valid_json.rb
theme-check-1.14.0 lib/theme_check/checks/valid_json.rb
theme-check-1.13.0 lib/theme_check/checks/valid_json.rb
theme-check-1.12.1 lib/theme_check/checks/valid_json.rb
theme-check-1.12.0 lib/theme_check/checks/valid_json.rb
theme-check-1.11.0 lib/theme_check/checks/valid_json.rb
theme-check-1.10.3 lib/theme_check/checks/valid_json.rb
theme-check-1.10.2 lib/theme_check/checks/valid_json.rb
theme-check-1.10.1 lib/theme_check/checks/valid_json.rb
theme-check-1.10.0 lib/theme_check/checks/valid_json.rb
theme-check-1.9.2 lib/theme_check/checks/valid_json.rb
theme-check-1.9.1 lib/theme_check/checks/valid_json.rb
theme-check-1.9.0 lib/theme_check/checks/valid_json.rb
theme-check-1.8.0 lib/theme_check/checks/valid_json.rb
theme-check-1.7.2 lib/theme_check/checks/valid_json.rb
theme-check-1.7.1 lib/theme_check/checks/valid_json.rb
theme-check-1.7.0 lib/theme_check/checks/valid_json.rb
theme-check-1.6.2 lib/theme_check/checks/valid_json.rb