Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top