Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Fails to throw an error when no namespace is declared in a soy file that does not have a corresponding js file. #1

Closed
ethib137 opened this issue Mar 16, 2017 · 0 comments

Comments

@ethib137
Copy link
Collaborator

  1. Create a soy file without a namespace declaration.
/**
 * LinkSpan
 */
{template .render}
	{@param attributes: attributes}
	{@param? content: html|string}
	{@param? span: bool}

	{if $span}
		<span {$attributes}>{$content}</span>
	{else}
		<a {$attributes}>{$content}</a>
	{/if}
{/template}
  1. Do not create a js file.
  2. Run mcritic.

Expected result: MCritic throws an error declaring that you have not written valid soy.

Actual result: MCritic does not throw an error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant