Skip to content
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

feat(#258): sprintf-without-formatters lint #350

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

h1alexbel
Copy link
Contributor

@h1alexbel h1alexbel commented Feb 19, 2025

In this PR I've implemented new lint: sprintf-without-formatters, that issues defect with warning severity, if there is no formatters in the template string of Q.org.eolang.txt.sprintf object.

closes #258
History:

@h1alexbel
Copy link
Contributor Author

@maxonfjvipon please check

@h1alexbel
Copy link
Contributor Author

@maxonfjvipon reminder

@h1alexbel h1alexbel changed the title feat(#258): sprintf-without-formatters lint feat(#258): sprintf-without-formatters lint Feb 20, 2025
sheets:
- /org/eolang/lints/misc/sprintf-without-formatters.xsl
asserts:
- /defects[count(defect[@severity='warning'])=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 let's add a checker that defect contains valid unhexed text message

@h1alexbel
Copy link
Contributor Author

@maxonfjvipon updated. Take a look, please

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.

usage of QQ.txt.sprintf object without formatters must lead to warnings
2 participants