Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pull request – checks if Hound works fine with Thoughtbot's config #56

Closed
wants to merge 3 commits into from

Conversation

skalee
Copy link
Contributor

@skalee skalee commented Nov 28, 2017

No description provided.

@@ -52,7 +52,7 @@ def progressbar_for_model(klass)
title: klass.name,
total: klass.unscoped.count,
throttle_rate: 0.1,
format: %q[%t %c/%C (%j%%) %B %E],
format: %q[%t %c/%C (%j%%) %B %E]

Choose a reason for hiding this comment

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

Put a comma after the last parameter of a multiline method call.
Use %q only for strings that contain both single quotes and double quotes.

@@ -34,7 +34,7 @@ def should_mask?(model_instance)
# returning.
def mask(model_instance)
value = unmarshal_data(model_instance.send(name))
masker_value = options[:masker].call(options.merge!(value: value))
masker_value = options[:masker].call(options.merge!({value: value}))

Choose a reason for hiding this comment

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

Space inside { missing.
Redundant curly braces around a hash parameter.
Space inside } missing.

@codecov
Copy link

codecov bot commented Nov 28, 2017

Codecov Report

Merging #56 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   99.39%   99.39%           
=======================================
  Files          23       23           
  Lines         333      333           
=======================================
  Hits          331      331           
  Misses          2        2
Impacted Files Coverage Δ
lib/attr_masker/performer.rb 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 166d79e...4d694a4. Read the comment docs.

@@ -11,7 +11,7 @@ def mask
#
if Rails.env.production?
unless ENV['FORCE_MASK']
raise AttrMasker::Error, "Attempted to run in production environment."
raise AttrMasker::Error, 'Attempted to run in production environment.'

Choose a reason for hiding this comment

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

Line is too long. [82/80]

@@ -11,7 +11,8 @@ def mask
#
if Rails.env.production?
unless ENV['FORCE_MASK']
raise AttrMasker::Error, "Attempted to run in production environment."
msg = 'Attempted to run in production environment.'

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@yosh1kura
Copy link

It looks like a very good renovation.
However, regrettable being a conflict

@ronaldtse
Copy link
Contributor

@skalee can we merge this? Thanks!

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)

@skalee
Copy link
Contributor Author

skalee commented May 25, 2018

@yosh1kura @ronaldtse

Well… this pull request was never intended to be merged into master. I've created it only to test if Hound CI works correctly with our improved style guide. We were doing some bigger structural changes back then (see riboseinc/oss-guides#3), and I needed some place to experiment. Apparently I forgot to close the pull request afterwards.

These experiments were quite successful, and our current style guide is highly inspired with them. You can find the current version of our style guide here: https://github.com/riboseinc/oss-guides. Moreover, everything worth merging (IMHO) is already on master since merging #57. I think that only leftovers are here, and I am going to close this pull request unless someone opposes.

That said, there is one thing to note. The style guide in this project wasn't updated for a while, and when you wrote your comments, it wasn't compatible with Rubocop 0.54. But it's a trivial change, and I've already took care of that in #61.

@ronaldtse
Copy link
Contributor

Thank you @skalee ! Let’s mark the experiment a success and close it.

@ronaldtse ronaldtse closed this May 26, 2018
@skalee skalee deleted the rubo branch May 26, 2018 08:20
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.

None yet

5 participants