Skip to content

Commit

Permalink
Fixed. rake new_cop doesn't work since rubocop 1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jan 3, 2022
1 parent 987ef94 commit 93a20fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ task :new_cop, [:cop] do |_task, args|
exit!
end

github_user = `git config github.user`.chop
github_user = "your_id" if github_user.empty?

generator = RuboCop::Cop::Generator.new(cop_name, github_user)
generator = RuboCop::Cop::Generator.new(cop_name)

generator.write_source
generator.write_spec
Expand Down

0 comments on commit 93a20fe

Please sign in to comment.