mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
e850bff60f
* 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 |
||
---|---|---|
.. | ||
ast | ||
cli | ||
formatter | ||
rule | ||
base_spec.cr | ||
config_spec.cr | ||
glob_utils_spec.cr | ||
inline_comments_spec.cr | ||
issue_spec.cr | ||
reportable_spec.cr | ||
runner_spec.cr | ||
source_spec.cr | ||
tokenizer_spec.cr |