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: parse order of parameters from function source code #112

Merged
merged 10 commits into from
Apr 10, 2020
Merged

Conversation

kakhaUrigashvili
Copy link
Contributor

the following command was failing before

ask smapi list-catalogs-for-vendor

Copy link
Contributor

@RonWang RonWang left a comment

Choose a reason for hiding this comment

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

Approve with some further work coming up, mostly minor and about testing


_autoRegisterHooks();
_manualRegisterHooks();
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick, add a new line after this line

@@ -12,6 +13,15 @@ module.exports = {
validateSyntax
};

function getParamNames(func) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this function need unit test

Comment on lines +17 to +18
const STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
const ARGUMENT_NAMES = /([^\s,]+)/g;
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a REGEX_VALIDATIONS in constants.js, should we try to put regex in one place?

@RonWang RonWang merged commit 7859681 into develop Apr 10, 2020
@RonWang RonWang deleted the smapi-fixes branch April 13, 2020 17:39
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