improve management of linter that does not returns endpos