-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Location of a Problem if @line
Attribute is Absent
#343
Comments
@yegor256 What do you think? |
@volodya-lombrozo I'm not sure it's solvable, but we can try |
@yegor256 I'm in |
@h1alexbel sure, please, help! |
@yegor256 @volodya-lombrozo how about we introduce new <defect line="0" severity="critical">The anonymous object has duality in the application, which is prohibited
<context>
<o base="man">
<o as="name" base="string"/>
<o base="number"/>
</o>
</context>
</defect> In each XSL, where it is possible, we are able to copy the problematic XML like this The users of EO don't need this final Defect defect = ...;
final XML context = defect.context(); WDYT? |
@h1alexbel I like this idea. It might slightly help in my particular case. (Of course, getting an exact line would be perfect) However, there is one potential issue I’m concerned about: the |
@volodya-lombrozo yes, |
@volodya-lombrozo About lines I agree, but on the other hand, it can add some processing overhead, since we need to annotate original XMIR with lines, resolve them, and then pass annotated XMIR to lints. @yegor256 Should we try to go for it? |
We have found, that if
@line
attribute isn't set, we can't fide the place where the issue occurred, for example:Instead of
0
we have to put something meaningful.There are several suggestions how to solve this issue:
#320 (comment)
#320 (comment)
The text was updated successfully, but these errors were encountered: