-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make the list of options extensible #34
Comments
Your proposed changes sound good to me. I'd be a bit curious to see what the use case is for the additional parameters in the |
The additional option you might want to add really depends on the nature of the checker you write with jxlint. One example I can imagine:
But this means you need to add a way to define Of course this is just an example, for my htmlchecker project, I have one or two options in mind that are really specific for this checker. Does it make sense? How would you customize the rules logic without having to add an additional option? |
I wouldn't allow customizing the logic like that without an additional option. Supplying a regex for |
For some linter projects additional project specific options are required. The JXLint framework should be extensible in this area.
For the maven use case: the project specific Mojo (extending
AbstractJxlintMojo
) can contain additional parameters. The methodcreateProgramOptions()
can be overridden to handle the mapping.For the command line use case: at the moment I have the feeling that there is too much calls of static methods. One approach could be to have a project specific subclass of
Jxlint
to somehow influence/replace the calls ofCommandLineOptions.generateJxlintOptions()
andProgramOptionExtractor.extractProgramOptions(CommandLine)
in the methodJxlint#parseArgumentsAndDispatch(String[])
.What do you think?
The text was updated successfully, but these errors were encountered: