문제

I am trying to use NDepend in code review process. The one thing I want to solve is to check if newly created classes are valid from the point of CQL rules.

I have plenty of legacy code and there numerous fields/classes/methods that violates CQL rules. But I want to find only these rules which are violated by a particular class which was newly created by a developer and which I want to review.

Is there a way to find all CQL rules violated by a particular class, so I could fix them?

도움이 되었습니까?

해결책

Yes, you can compare two analysis and select new classes with the CQL condition "WasAdded".

Select Classes Where WasAdded

Other attributes to compare two versions are

  • WasRemoved
  • CodeWasChanged

Check out CQL Documentation and this article from Patrick.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top