1
定数の代わりにカスタムNDepend変数を使用しようとしましたが、let
キーワードのNDepend構文の複雑さの一部を解決できません。クエリに建てられたのNDpend変数の計算
一つは次のとおりです。
私は本当に代わりに、コードベースの上にそれを0に一定値とベースを使用していない何をしたいか一方warnif count > 0 from m in JustMyCode.Methods where
m.CyclomaticComplexity > 30 ||
m.ILCyclomaticComplexity > 60 ||
m.ILNestingDepth > 6
orderby m.CyclomaticComplexity descending,
m.ILCyclomaticComplexity descending,
m.ILNestingDepth descending
select new { m, m.CyclomaticComplexity,
m.ILCyclomaticComplexity,
m.ILNestingDepth }
。
let tenPercent = (JustMyCode.Methods.Count()/100 * 10)
warnif count > tenPercent from m in JustMyCode.Methods where
m.CyclomaticComplexity > 30 ||
...
これも可能ですか?
あなたはこのような何かを書くことができます