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

Extract swalPromise() #1677

Merged
merged 1 commit into from
Jul 20, 2019
Merged

Extract swalPromise() #1677

merged 1 commit into from
Jul 20, 2019

Conversation

limonte
Copy link
Member

@limonte limonte commented Jul 20, 2019

Fixes #1540


const swalPromise = (instance, domCache, innerParams) => {
Copy link

Choose a reason for hiding this comment

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

Function swalPromise has 106 lines of code (exceeds 25 allowed). Consider refactoring.


const swalPromise = (instance, domCache, innerParams) => {
Copy link

Choose a reason for hiding this comment

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

Function swalPromise has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring.

@limonte limonte merged commit 8334ded into master Jul 20, 2019
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5188

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 90.9%

Files with Coverage Reduction New Missed Lines %
dist/sweetalert2.js 6 90.9%
Totals Coverage Status
Change from base Build 5187: 0.0%
Covered Lines: 1295
Relevant Lines: 1370

💛 - Coveralls

@limonte limonte deleted the chore/extract-swalPromise branch July 20, 2019 16:45
@limonte
Copy link
Member Author

limonte commented Aug 2, 2019

🎉 This PR is included in version 8.14.1 🎉

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_lines" issue in src/instanceMethods/_main.js
2 participants