diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b8e9bc32..90cbe883 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,4 +23,4 @@ jobs: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run RuboCop - run: bundle exec rubocop -c .rubocop.yml + run: bundle exec rubocop diff --git a/lib/pliny/commands/creator.rb b/lib/pliny/commands/creator.rb index d2ef5f02..2b795659 100644 --- a/lib/pliny/commands/creator.rb +++ b/lib/pliny/commands/creator.rb @@ -26,6 +26,7 @@ def run! FileUtils.copy_entry template_dir, app_dir FileUtils.rm_rf("#{app_dir}/.git") + FileUtils.mv("#{app_dir}/.rubocop_template.yml", "#{app_dir}/.rubocop.yml") parse_erb_files display "Pliny app created. To start, run:" display "cd #{app_dir} && bin/setup" diff --git a/lib/template/.rubocop.yml b/lib/template/.rubocop_template.yml similarity index 100% rename from lib/template/.rubocop.yml rename to lib/template/.rubocop_template.yml diff --git a/spec/commands/creator_spec.rb b/spec/commands/creator_spec.rb index f89d04a7..b05020c8 100644 --- a/spec/commands/creator_spec.rb +++ b/spec/commands/creator_spec.rb @@ -21,6 +21,7 @@ @gen.run! assert File.exist?("./foobar") assert File.exist?("./foobar/Gemfile") + assert File.exist?("./foobar/.rubocop.yml") end it "deletes the .git from it" do