-
Notifications
You must be signed in to change notification settings - Fork 9
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
Only verify FEEL expressions; warn that others are currently unsupported #98
Conversation
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
============================================
+ Coverage 84.88% 86.92% +2.03%
- Complexity 430 523 +93
============================================
Files 45 47 +2
Lines 900 1063 +163
Branches 46 55 +9
============================================
+ Hits 764 924 +160
- Misses 100 101 +1
- Partials 36 38 +2
Continue to review full report at Codecov.
|
1a69f42
to
7d18105
Compare
Currently, `dmn-check` only supports analysis of FEEL expressions. With this commit the expression language that is specified in the DMN file is honored and a warning is issued for all other expression languages. Support for other expression languages is on the roadmap but with no schedule so far. This feature makes `dmn-check` useable if other expression languages are used in a DMN file, see issue #88. Closes issue #83.
7d18105
to
3bf6980
Compare
Kudos, SonarCloud Quality Gate passed! |
Hi @pSub, Could you please provide an update if the validation is enabled for javascript as well or is there a plan for it? Regards |
Hi @nairagit, personally I haven't used JavaScript in DMN. I'll try to look into possible validations and create a ticket specifing what needs to be done to support basic JavaScript analysis. Do you have any requirements on what should be validated / analyzed? |
hi @pSub , In the current dmn validator, if we have javascript in any of the columns in the DMN, the plugin errored out. The requirement is to validate the dmn even if it has javascript in any of the columns in the DMN Please let me know if I need to open a separate ticket for this or it can be tracked here |
Alright, I think I understand. If you have javascript all the way nearly every validation will back out with the warning that currently only FEEL is supported. That is not a helpful result. The thing is, that javascript is much more expressive, which makes certain validations (that are implemented for FEEL) impossible or at least very hard. But I can think of some that would be helpful and not too hard to implement. For example checking that the variables used in the javascript expression are bound by DMN Inputs. In this example the validation would check that the variables An other thing that seems reasonable is to do static analysis of the javascript (eg. with https://github.com/cs-au-dk/TAJS or https://github.com/wala/WALA). I suspect this should be fairly straightforward as well. Do those two validations sound helpful to you? Could you share a DMN file with a lot of javascript (either publicly or privately) so that I can see what a real world example looks like? As I said, I have no real experience with javascript inside DMN. If those options sound good to you, please open a separate ticket in which we can document the requirements. By the way: Thank you for using For the sake of completeness: A validation that would certainly be hard to implement is the |
Currently,
dmn-check
only supports analysis of FEEL expressions. With thiscommit the expression language that is specified in the DMN file is honored and
a warning is issued for all other expression languages.
Support for other expression languages is on the roadmap but with no schedule so
far. This feature makes
dmn-check
useable if other expression languages areused in a DMN file, see issue #88.
Closes issue #83.