Skip to content

Message format enforces quotes which limits usability of message text. #943

@moxiegirl

Description

@moxiegirl

Check for existing issues

  • Completed

Describe the feature

vale version 3.9.2

Existing rule is:

extends: substitution
message: "Use %s instead of '%s'."
level: warning
ignorecase: false
action:
  name: replace
swap:
  Some phrase: some-sub

Output message is:

 Use 'some-sub' instead of 'Some phrase'. 

The code has hard coded the ' so if my rule message is this:

message: "Use |%s| instead of '%s'."

Vale outputs this for the warning:

Use |'some-sub'| instead of 'Some phrase'.  

The goal is this which conveys the actual tag a user should use and is available for cut-n-paste:

Use |some-sub| instead of 'Some phrase'.  

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions