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

feat(valid-params): add exclude option #515

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brettz9
Copy link
Member

@brettz9 brettz9 commented Jul 25, 2024

What is the purpose of this pull request?

  • Changes an existing rule

What changes did you make? (Give an overview)

Adds an exclude option to valid-params. Allows use of non-standard methods, e.g., Bluebird catch.

Also refactors a few instances of array join into ES6 templates

Fixes #127

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (bbcfcbf) to head (6586ac4).
Report is 39 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #515   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        26    +1     
  Lines          649       698   +49     
  Branches       250       267   +17     
=========================================
+ Hits           649       698   +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@scagood scagood left a comment

Choose a reason for hiding this comment

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

Code looks good to me


I am not sure of:

  1. if we want to support off spec uses of promises
  2. how needed this is anymore

Both bluebird and other promise librarys are deprecating themselves eg:
https://github.com/petkaantonov/bluebird#%EF%B8%8Fnote%EF%B8%8F
https://github.com/kriskowal/q#note

The counter argument (and the reason I approve of this change) is that this is entirely opt-in and fairly simple

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

Successfully merging this pull request may close these issues.

Add exclude for valid-params rule
2 participants