Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

2312-3 #289

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

2312-3 #289

wants to merge 2 commits into from

Conversation

lstpsche
Copy link
Contributor

@lstpsche lstpsche commented Jul 27, 2018

Номер

2312

Номер задания

3

Ссылка на видео с демо

https://www.youtube.com/watch?v=ebbTNXX9nzs&feature=youtu.be

Комментарии

noop

def json
JSON.parse request_respond.body
end
private

Choose a reason for hiding this comment

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

Layout/EmptyLinesAroundAccessModifier: Keep a blank line before and after private.

@request = request_api.request
@request_respond = request_api.request_respond
end
def json

Choose a reason for hiding this comment

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

Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.

request.body = data.to_json
request
end
def request_respond

Choose a reason for hiding this comment

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

Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.

@uri = URI('https://westeurope.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment')
@request = create_request(data)
end
def create_request(data)

Choose a reason for hiding this comment

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

Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.

def import_json_from_api
"https://comments.api.onliner.by/news/tech.post/#{search_post_id}/comments?limit=#{COMMENTS_LIMIT}"
end
def parse_json

Choose a reason for hiding this comment

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

Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.

-24px 48px 1px #d8d6d5, -25px 50px 1px #dbdad9,
-26px 52px 1px #dfdddc, -27px 54px 1px #e2e0df,
-28px 56px 1px #e4e3e2; }
text-rendering: optimizeLegibility;

Choose a reason for hiding this comment

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

Expected item on line 24 to appear before line 6. Rule sets should be ordered as follows: @extends, @includes without @content, properties, @includes with @content, nested rule sets
Line should be indented 4 spaces, but was indented 6 spaces

-22px 44px 1px #cfcdcd, -23px 46px 1px #d4d2d1,
-24px 48px 1px #d8d6d5, -25px 50px 1px #dbdad9,
-26px 52px 1px #dfdddc, -27px 54px 1px #e2e0df,
-28px 56px 1px #e4e3e2; }

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

h1 {
color: $black_color; font-size: 5.75em; letter-spacing: .15em;
font-weight: 400; text-shadow:
1px -1px 0 #767676, -1px 2px 1px #737272,

Choose a reason for hiding this comment

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

Color literals like #e4e3e2 should only be used in variable declarations; they should be referred to via variable everywhere else.

margin-bottom: 5em;
h1 {
color: $black_color; font-size: 5.75em; letter-spacing: .15em;
font-weight: 400; text-shadow:

Choose a reason for hiding this comment

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

Property 'text-shadow' should be placed on own line
Colon after property should be followed by one space

.title {
margin-bottom: 5em;
h1 {
color: $black_color; font-size: 5.75em; letter-spacing: .15em;

Choose a reason for hiding this comment

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

Name of variable black_color should be written in all lowercase letters with hyphens instead of underscores
Property 'font-size' should be placed on own line
Properties should be ordered color, font-size, font-weight, letter-spacing, text-shadow
Property 'letter-spacing' should be placed on own line
.15 should be written with a leading zero as 0.15

@lstpsche lstpsche changed the title [WIP] 2312-3 2312-3 Jul 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants