ZuzannaSt/swagger_ui_engine

View on GitHub

Showing 25 of 25 total issues

Prefer to_s over string interpolation.
Open

configuration.send("#{default.first}") || default.last

Line is too long. [91/80]
Open

Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets', 'fonts')
Severity: Minor
Found in lib/swagger_ui_engine/engine.rb by rubocop

Prefer to_s over string interpolation.
Open

configuration.send("#{default.first}") || default.last

%w-literals should be delimited by [ and ].
Open

layout 'swagger_ui_engine/layouts/swagger', except: %w(oauth2)

Missing top-level class documentation comment.
Open

class Configuration

Line is too long. [115/80]
Open

s.summary = 'Mountable Rails engine that serves Swagger UI for your API documentation written in YAML files.'
Severity: Minor
Found in swagger_ui_engine.gemspec by rubocop

Redundant self detected.
Open

instance_variable_set("@#{key}", self.send("set_#{key}"))

Missing top-level module documentation comment.
Open

module ConfigParser

Missing top-level module documentation comment.
Open

module SwaggerUiEngine
Severity: Minor
Found in lib/swagger_ui_engine.rb by rubocop

Line is too long. [122/80]
Open

# This command will automatically be run when you run "rails" with Rails gems installed from the root of your application.
Severity: Minor
Found in bin/rails by rubocop

Line is too long. [81/80]
Open

javascript_include_tag('swagger_ui_engine/lang/translator', lang_file_path)

Use each_key instead of keys.each.
Open

SwaggerUiEngine::OAUTH2_DEFAULTS.keys.each do |key|

Put empty method definitions on a single line.
Open

def oauth2
end

Line is too long. [145/80]
Open

s.description = 'Mount Swagger UI web console as Rails engine, configure it as you want and write your API documentation in simple YAML files.'
Severity: Minor
Found in swagger_ui_engine.gemspec by rubocop

Prefer $LOAD_PATH over $:.
Open

$:.push File.expand_path('../lib', __FILE__)
Severity: Minor
Found in swagger_ui_engine.gemspec by rubocop

Missing top-level module documentation comment.
Open

module AuthConfigParser

Line is too long. [83/80]
Open

redirect_to swagger_doc_path(@swagger_url.keys.first) if single_doc_url_hash?

Missing top-level class documentation comment.
Open

class SwaggerDocsController < SwaggerUiEngine::ApplicationController

Redundant self detected.
Open

instance_variable_set("@#{key}", self.send("set_#{key}"))

Missing top-level class documentation comment.
Open

class Engine < ::Rails::Engine
Severity: Minor
Found in lib/swagger_ui_engine/engine.rb by rubocop
Severity
Category
Status
Source
Language