shard-ameba/spec/ameba
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
..
ast Hk cyclomatic complexity (#92) 2019-02-16 21:03:44 +02:00
cli Exclude globs as arguments 2019-01-13 10:48:46 +02:00
formatter Let ameba explain the issue at the specified location (#86) 2018-12-27 23:34:10 +02:00
rule Hk cyclomatic complexity (#92) 2019-02-16 21:03:44 +02:00
base_spec.cr Dynamically load rule documentation 2018-12-08 22:52:32 +02:00
config_spec.cr Exclude globs as arguments 2019-01-13 10:48:46 +02:00
glob_utils_spec.cr Exclude globs as arguments 2019-01-13 10:48:46 +02:00
inline_comments_spec.cr Normalize sources for tests 2018-09-07 15:07:03 +03:00
issue_spec.cr Rename Error to Issue 2018-06-12 12:55:56 +03:00
reportable_spec.cr Rename Error to Issue 2018-06-12 12:55:56 +03:00
runner_spec.cr Exclude globs as arguments 2019-01-13 10:48:46 +02:00
source_spec.cr Rename Error to Issue 2018-06-12 12:55:56 +03:00
tokenizer_spec.cr Normalize sources for tests 2018-09-07 15:07:03 +03:00