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

Enable RuboCop HandleException in view.rb file #76

Merged
merged 1 commit into from
Feb 18, 2018

Conversation

Prakriti-nith
Copy link
Contributor

When I enabled HandleException in the plotting_library method, MethodLength increased from 15 to 16. So to avoid the rubocop error, I made few changes which are also reducing the duplication of code.

@Shekharrajak
Copy link
Member

Shekharrajak commented Feb 18, 2018

@Prakriti-nith , thanks for the PR. Right now we don't have testcases written for the file view.rb . Please add testcases, for the changes, to check it is not breaking anything. Have a look on other spec files e.g. specs/plot_spec.rb to get idea.

updated: written few specs at #77

@Shekharrajak
Copy link
Member

Since newly created specs at #77 are passing, merging it .

@Shekharrajak Shekharrajak merged commit 3cb4de9 into SciRuby:master Feb 18, 2018
@Prakriti-nith Prakriti-nith deleted the rubocop3 branch May 29, 2018 12:13
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