You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm calling addons-linter from JS code to lint built extension ZIP files.
I found the example code a bit confusing; it seemed to imply that I needed to set config._ to the current directory, and config.scanFiles to an array containing the name of the extension's ZIP file. Eventually, I realised that the minimal config I needed to scan a ZIP file is more like:
I'm not too familiar with yargs which is imho where this config._ is actually coming from. As far as I know this is simply the first positional command line argument that isn't specifically named.
If you find an alternative way to do that with yargs and name this appropriately we're very happy to accept a pull request!
I've been reading through yargs' docs and GitHub issues and I agree there doesn't seem to be a straightforward way to do this, but I have asked about it, and if a straightforward way is found, I'll submit a PR.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
I'm calling addons-linter from JS code to lint built extension ZIP files.
I found the example code a bit confusing; it seemed to imply that I needed to set
config._
to the current directory, andconfig.scanFiles
to an array containing the name of the extension's ZIP file. Eventually, I realised that the minimal config I needed to scan a ZIP file is more like:Could something like this be added to the README? (I'd be happy to submit a PR if you agree.)
Additionally, would it be possible to rename
config._
toconfig.extensionFile
,config.source
or similar?Thanks for this helpful tool :-).
The text was updated successfully, but these errors were encountered: