Commit Graph

957 Commits

Author SHA1 Message Date
Vitalii Elenhaupt b6cc454039
New rule: RedundantWithIndex (#120) 2019-11-10 09:29:17 +02:00
Vitalii Elenhaupt 4a54f6d347
Preserve run_file
closes #119
2019-11-09 23:15:01 +02:00
Vitalii Elenhaupt 07e72b7bf9
Lint in parallel (#118)
* Lint in parallel

* Synced output for dot/flycheck formatters

* Re-raise exceptions raised in fibers

* Add readme instructions
2019-11-09 19:31:41 +02:00
Vitalii Elenhaupt 8d00d54012
Fix typos 2019-10-28 00:02:31 +02:00
Vitalii Elenhaupt 4ae0195628
Avoid duplicated sections in a generated TODO file (additional fix) 2019-10-27 22:56:53 +02:00
Vitalii Elenhaupt 111596541b
Avoid duplicated sections in a generated TODO file 2019-10-27 22:15:04 +02:00
Vitalii Elenhaupt 19d9223ec1
Properly detect if scope references a variable 2019-10-27 21:53:07 +02:00
Vitalii Elenhaupt 904b5beec2
Lint/UnusedArgument: fails to recognized used argument inside macro
closes #117
2019-10-27 21:32:55 +02:00
Vitalii Elenhaupt 677c75716f
Typeof scope 2019-10-27 21:22:33 +02:00
Vitalii Elenhaupt 2704a0d8b1
Do not generate todo file there are no issues 2019-10-27 17:49:30 +02:00
Vitalii Elenhaupt 8a27a36c49
Bump v0.10.1 2019-09-14 18:33:28 +03:00
Sijawusz Pur Rahnama d418fb0ef7 Surround __DIR__ with quotes to handle paths with spaces (#114) 2019-09-14 18:31:55 +03:00
Vitalii Elenhaupt 504f537208
Parse docs 2019-07-22 16:23:59 +03:00
Vitalii Elenhaupt 8843235f5f
Change link to travis 2019-07-20 15:26:48 +03:00
Vitalii Elenhaupt cc73602e75
Update links in readme 2019-07-20 15:18:35 +03:00
Vitalii Elenhaupt f135389181
New logo 2019-07-20 15:04:36 +03:00
Vitalii Elenhaupt 9065a5f414
Remove unneeded code to support crystal 0.24.2 2019-07-19 23:51:30 +03:00
Vitalii Elenhaupt 276fc4409f
Let it be extensible (#112) 2019-07-18 13:53:04 +03:00
Vitalii Elenhaupt b868d88a85
CyclomaticCompexity: report onle def name 2019-07-12 23:33:08 +03:00
Vitalii Elenhaupt 54706192d2
Default cmd args 2019-07-06 22:42:50 +03:00
Vitalii Elenhaupt 0c7811411e
Increment compatible Crystal version 2019-06-06 19:12:31 +03:00
Vitalii Elenhaupt cb4c3a9d17
Version bump 0.10.0 2019-06-06 19:11:23 +03:00
Vitalii Elenhaupt ffa5dc9b4c
Crystal 0.29 fixes (#109)
* Fixes vs crystal head

* Use crystal nightly

* Remove trailing ? from local variable

* Do not use ? in the lhs

ref https://github.com/crystal-lang/crystal/issues/6685#issuecomment-419758587

* Upgrade to crystal 0.29.0 (warnings free) (#108)

* Remove trailing ? from local variable (take 2)

* Fix Time.now deprecation warnings

* Remove Crystal nightly
2019-06-06 19:10:26 +03:00
Vitalii Elenhaupt 633a08f9c7
Create FUNDING.yml 2019-06-04 19:52:00 +03:00
Vitalii Elenhaupt ed66054596
Bump v0.9.2 2019-06-03 18:28:08 +03:00
Vitalii Elenhaupt 037d1dde74
Performance/FirstLastAfterFilter: ignore .first/.last with args
closes #104
2019-06-03 18:25:48 +03:00
Vitalii Elenhaupt 9e2061cbf6
Add executables back 2019-05-19 20:46:40 +03:00
Vitalii Elenhaupt a4da1972aa
Remove executables 2019-05-19 16:45:04 +03:00
Vitalii Elenhaupt de587f500a
Rename Severity::Refactoring -> Severity::Convention
it preserves clang format
2019-05-11 21:17:49 +03:00
Vitalii Elenhaupt 94e1d4567a
Properly report performance rules in macros
closes #102
2019-05-05 18:05:08 +03:00
Vitalii Elenhaupt 2ddf26b8c3
Correct doc example 2019-04-29 16:27:12 +03:00
Vitalii Elenhaupt ca5e894e0b
Rename Severity.from_name to Severity.parse 2019-04-26 18:15:36 +03:00
Vitalii Elenhaupt af395a3c13
Do not report if disabled rules exist
closes #101
2019-04-25 08:47:37 +03:00
Vitalii Elenhaupt 4000ac7d4d
Refresh readme example 2019-04-14 19:37:03 +03:00
Vitalii Elenhaupt 42235c02be
Merge pull request #100 from veelenga/feat/severity
Severity
2019-04-14 19:35:55 +03:00
Vitalii Elenhaupt f1fe34f8b9
Use Enum.parse 2019-04-14 19:31:50 +03:00
Vitalii Elenhaupt 117e100855
Add severity to formatters 2019-04-14 16:45:31 +03:00
Vitalii Elenhaupt 575fe07879
Change the level of failure in the runner 2019-04-14 15:57:48 +03:00
Vitalii Elenhaupt f6a57f9272
Set default severities 2019-04-14 12:15:38 +03:00
Vitalii Elenhaupt 0be42f94db
Convertable severity 2019-04-13 21:16:59 +03:00
Vitalii Elenhaupt c95ea297bd
Stop calculating cyclomatic complexity for methods which have Macro conditions (#99) 2019-03-31 20:27:20 +03:00
Vitalii Elenhaupt a0da393429
Version bump v0.9.1 2019-03-23 19:26:35 +02:00
Vitalii Elenhaupt a059ade305
Remove one-line methods
Unnecessary level of abstraction
2019-03-23 19:25:16 +02:00
Vitalii Elenhaupt 3a71b86193
Properly report literals (#96) 2019-03-23 19:20:32 +02:00
Vitalii Elenhaupt 43bb29d3fd
Link VSCode ext 2019-03-02 16:38:03 +02:00
Vitalii Elenhaupt d2b36047ef
Correct variable name rule doc 2019-02-24 20:04:35 +02:00
Vitalii Elenhaupt 3dabfb8dec
Correct json formatter output example 2019-02-24 20:04:04 +02:00
Sijawusz Pur Rahnama e8a68a80d5 Fix several misspellings (#94) 2019-02-23 07:06:28 +02:00
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
Sijawusz Pur Rahnama c4016bd28c Use ~> operator in README installation section (#89) 2019-02-04 18:52:09 +02:00