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

Fix complexity of close method #1641

Merged
merged 8 commits into from
Jul 5, 2019
Merged

Fix complexity of close method #1641

merged 8 commits into from
Jul 5, 2019

Conversation

JulianoGTZ
Copy link
Contributor

@JulianoGTZ JulianoGTZ commented Jul 2, 2019

Separate some responsibilities relative to animation on the close method.

Fixes #1531

@coveralls
Copy link

coveralls commented Jul 2, 2019

Pull Request Test Coverage Report for Build 5098

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 90.914%

Files with Coverage Reduction New Missed Lines %
dist/sweetalert2.js 13 90.91%
Totals Coverage Status
Change from base Build 5095: 0.02%
Covered Lines: 1263
Relevant Lines: 1333

💛 - Coveralls

Copy link
Member

@limonte limonte left a comment

Choose a reason for hiding this comment

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

Thank you @JulianoGTZ

A few small changes before merging

src/instanceMethods/close.js Outdated Show resolved Hide resolved
src/instanceMethods/close.js Outdated Show resolved Hide resolved
src/instanceMethods/close.js Outdated Show resolved Hide resolved
src/instanceMethods/close.js Outdated Show resolved Hide resolved
Copy link
Member

@limonte limonte left a comment

Choose a reason for hiding this comment

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

Thank you @JulianoGTZ!

@limonte limonte merged commit d748860 into sweetalert2:master Jul 5, 2019
@gverni
Copy link
Contributor

gverni commented Jul 5, 2019

Thanks @JulianoGTZ for your help! For the future you may want to install some plugin in your IDE for highlighting linting/formatting errors. I've found few empty lines an extra spaces scattered around your code. I personally use StandardJS and its VSC plugin.

@limonte I'm going to adjust those in my next PR to fix #1640

@limonte
Copy link
Member

limonte commented Jul 5, 2019

As per email agreement with @JulianoGTZ I just sent the invitation to become SweetAlert2's collaborator. Welcome aboard @JulianoGTZ 🍻

Also, @gverni I granted you the owner permissions to the org, if a bus-factor will happen to me, I believe you'll not allow SweetAlert2 to fade away.


As to formatting rules, we should add those rules about spaces to our eslint config to enforce the coding style. @gverni I believe this one is what you're talking about https://eslint.org/docs/rules/space-in-parens

@limonte
Copy link
Member

limonte commented Jul 5, 2019

As to formatting rules, we should add those rules about spaces to our eslint config to enforce the coding style. @gverni I believe this one is what you're talking about https://eslint.org/docs/rules/space-in-parens

Done in 80e04f0

cc @gverni

@gverni
Copy link
Contributor

gverni commented Jul 5, 2019

Done in 80e04f0

Thanks @limonte! It was exactly that...

Also, @gverni I granted you the owner permissions to the org, if a bus-factor will happen to me, I believe you'll not allow SweetAlert2 to fade away.

I'm honored @limonte, thank you so much! I love this project, and I'll do my best! But be careful with 🚌 out there 😄

@gverni
Copy link
Contributor

gverni commented Jul 5, 2019

we should add those rules about spaces to our eslint config to enforce the coding style

@limonte, how about adding also:

I'm taking inspiration from https://github.com/standard/eslint-config-standard. We can also merge more settings from there (where we see fit). Let me know if you are in favor and I can open a PR for that.

@limonte
Copy link
Member

limonte commented Jul 5, 2019

I'm taking inspiration from https://github.com/standard/eslint-config-standard. We can also merge more settings from there (where we see fit). Let me know if you are in favor and I can open a PR for that.

Why not to extend it then instead of copy-pasting rules? #1643

@limonte
Copy link
Member

limonte commented Jul 8, 2019

🎉 This PR is included in version 8.13.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "method_complexity" issue in src/instanceMethods/close.js
4 participants