采用轻量级,工具支持的代码评审。
下面,我们制作一个更富挑战性的代码评审规则。
Now that you have been lulled into the simplicity of code review rules, let's make it a bit more challenging.
在同等代码评审中,二级人员对评审和评价主要作者的工作负责。
In a peer code review the secondary author is responsible for reviewing and critiquing the primary author's work.
为代码评审和获取制度建立可定量化的目标,这样您才能改进流程。
Establish quantifiable goals for code review and capture metrics so you can improve your processes.
管理代码评审、评价更高的能力,以确定开发项目的总体健康状况。
Greater ability to manage code review, measurements, and metrics to determine overall health of development projects.
我们通过数十年的经验使用获得的信息,来创建轻量级代码评审的概念。
We used the information gleaned through years of experience to create the concept of lightweight code review.
有了项目,您就该决定代码评审过程的目标,以及怎样评价效率问题了。
As with any project, decide in advance on the goals of the code review process and how you will measure its effectiveness.
代码评审的最常见内部性制度是检查率 ,缺陷率,以及缺陷密度。
The most common internal metrics for code review are inspection rate, defect rate, and defect density.
C/C++分析使用该设置,来向每个规则传递当前的代码评审资源。
The C/C++ analysis provider uses this facility to pass the current code review resource to each rule.
所以在您工作时,一般是在您声明代码评审完成之前,就会更加的谨慎了。
As you work, and certainly before you declare code finished, you'll be a little more conscientious.
为代码评审创建可定量化的目标,并获取制度,这样您就可以改进流程了。
Establish quantifiable goals for code review, and capture metrics so you can improve your processes.
我们需要这个角色来确认代码评审的进行和工程的笔记簿被开发人员维护等等。
We needed this role to confirm that code reviews were taking place, engineering notebooks were being maintained by developers, and so on.
一旦开发者完成了编码变更,通过了代码评审,单元测试变更的记录就将结束。
Once the developer has completed the coding changes, passed code review and unit tested the changes the record is closed.
培养良好的代码评审文化氛围,在这样的氛围中搜索缺陷被看做是积极的活动。
Foster a good code review culture in which finding defects is viewed positively.
使用这些技术,可以确保代码评审能够改进代码 -而不用占用开发员的时间。
Use these techniques to ensure your code reviews improve your code – without wasting your developers' time.
如果一个团队的领导将电子邮件当作提示参加代码评审会的通知,会怎么样?
What if a team leader depends on E-mail as the notification that it is time to do a code review?
代码评审功能扫描代码,以符合先前指定的规则,例如命名约定或J2EE最优方法。
Code review features scan code to validate compliance with pre-specified rules, such as naming conventions or J2EE best practices.
代码评审一般有些主要的类型和无数的变数,而指南却能适用它们中的任何一个。
There are several main types and countless variations of code review, and these guidelines will work with any of them.
它涉及包含了2500个代码评审案例,50个程序员,及Cisco系统上320万行的代码。
It encompassed 2500 code reviews, 50 programmers, and 3.2 million lines of code at Cisco Systems.
为了测试我们对代码评审及轻量级评审的结论,我们对代码评审进行了最大规模的研究工作。
To test our conclusions about code review in general and lightweight review in particular, we conducted the largest study ever done on code review.
这么做的好处在于可以考虑到代码评审问题,因为生成的图表通常都是修改后功能的最好总结。
The benefit of doing this is that it can easily allow for code reviews since the generated diagram is often a good summary of the modified functionality.
最初这看起来显示了一种在代码评审价值的缺乏,因此项目工程师们并不是非常认真的检查每一件事情。
At first this seemed to indicate a lack of value in the code reviews, so the project engineer looked into things a little more carefully. Here's what he discovered.
尽可能早地实施软件管理,并确保公司上下都执行稳定的代码评审过程,对于开发团队来说,也十分关键。
That's why it is critical to implement governance and compliance as early as possible and to make sure that consistent code review processes are followed throughout the organization.
我最后只好用相结合的思考和分析源代码以确保代码评审阶段前这些类创建自动化测试的完整性。
I eventually resorted to create automated tests using a combination of reflection and source code parsing to ensure the integrity of these classes at a pre-code-review stage.
在规则类被完成之后,它需要通过在分析架构中的所提供的扩展点被描述出来,从而使得代码评审引擎能够将其发现。
After the rule class is completed, it needs to be described through the provided extension points in the analysis framework so that the code review engine can discover it.
通过使用轻量级代码评审技术,开发员只需要花费五分之一的时间就可以进行全面且规范的代码评审工作了。
By using lightweight code review techniques, developers can review code in one-fifth the time needed for full, formal code reviews.
然而,由于它是在假设会被抛弃的情况下建立的,它会迂回于需求评审,设计评审,代码评审和单元测试之间。
However, because it was created under the presumption that it would be thrown away, it bypassed requirements reviews, design reviews, code reviews, and unit testing.
它将源代码评审与聊天形式的协作集成起来,从而使开发员从联系注释与私人代码行的繁琐活动中解放了出来。
It integrates source code viewing with chat-style collaboration to free the developer from the tedium of associating comments with individual lines of code.
为了得到最好的结果,您要使用能够自动收集代码的代码评审工具,这样用于流程改进的关键代码就是精确的了。
For best results, use a code review tool that gathers metrics automatically so that your critical metrics for process improvement are accurate.
尽管工具可以帮助您识别问题并提高代码的质量,但是它们仅仅是一个辅助手段,而不能替代手动人工的代码评审与测试操作。
Although the tools help identify problems and increase code quality, they are merely an aid, not a replacement for manual code reviews and testing.
应用推荐