Skip to content

Conversation

@defvova
Copy link
Member

@defvova defvova commented Feb 4, 2018

No description provided.

@defvova defvova force-pushed the add_ar_simple_oauth2 branch from 7112cb6 to c78025d Compare February 4, 2018 11:21
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@simple-oauth2 simple-oauth2 deleted a comment from houndci-bot Feb 4, 2018
@defvova defvova force-pushed the add_ar_simple_oauth2 branch from c78025d to 3e17f18 Compare February 4, 2018 11:28
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20_180_203_210_135) do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [46/25]

@@ -0,0 +1,47 @@
class CreateSchema < ActiveRecord::Migration[5.1]
def change

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for change is too high. [28/15]
Method has too many lines. [32/15]

@@ -0,0 +1,41 @@
require 'spec_helper'

describe User do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [27/25]

@@ -0,0 +1,77 @@
require 'spec_helper'

describe Client do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [54/25]

@@ -0,0 +1,137 @@
require 'spec_helper'

describe AccessToken do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [94/25]

@@ -0,0 +1,74 @@
require 'spec_helper'

describe AccessGrant do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [51/25]

#
def self.oauth_authenticate(_client, username, password)
user = where(username: username.to_s).first
user if user && user.encrypted_password == password

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use safe navigation (&.) instead of checking if an object exists before calling the method.

@defvova defvova force-pushed the add_ar_simple_oauth2 branch 2 times, most recently from 67158bb to 8753810 Compare February 4, 2018 13:35
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at block body end.

t.string "username", null: false
t.string "encrypted_password", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

create_table "users", force: :cascade do |t|
t.string "username", null: false
t.string "encrypted_password", null: false
t.datetime "created_at", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


create_table "users", force: :cascade do |t|
t.string "username", null: false
t.string "encrypted_password", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

end

create_table "users", force: :cascade do |t|
t.string "username", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

db/schema.rb Outdated
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["key"], name: "index_applications_on_key"
t.index ["secret"], name: "index_applications_on_secret"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

db/schema.rb Outdated
t.string "secret", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["key"], name: "index_applications_on_key"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

t.string "key", null: false
t.string "secret", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

t.string "redirect_uri", null: false
t.string "key", null: false
t.string "secret", null: false
t.datetime "created_at", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

t.string "name", null: false
t.string "redirect_uri", null: false
t.string "key", null: false
t.string "secret", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@defvova defvova force-pushed the add_ar_simple_oauth2 branch from 8753810 to f5aeb4e Compare February 4, 2018 13:45
create_table "applications", force: :cascade do |t|
t.string "name", null: false
t.string "redirect_uri", null: false
t.string "key", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@defvova defvova force-pushed the add_ar_simple_oauth2 branch 2 times, most recently from c7e4e1d to a9bd685 Compare February 4, 2018 15:33
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at block body end.

db/schema.rb Outdated
t.string "username", null: false
t.string "encrypted_password", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

db/schema.rb Outdated
end

add_index "clients", ["key"], name: "index_clients_on_key"
add_index "clients", ["secret"], name: "index_clients_on_secret"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

db/schema.rb Outdated
t.datetime "updated_at", null: false
end

add_index "clients", ["key"], name: "index_clients_on_key"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@defvova defvova force-pushed the add_ar_simple_oauth2 branch 4 times, most recently from 320da39 to 6656fb3 Compare February 4, 2018 16:14
@@ -0,0 +1,47 @@
class CreateSchema < ActiveRecord::Migration[5.0]
def change

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for change is too high. [28/15]
Method has too many lines. [32/15]

@@ -0,0 +1,47 @@
class CreateSchema < ActiveRecord::Migration[5.0]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing top-level class documentation comment.

@defvova defvova force-pushed the add_ar_simple_oauth2 branch 9 times, most recently from 413edd6 to 6b893e0 Compare February 4, 2018 20:59
@defvova defvova force-pushed the add_ar_simple_oauth2 branch from 6b893e0 to 80d9aaa Compare February 4, 2018 21:08
@defvova defvova merged commit 0e47ac0 into master Feb 17, 2018
@defvova defvova deleted the add_ar_simple_oauth2 branch February 17, 2018 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants