-
Notifications
You must be signed in to change notification settings - Fork 0
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
Complete redesign of this gem #28
Conversation
# | ||
# @api public | ||
# | ||
class Project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class Project
has 26 methods (exceeds 20 allowed). Consider refactoring.
# Returns `true` if `#changelog_path` is nil or is a valid regular file path | ||
# @return [Boolean] | ||
# @api private | ||
def validate_changelog_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method validate_changelog_path
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
lib/create_github_release/release.rb
Outdated
# | ||
def initialize(tag, date, description) | ||
def initialize(previous_tag, tag, created_on, changes, release_log_url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring.
Code Climate has analyzed commit 1c9a683 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 100.0% (0.0% change). View more on Code Climate. |
Options
class into two different classes:CommandLineOptions
which just holds the command line options andProject
which has all the properties of the project that the release is being created for. TheOptions
class was getting too complicated and this simplifies the class and testing.git log
instead of docker to get the change log