Skip to content

feat(#248): application-duality#249

Merged
yegor256 merged 5 commits intoobjectionary:masterfrom
h1alexbel:248
Jan 17, 2025
Merged

feat(#248): application-duality#249
yegor256 merged 5 commits intoobjectionary:masterfrom
h1alexbel:248

Conversation

@h1alexbel
Copy link
Member

In this PR I've implemented application-duality lint that issues critical defect if object has an application with duality (@as attributes presence is mixed).

closes #248
History:

@h1alexbel
Copy link
Member Author

@maxonfjvipon please check this one

<xsl:output encoding="UTF-8" method="xml"/>
<xsl:template match="/">
<defects>
<xsl:for-each select="//o">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@h1alexbel abstract objects should not be processed here, which means they must have @base

sheets:
- /org/eolang/lints/critical/application-duality.xsl
asserts:
- /defects[count(defect[@severity='critical'])=1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@h1alexbel it seems 2 defects must be caught here, one for man, one for car

@h1alexbel
Copy link
Member Author

@maxonfjvipon updated. Take a look, please

@h1alexbel
Copy link
Member Author

@maxonfjvipon reminder

@h1alexbel
Copy link
Member Author

@yegor256 please check

@yegor256 yegor256 merged commit 646fc22 into objectionary:master Jan 17, 2025
14 checks passed
@yegor256
Copy link
Member

@h1alexbel thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prohibit duality in application bindings

3 participants