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:
Naming Rules & Code Style
支持Naming Convention Rules 和 Code Style
CodeRush for Roslyn 可以指定代码样式规则,定义变量、参数、字段和属性的命名规则,这些规则同样适用于新编写的代码字段。
Navigation改进
打开Jump To results in References Window
从这个版本开始,你可以在'Jump To'窗口的右上角单击References按钮查看所有references:
跳到反编译代码
用'Jump To'跳到 'decompiled code':
Sessions in References Window
References window 提供了多个选项卡,将搜索结果汇总起来:
Unit Test Runner
Test Execution Output
测试执行结果现在放在一个单独的选项卡中。
Code Coverage Filtering
可以逐个筛选Code Coverage window列表中的搜索结果:
其他
- 支持NUnit 3.0
- Sessions in Test Runner
支持XAML
目前支持:
- XAML Navigation
- XAML Refactorings
Show Color
v16.1新增的'Show Color'可以预览和更改颜色:
其他
- 改进Organize Members
- 改进Selection Embedding
- Target Picker - 选择要移动或声明的字段、方法和变量。
马上下载试用DevExpress 2016.1
DevExpress CodeRush v16.1详细更新(英文)
======================================================================
DevExpress专为企业客户提供团队、企业授权优惠方案,欢迎来电咨询:023-66090381
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/718.html