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

Newer Rubocop throws style errors. #165

Closed
AaronLasseigne opened this issue Mar 30, 2014 · 0 comments
Closed

Newer Rubocop throws style errors. #165

AaronLasseigne opened this issue Mar 30, 2014 · 0 comments
Assignees
Labels

Comments

@AaronLasseigne
Copy link
Owner

13:44:54 - INFO - Inspecting Ruby code style of all files
Inspecting 66 files
....C..........................CC...............C.................

Offenses:

lib/active_interaction/concerns/missable.rb:44:7: C: Avoid the use of double negation (!!).
      !!filter(slug)
      ^
spec/active_interaction/errors_spec.rb:136:11: C: Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.
          errors: { models: { klass.name => { attributes: { attribute: {
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/active_interaction/filter_spec.rb:5:7: C: Use nested module/class definitions instead of compact style.
class ActiveInteraction::TestFilter < ActiveInteraction::Filter; end
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/active_interaction/i18n_spec.rb:76:9: C: Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.
        errors: { messages: {
        ^^^^^^^^^^^^^^^^^^^^^

66 files inspected, 4 offenses detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants