Skip to content

<options> in maven doesn't seem to support setting some default behaviors to false #62

@johnkharvey

Description

@johnkharvey

There's a possibility a case where I'm using the tool wrong.
If that's the case, please let me know what I'm missing.

I want to run jshint, but only do a specific set of options. In short, I'd like to disable some of the defaults.
Now, I know that I can do that withjshint.conf.js, by setting certain options to false, and they'll be skipped. However, using is not ideal for me, as I have a bunch of maven sub-projects, and I don't really want to maintain multiple config File locations (which I'd have to do, as they're picked up by each sub-project's relative path).

So, instead, I'd prefer to use the tag.
Unfortunately, when I use it, some default options seem to be enabled by default, and I'm not quite sure how to disable them. I know that with the configFile option, I could modify jshint.conf.js appropriately by adding lines like:
"-W041": false,
But, I can't figure out how to do this using . I seem to be able to enable options, but not to disable options that are default behaviors. Is that supported? Or, do I need to resort to using the tag?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions