这两行代码违反了SLAP原则。
These two lines of code illustrate a violation of the SLAP principle.
如果代码违反了风格政策,则无法通过编译,即开发人员就无法交付工作。
If the code violated the style policy the code compilation failed, i.e. the developer was not able to deliver the result.
关于方法指针,有意思的事情是:它们的使用可能就表明代码违反了迪米特法则。
The interesting thing about method Pointers is that their use can be an indication that the code violates the Law of Demeter.
这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。
That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).
以编程方式将生成的SOAPElement映射到xsd:group数据类型是一种脆弱的解决方案,并违反了尽可能避免直接修改所生成的代码的实践。
Programmatically mapping the generated SOAPElement to the XSD: group data type is a brittle solution and goes against the practice of minimizing direct modification of generated code.
计算机病毒是一个程序或者一段代码,在你未觉察时进入你的电脑,从事违反你意愿的活动。所有的病毒都是人编出来的。
A computer virus is a program or piece of code that is loaded onto your computer without your knowledge and runs against your wishes. All computer viruses are manmade.
有了这种可视化图,只要代码编写违反了规则,可视化图就会立即反映出来。
Given this visualization, if code is written that breaks the rules, it will be immediately obvious.
描述解释了为何该发现是一个潜在的问题,并且在代码中为违反规则的实例提供了一个链接。
Description explains why the finding is a potential problem, and provides a link to the instance of the violation of the best practice in your code.
这种分析包括计算源代码指标、根据预定义模式筛查潜在的bug和发现是否违反编程约定和规则。
Such analysis includes calculation of source-code metrics, detection of potential bugs based on defined patterns, and discovery of violations of coding conventions and rules.
这种分析包括计算源代码指标、根据预定义模式筛查潜在的bug和发现是否违反编程约定和规则。
Such analysis includes calculation of source-code metrics, detection of potential bugs based on defined patterns, and discovery of violations of coding conventions and rules.
应用推荐