Skip to content

Ruby format treats interpolated strings as comments. #818

@reitermarkus

Description

@reitermarkus

Check for existing issues

  • Completed

Environment

Using the Ruby format, strings with interpolation are treated as comments.

macOS/Homebrew/3.4.1

Describe the bug / provide steps to reproduce it

Running vale with the style rule

---
extends: existence
message: "'%s' should have one space."
link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions"
level: error
nonword: true
tokens:
  - "[a-z][.?!][A-Z]"
  - "[.?!] {2,}[A-Z]"

on a Ruby file containing

"#{args.HEAD?}"

results in

 1:7  error  's.H' should have one space.  Homebrew.Spacing 

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