September 2018 (version 1.17.0-beta)
1.17.0 Update
Hello!
Welcome to the new DeepScan updates. Although our original plan was to release in next month bringing with the team support, we wanted to release quickly a number of updates that we hope you will like.
Please kindly go ahead with the highlights for this release.
Release Summary
This version includes a number of updates that we hope you’ve found some of them helpful.
The key highlights are:
- Enhanced TypeScript support - We've enhanced TypeScript support to the 2.9 from 2.5! Try it out.
- New rules - More Vue.js specialized rules arrive!
New Rules
New rules introduced in this release:
- VUE_BAD_PROPERTY_SET_DELETE - Check for an invalid argument of
Vue.set()
andVue.delete()
- VUE_BAD_TRANSITION_GROUP - Check for an invalid use of
transition-group
in Vue template - VUE_TEMPLATE_WITH_V_SHOW - Do not have
v-show
directive in a<template>
- VUE_TEXTAREA_WITH_USELESS_CHILDREN - Do not have children elements under
<textarea v-model>
- VUE_V_BIND_ON_DIRECTIVE - Do not use
v-bind
on Vue directives - VUE_V_IF_WITH_V_FOR - Check for loop variable usage when
v-if
andv-for
directives are used together
Improved Rules
- BAD_TYPEOF_COMPARISON is enhanced with data-flow analysis
- BAD_BITWISE_OPERATOR is fine-tuned for more alarm detection
- FORIN_ARRAY is fine-tuned for more alarm detection
- INSUFFICIENT_NULL_CHECK is fine-tuned for more alarm detection
Enhanced TypeScript Support
We are happy to announce the TypeScript 2.9 support.
To date, we promised TypeScript 2.5 support, but now we get to support TypeScript 2.9! So you can analyze your code leveraging the latest features like:
- Numeric Separators
- Definite Assignment Assertion
- Conditional Types
- Generic type arguments in JSX elements
Note that the import()
types feature is not yet supported.
Miscellaneous
- Impact is lowered to Medium for BAD_BITWISE_OPERATOR alarms on
|
operator
Bug Fixes
- UNUSED_VAR_ASSIGN alarm message is sometimes invalid for
let
variables inside loop
Thank You
Thank you to the following folks who help to make DeepScan better:
- @gene kindly reported some silly alarms about latest TypeScript features