Skip to content

Catch suspicious strings inside template tags #3

@jwarby

Description

@jwarby

It would be nice to be able to capture situations like the following, where the hardcoded string 'Unkown User' could be output by the template if user.name is not set (EJS example):

<div class="user-info">
   <h1><%= user.name || 'Unknown User' %></h1>
   <!-- ....snip... -->
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions