Skip to content

Commit

Permalink
chore: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
aredda committed May 1, 2024
1 parent 6a24c45 commit 4a01bb0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
AllCops:
TargetRubyVersion: 3.0
NewCops: disable
SuggestExtensions: false

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

Style/Documentation:
Enabled: false
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ gem "minitest", "~> 5.16"

gem "rubocop", "~> 1.21"

gem 'activesupport'
gem "activesupport"
2 changes: 1 addition & 1 deletion lib/wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.configuration
@configuration ||= Configuration.new
end

def self.configure(&block)
def self.configure
yield(configuration)
end
end
8 changes: 4 additions & 4 deletions lib/wizard/concept_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

module Wizard
module ConceptType
OPERATION = 'operation'
FINDER = 'finder'
FORM = 'form'
VIEW = 'view'
OPERATION = "operation"
FINDER = "finder"
FORM = "form"
VIEW = "view"
end
end
2 changes: 1 addition & 1 deletion test/test_wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def test_that_it_has_a_version_number
end

def test_that_it_generates_concept_files
assert_equal "Generating User concept files...", Wizard.generate('User')
assert_equal "Generating User concept files...", Wizard.generate("User")
end
end

0 comments on commit 4a01bb0

Please sign in to comment.