Each rule, in turn, consists of a regular expression and some code to be run when that regular expression is matched.
每一个规则依次包含一个正则表达式以及该正则表达式得到匹配时要运行的一些代码。
This rule, and the rule to do one thing, are both corollaries of an underlying principle: avoid duplication of code whenever possible.
这条规则,以及做好一件事情的规则,都是一个根本原理的必然结果:无论何时都要尽可能避免代码重复。
Establishing a simple rule for the team, like no code will be checked in unless it is compiled and tested, would save the team time and effort.
为他们建立一个简单的规则,像除了编写和测试之外,不许其他代码检入,这将会为整个团队节省时间和精力。
You can later add the necessary code to actually implement these policies by implementing rules and rule services and connecting the workflow to the rule services.
您可以通过添加必要的代码来实现这些策略,需要实现规则、规则服务及将工作流与规则服务相连接。
Creation of the rule essentially means creating the rule target and the condition; these are also demonstrated with their own code listings.
创建规则实质上意味着创建规则目标和条件,这些都使用它们自己的代码清单作了说明。
This code breaks every rule and best practice for HTML coding.
此段代码打破了HTML编码的所有规则和最佳实践。
While certainly attainable in code, building these fragments within a rule management environment allows better control and management of reuse, particularly where rules are dynamic or complex.
尽管也可以在编码中实现,但是在规则管理环境中构建这些片段,就能够更好地控制和管理重用,对于动态或复杂的规则尤其如此。
Fortunately, you can achieve this simply and without writing any code at all by using the extension points provided by the static analysis framework. This is known as a Rule Set.
幸运的是,您可以通过使用由静态分析框架提供的扩展点来轻松地实现它,而且不需要编写任何代码。
The grammar's program rule returns a hash reference with the code, comments, and strings available inside it as text.
文法的程序规则返回散列引用,其中包含作为文本的代码、注释和字符串。
Though some implementations are loosely coupled they still cannot be externalized and code level modifications are required in order to change the rule.
尽管有些实现是松散耦合的,但它们仍旧不能被外部化,要修改规则需要代码级别的修改。
When the results are generated, you can filter and view them and, if the rule supplies a quick fix feature, you can repair the source code.
当结果被生成的时候,您能够过滤并且查看它们,并且如果该规则提供一个快速修复特性的话,您还能够修复该资源代码。
Previously, rule sets were developed by the experts (PAT code developers), and based on this PAT code, the data is standardized.
在以前,规则集由专家(PAT代码开发人员)开发,并基于此PAT代码对数据进行标准化。
This example creates a new rule template that allows the user to define new rules to report and code that extends a given class.
这个例子创建了一个允许用户来定义新的规则来报告以及为特定的类编码扩展的模板。
This rule applies not only in application code in the cases outlined above, but also to situations like MBeans and other administrative interfaces.
这个规则不但适合上述情况的应用程序代码,也适用于如MBean和其他管理接口的情况。
But control code on Windows and requests on Linux are defined in such a different way that there is no fixed rule to find the mapping relations between these two parameters, as we discussed earlier.
但是Windows的控制代码和Linux的请求在定义上差别很大,以致没有固定规则能够找出这两个参数的映射关系,如前文所述。
The process should only flow down the Yes path if the location business rule evaluated to true, and the job code is not equal to "J01."
仅当位置业务规则求值为True,并且工作代码不等于“J01”时,该流程才应该继续流向Yes路径。
In the Downloads section, you will find a sample implementation of a continuous build system for Rule Team Server and DVS, using the principles and pieces of code described in this article.
在下载部分,您将找到一个适用于RuleTeamServer和DVS的持续构建系统的样例实现,并且可以使用本文介绍的准则和代码片段。
If the rule is a visibility rule on a portlet, the code calling the rule is the portal server, and is not yours to alter.
如果该规则是Portlet上的可见性规则,那么调用该规则的代码位于门户服务器中,而您无法随意更改。
In this scenario, developers run analysis rules to find and fix problems in their component code and the development manager runs a standard rule set on the application code base using Build Forge.
在这个场景下,通过使用BuildForge,开发人员在他们的代码或组件中运行分析规则去找到并发现问题,而开发经理可以在基于代码的应用程序系统上运行一组标准的规则集。
Together, the rules and the categories build a rule set that can be configured in the Code Review Properties page.
规则和目录同时构建一个能够在CodeReviewProperties页配置的规则集。
Click on the checkbox next to the "Code review" rule, and change the "Permitted Range" to go up to + 2: Looks good to me, approved.
点击“Codereview”规则旁边的复选框,修改“PermittedRange”为+2:looksgoodtome,approved。
Its static analysis analyzes source code and byte code, is pattern-based as well as flow - and path-based, and is capable of finding rule violations that cross methods, classes, and packages.
其静态分析功能分析源代码和字节代码,基于模式以及基于流和基于路径,并且能够跨方法、类和包查找违规行为。
It tells the developer that this rule will be a severity 1 within the next 6-12 months, so they should probably fix it now before they find themselves under a deadline and unable to build their code.
它告诉开发人员,在下一个6 - 12月内,此等级的问题会上升到第一等级,因此在此之前应该将这些问题解决掉。
Either of these simple changes to a hook code-based rule would require versioning the schema and upgrading the user database.
每一种对于基于hook的规则的简单变更都将需要描述图表和更新用户数据库。
Rule Studio and Rule Team Server: These tools allow business experts to define and manage decision logic that was previously buried in the code.
RuleStudio和RuleTeamServer:这些工具允许业务专家定义和管理此前埋藏在代码中的决策逻辑。
In this case, there was little alternative to what they called the "cryptic" format that the out-of-the-box notification provided, and a hook code-based rule was used.
在这个例子中,对于那些“即时可用”的通知所提供的被称之为“秘密的”格式没有其他选择,基于hook的规则被使用。
The general rule of thumb is that if there's more than one try-block's worth of code in a method, then the method is too big and should probably be broken up into smaller methods anyway.
主要的实践经验是:如果一个方法中存在多个try块,那么就表明方法过于庞大,应拆分为多个较小的方法。
At last discuss how to defense buffer overflow by the rule of buffer overflow and the structure character of injected code.
最后讨论如何根据溢出规律和植入代码的结构特征,采取有效措施来防御缓冲区溢出攻击。
A cardinal rule when running to a "code" is: Slow down and walk the final 50 yards, catch your breath, clear your head.
“守则”的一个基本的运行规则是:在最后50码放慢脚步,调整你的呼吸,头脑恢复清醒。
In the coding process, scale factor, fuzzy-control rule and Subordination function are integrated to code in order to complete integral optimizing.
编码过程中对比例因子、模糊控制规则和隶属度函数进行了统一编码,实现了多个因数的整体寻优。
应用推荐