shard-ameba/spec/ameba/rule
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
..
layout Correct trailing blank line position 2018-12-24 00:44:15 +02:00
lint UnusedArgument: fix crystal upgrade regression 2018-12-12 22:21:33 +02:00
metrics Hk cyclomatic complexity (#92) 2019-02-16 21:03:44 +02:00
performance Normalize sources for tests 2018-09-07 15:07:03 +03:00
style Redundant return (#87) 2018-12-30 09:04:59 +02:00
base_spec.cr Allow filtering by group name (#65) 2018-06-18 10:25:06 +03:00