2024年终活动

DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

DevExpress v16.1新功能介绍(CodeRush篇)

来源:DevExpress   发布时间:2016-08-08   浏览:4488次

【下载试用DevExpress 2016.1】

Code Analysis

Diagnostic Analyzers

2016.1引进一个全新的代码 分析诊断工具,可以检测并纠正代码错误。可以将这个分析工具作为一个分析引用插入,也可以在一个独立服务器作为一个静态分析任务运行。目前包括的功能有:

  • Duplicate conditional
  • Exception missing throw
  • Expression contains redundant subsets
  • Expression is always the same
  • If-block matches else-block
  • Increase precision with built-in constant or call
  • Integral divide operation cast to float
  • Logical OR expression has opposite operands
  • Logical OR expression redundancy
  • Member always returns the same value
  • Method call's return value ignored
  • Next if-statement's body will never be reached
  • Null check follows usage
  • Redundant Sub-expressions in Binary Operation
  • String format item/argument mismatch
  • Subsequent else-if conditions are identical
  • Subsequent if-statements have identical conditions
  • Suspect assignment reversal
  • Suspect variable reference in For-loop condition
  • Suspect variable reference in For-loop iterator section
  • Suspect variable reference in null-check following as-cast
  • Ternary expression has identical branches
  • Unreachable conditional code block (else same)
  • Unreachable conditional code block (nested inverse)
  • Variable is assigned twice in succession

Debug Visualizer

Debug Visualizer Expression Map

新版本首次将 DevExpress Expression Map 加入 CodeRush Classic:

DevExpress Expression Debug Visualizer

Naming Rules & Code Style

支持Naming Convention Rules 和 Code Style

CodeRush for Roslyn 可以指定代码样式规则,定义变量、参数、字段和属性的命名规则,这些规则同样适用于新编写的代码字段。

支持Naming Convention Rules 和 Code Style

Navigation改进

打开Jump To results in References Window

从这个版本开始,你可以在'Jump To'窗口的右上角单击References按钮查看所有references:

跳到反编译代码

用'Jump To'跳到 'decompiled code':

DevExpress CodeRush 反编译代码

Sessions in References Window

References window 提供了多个选项卡,将搜索结果汇总起来:

Sessions in References Window

Unit Test Runner

Test Execution Output

测试执行结果现在放在一个单独的选项卡中。

Test Execution Output

Code Coverage Filtering

可以逐个筛选Code Coverage window列表中的搜索结果:

Code Coverage Filtering

其他

  • 支持NUnit 3.0
  • Sessions in Test Runner

支持XAML

目前支持:

  • XAML Navigation
  • XAML Refactorings

Show Color

v16.1新增的'Show Color'可以预览和更改颜色:

CodeRush v16.1

其他

  • 改进Organize Members
  • 改进Selection Embedding
  • Target Picker - 选择要移动或声明的字段、方法和变量。

马上下载试用DevExpress 2016.1
DevExpress CodeRush v16.1详细更新(英文)

======================================================================

DevExpress专为企业客户提供团队、企业授权优惠方案,欢迎来电咨询:023-66090381

DevExpress企业集团授权

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/718.html

相关产品: DevExpress Universal Subscription,

扫码咨询
电话咨询
023-68661681
返回
顶部