shard-ameba/spec/ameba/ast/visitors
Hannes Käufler e850bff60f Hk cyclomatic complexity (#92)
* Proof of concept for cyclomatic complexity

* Enable configurability of rule

* Use the same nodes to increment the complexity as rubocop

* Fix typo in test description

* Properly indent code and simplify macro

* Move metric into metrics

* Cover a violation supressed by increased threshold

* Extract visitor into its own file

* Document cyclomatic complexity rule and visitor

* Refactor specs to use a macro

* Indent code inside macro

* Replace array with tuple for string formatting.

`Tuple` is stack based, whereas `Array` is allocated on the heap increasing GC pressure.

* Fix formatting

* Enable cyclomatic complexity rule by default
2019-02-16 21:03:44 +02:00
..
counting_visitor_spec.cr Hk cyclomatic complexity (#92) 2019-02-16 21:03:44 +02:00
flow_expression_visitor_spec.cr Extend UnreachableCode rule: handle control flow (#83) 2018-11-22 10:38:32 +02:00
node_visitor_spec.cr Extend UnreachableCode rule: handle control flow (#83) 2018-11-22 10:38:32 +02:00
scope_visitor_spec.cr Variable scope & useless assignments (#41) 2018-05-03 18:57:47 +03:00