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

Add 'verify' rake task to verify code quality before committing changes #29

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

djydewang
Copy link
Member

rake verify is equivalent to rake clean test rubocop git:manifest bundler:gemfile

@@ -51,4 +51,6 @@ task 'hoe:spec' do
File.open("#{hoe.name}.gemspec", "w") { |f| f.write hoe.spec.to_ruby}
end

desc 'verify code quality before committing changes'
task 'verify' => ['clean', 'test', 'rubocop', 'bundler:gemfile', 'git:manifest']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git:manifest would generate the Manifest.txt file. Do we need to have this file then in the repository at all? Could we generate it just before we do rake package maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm...Good idea. But there are some hoe tasks except rake package that may require manifest.txt, so I think it’s good to keep it all the time.

Hoe.plugin :bundler
Hoe.plugin :gemspec
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we need hoe-gemspec anymore? I thought, we would require this for creating a ruby gem...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We create a gemspec file by hoe:spec task now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update Manifest.txt before I push it, that should fix then "rake install_gem"

@adangel adangel merged commit 7a15f98 into pmd:master Jul 31, 2018
adangel added a commit that referenced this pull request Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants