Skip to content

Conversation

@noboru-i
Copy link
Owner

No description provided.

@noboru-i noboru-i force-pushed the master branch 2 times, most recently from a8583fd to 099ad37 Compare June 12, 2018 07:02
@noboru-i noboru-i force-pushed the sample-warnings branch 2 times, most recently from 37b6be8 to 1cfea66 Compare June 12, 2018 09:31
end

# Test Rubocop warning (Naming/PredicateName)
def has_title
Copy link

@ml-dev-support ml-dev-support Jun 12, 2018

Choose a reason for hiding this comment

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

⚠️ Naming/PredicateName: Rename has_title to title?. (https://github.com/rubocop-hq/ruby-style-guide#bool-methods-qmark)

end

# Test reek warning (TooManyStatements)
def too_many
Copy link

@ml-dev-support ml-dev-support Jun 12, 2018

Choose a reason for hiding this comment

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

⚠️ Metrics/MethodLength: Method has too many lines. [13/10] (https://github.com/rubocop-hq/ruby-style-guide#short-methods)

end

# Test Rails Best Practices warning (remove unused methods)
def unused_method
Copy link

@ml-dev-support ml-dev-support Jun 14, 2018

Choose a reason for hiding this comment

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

⚠️ remove unused methods (Article#unused_method)

end

# Test reek warning (TooManyStatements)
def too_many
Copy link

@ml-dev-support ml-dev-support Jun 14, 2018

Choose a reason for hiding this comment

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

⚠️ has approx 13 statements

import '../stylesheets/application.css';

console.log('Hello World from Webpacker');
console.log('Hello World from Webpacker')

Choose a reason for hiding this comment

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

⚠️ Missing semicolon. (semi)

@@ -1,3 +1,3 @@
body {
color: red;
color: red;

Choose a reason for hiding this comment

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

⚠️ Expected indentation of 2 spaces (indentation)

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