gisikw/wildhorn

View on GitHub
lib/wildhorn/episode.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

module Wildhorn
Severity: Minor
Found in lib/wildhorn/episode.rb by rubocop

Checks for a newline after the final magic comment.

Example:

# good
# frozen_string_literal: true

# Some documentation for Person
class Person
  # Some code
end

# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
  # Some code
end

Prefer using YAML.safe_load over YAML.load.
Open

      @metadata = YAML.load(text)
Severity: Minor
Found in lib/wildhorn/episode.rb by rubocop

This cop checks for the use of YAML class methods which have potential security issues leading to remote code execution when loading from an untrusted source.

Example:

# bad
YAML.load("--- foo")

# good
YAML.safe_load("--- foo")
YAML.dump("foo")

There are no issues that match your filters.

Category
Status