Skip to content

Conversation

@remo5000
Copy link
Contributor

Features

  • Added a rule that only allows specified literal values (string, number, boolean)

Issues fixed

@remo5000 remo5000 requested a review from ning-y August 15, 2018 13:49
@coveralls
Copy link

coveralls commented Aug 15, 2018

Pull Request Test Coverage Report for Build 55

  • 9 of 18 (50.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 48.188%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/interop.ts 1 2 50.0%
src/rules/noUnspecifiedLiteral.ts 7 15 46.67%
Totals Coverage Status
Change from base Build 48: -0.1%
Covered Lines: 624
Relevant Lines: 1185

💛 - Coveralls

: this.node.value instanceof RegExp ? 'RegExp'
: ''
return (
`A literal '${literal}' value is not allowed. Only string, boolean, and number literal values are allowed.`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer '${literal} literals are not allowed', to be consistent with the other disallowed stuff, .e.g

Line 1: Array expressions are not allowed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ningyuansg Agreed. Updated!

@ning-y ning-y merged commit 6036e69 into master Aug 16, 2018
@ning-y ning-y deleted the fix-null branch August 16, 2018 04:04
@ning-y
Copy link
Member

ning-y commented Aug 16, 2018

Thanks, please publish and we can update cadet-frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

null seems to crash the evaluator RegExp Expressions are allowed

4 participants