XPBytes/media_types-validation

View on GitHub

Showing 57 of 57 total issues

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

source "https://rubygems.org"
Severity: Minor
Found in Gemfile by rubocop

Line length
Open

- [`MediaTypes::Deserialization`](https://github.com/XPBytes/media_types-deserialization): :cyclone: Add media types supported deserialization using your favourite parser, and media type validation.
Severity: Info
Found in README.md by markdownlint

Use the new Ruby 1.9 hash syntax.
Open

task :default => :test
Severity: Minor
Found in Rakefile by rubocop

Line is too long. [96/80]
Open

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Line is too long. [87/80]
Open

# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

require "media_types/validation"
Severity: Minor
Found in bin/console by rubocop

Line is too long. [85/80]
Open

`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Lists should be surrounded by blank lines
Open

* Trolling, insulting/derogatory comments, and personal or political attacks
Severity: Info
Found in CODE_OF_CONDUCT.md by markdownlint

Unnecessary spacing detected.
Open

spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Dollar signs used before commands without showing output
Open

$ bundle
Severity: Info
Found in README.md by markdownlint

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

require "rake/testtask"
Severity: Minor
Found in Rakefile by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

require "irb"
Severity: Minor
Found in bin/console by rubocop

Line is too long. [94/80]
Open

'[media type validation] The data being sent as %<media_type>s is invalid:' + "\n" \
Severity: Minor
Found in lib/media_types/validation.rb by rubocop

Line length
Open

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
Severity: Info
Found in README.md by markdownlint

Operator = should be surrounded by a single space.
Open

spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Line is too long. [82/80]
Open

# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
Severity: Minor
Found in media_types-validation.gemspec by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

VERSION = "0.2.0"

Line length
Open

version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
Severity: Info
Found in README.md by markdownlint

Freeze mutable objects assigned to constants.
Open

VERSION = "0.2.0"

Trailing spaces
Open

actions. This does _not_ validate only `JSON` output, but stringifies and then parses the body as `JSON`, so the
Severity: Info
Found in README.md by markdownlint
Severity
Category
Status
Source
Language