GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — [core] Language lifecycle by oowekyala · Pull Request #4060 · pmd/pmd Conversation
|
|
|
||
| // TODO replace those with actual language properties when the | ||
| // CLI syntax is implemented. | ||
| props.setProperty(LanguagePropertyBundle.SUPPRESS_MARKER, config.getSuppressMarker()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe that's worth to document: with the cli option for suppress marker, you configure it for all languages. With the env var for the property, you configure it for a specific language.
If both a present, one should take precedence. I think, the more specific one should override the general one - that means, if both CLI option for suppressmarker is given and the env for the language property, the env should be used.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ok, it seems the implementation is the other way around as I expected. Then it's all the more important to have the behavior documented to avoid surprises.
--suppress-marker overrides any configuration, that is provided by env vars.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| */ | ||
|
|
||
| package net.sourceforge.pmd.lang.apex.internal; | ||
| package net.sourceforge.pmd.lang.apex; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe ApexLanguageProcessor should stay internal - at least, JavaLanguageProcessor is internal as well...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actually the language processors should probably be published at some point. I would like rules to be able to use them to initialize themselves exactly once, for instance, parse their property values into JClassTypes using the TypeSystem.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review Andreas!
the task "Missing unit tests for new language" is about adding unit tests for the new language base classes. I'll finish this on the weekend
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…d7-language-lifecycle
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll merge this next 🎉
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[core] Language properties
There was an error while loading. Please reload this page.