Skip to content

sphinx-lint: conflicts with sphinx-build's warning rule #153

Description

@gerhardtgao

I was fixing the warnings for zh_CN of https://github.com/sphinx-doc/sphinx-doc-translations, met this:

Run cd locales/zh_CN/LC_MESSAGES && sphinx-lint
Error: extdev/domainapi.po:386: Unnecessary parentheses in ':meth:`Domain.get_objects()`' (unnecessary-parentheses)
Error: Process completed with exit code 1.

If delete the mentioned parentheses, sphinx-build will complain:

C:\Users\Administrator\AppData\Local\Programs\Python\Python313\Lib\site-packages\sphinx\domains\__init__.py:docstring of sphinx.domains.ObjType:9: WARNING: inconsistent term references in translated message. original: [':meth:`Domain.get_objects()`'], translated: [':meth:`Domain.get_objects`'] [i18n.inconsistent_references]

So who to surrender, I guess sphinx-lint ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions