Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/suspenders/generators/lint_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

module Suspenders
class LintGenerator < Generators::Base
def add_standard
gem "standard", group: :development
Bundler.with_unbundled_env { run "bundle install" }
end

def set_up_hound
copy_file "hound.yml", ".hound.yml"
end

def set_up_standard
gem "standard", group: :development
prepend_to_file("Rakefile", 'require "standard/rake"')
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/suspenders/generators/lint_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

expect("Gemfile")
.to match_contents(/gem .standard./)
.and have_bundled("install")
.and have_no_syntax_error
end
end
Expand Down