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
As per the documentation, we can configure rules as an array like this
{
"rules": [
"rule1:warning"
]
}
But this does not work! When running sonarwhal, i get an error saying the config schema is not valid
Shyjus-MacBook-Pro:sonarwhal shyju$ yarn sonarwhal https://news.ycombinator.com -f summary
yarn run v1.6.0
$ node dist/src/bin/sonarwhal https://news.ycombinator.com -f summary
Configuration schema is not valid
Error: Couldn't find any valid configuration
at Function.fromConfig (/Users/shyju/Documents/Dev/GitHub/sonarwhal/packages/sonarwhal/dist/src/lib/config.js:188:19)
at exports.analyze (/Users/shyju/Documents/Dev/GitHub/sonarwhal/packages/sonarwhal/dist/src/lib/cli/analyze.js:123:45)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:118:7)
at Function.Module.runMain (module.js:692:11)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Shyjus-MacBook-Pro:sonarwhal shyju$
I tried switching the type from object to array in the config-schema.json file, but that did not help!
For @kshyju work on #1029 it would have been handy. Also we haven't promote them a lot so that could be the reason.
I personally like the shorthand version amp-validator:warning. I think we should try to fix the scenario, maybe adding a "preprocessor" right after reading the JSON file that converts it to the standard format? This way we don't have to complicate the config-schema.
As per the documentation, we can configure rules as an array like this
But this does not work! When running sonarwhal, i get an error saying the config schema is not valid
I tried switching the
type
fromobject
toarray
in theconfig-schema.json
file, but that did not help!Environment
sonarwhal
version: v1.7.0Node.js
version: v9.10.1npm
version:__5.8.0My sonarwhal config
This also does not work
The text was updated successfully, but these errors were encountered: