Commit graph

427 commits

Author SHA1 Message Date
Sijawusz Pur Rahnama
651f70f680
Update spec/ameba/ast/visitors/counting_visitor_spec.cr 2021-06-05 20:49:00 +02:00
Caspian Baska
c49c69ed9f
Early return in CountVisitor if macro node
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
2021-06-06 04:12:56 +10:00
Caspian Baska
0ea6238dc6
Count an exhaustive case's complexity as 1 2021-06-05 22:31:58 +10:00
Vitalii Elenhaupt
df14fda0d8
Bump v0.14.3 2021-04-18 20:56:36 +03:00
Vitalii Elenhaupt
a64f48b543
ShadowingOuterLocalVar while it is not in macro
closes #224
2021-04-18 20:55:10 +03:00
Vitalii Elenhaupt
cd18c6a000
Merge pull request #229 from crystal-ameba/fix/performance-in-specs
Disable performance rules for spec files
2021-04-18 09:41:41 +03:00
Vitalii Elenhaupt
9e2d4f1856
Disable performance rules for spec files
closes #220
2021-04-18 09:39:55 +03:00
Vitalii Elenhaupt
7c586eb9e5
Merge pull request #227 from stephendolan/screencast-embed
Embed a screencast tutorial in README
2021-04-13 19:17:23 +03:00
Stephen Dolan
42ac0664d7
Remove additional manual &nbsp;
Co-authored-by: Vitalii Elenhaupt <3624712+veelenga@users.noreply.github.com>
2021-04-13 09:08:30 -04:00
Stephen Dolan
8de1e0905a Embed screencast in README 2021-04-12 14:43:26 -04:00
Sijawusz Pur Rahnama
ecbea0b470
Merge pull request #226 from crystal-ameba/fix-issue-208 2021-04-12 11:42:55 +02:00
Sijawusz Pur Rahnama
788e0a3fad Enable MapInsteadOfBlock rule again 2021-04-12 06:23:03 +02:00
Sijawusz Pur Rahnama
2694a0c865 Remove “join” from the list of trigger methods 2021-04-12 06:22:54 +02:00
Vitalii Elenhaupt
9a25214bb5
Merge branch 'develop' 2021-04-04 21:19:55 +03:00
Vitalii Elenhaupt
ecafa271ee
Freebsd compatiblity
closes #167
2021-04-04 21:16:41 +03:00
Vitalii Elenhaupt
58d7775d65
Merge branch 'master' into develop 2021-04-04 21:08:02 +03:00
Sijawusz Pur Rahnama
f5628e6a11
Merge pull request #223 from crystal-ameba/fix-issue-219
Skip macro code in `Style/IsAFilter` rule
2021-04-04 13:36:38 +02:00
Sijawusz Pur Rahnama
8d21733b10 Skip macro code in Style/IsAFilter rule 2021-04-04 11:19:45 +02:00
Vitalii Elenhaupt
4a6511cfea
Bump 0.14.2 2021-03-29 09:17:30 +03:00
Vitalii Elenhaupt
0881b861d7
Disable MapInsteadOfBlock by default
refs #208
2021-03-29 09:15:18 +03:00
Stephen Dolan
04ba9cd57a
Change Style/VerboseBlock - ExcludeOperators - setting default (#218) 2021-03-24 21:16:51 +01:00
Sijawusz Pur Rahnama
f4ffb8a287
Merge pull request #216 from crystal-ameba/is_a_filter_in_multi_args_block
Do not report IsAFilter if there is a block with multiple args
2021-03-23 21:30:09 +01:00
Sijawusz Pur Rahnama
975ff31099
Merge pull request #217 from kachick/revert-215-follow-crystal-1.0.0
Revert "Follow crystal 1.0.0 in shard.yml"
2021-03-23 21:27:04 +01:00
Kenichi Kamiya
e7b7b10081
Revert "Follow crystal 1.0.0 in shard.yml" 2021-03-24 03:58:40 +09:00
Vitalii Elenhaupt
13605afe4a
Do not report IsAFilter if there is a block with multiple args 2021-03-23 20:57:50 +02:00
Vitalii Elenhaupt
320ec2ba75
Merge pull request #215 from kachick/follow-crystal-1.0.0
Follow crystal 1.0.0 in shard.yml
2021-03-23 18:20:46 +02:00
Kenichi Kamiya
ef91c0ea11 Follow crystal 1.0.0 in shard.yml 2021-03-24 01:10:16 +09:00
Vitalii Elenhaupt
6aaf398c43
Bump v0.14.1 2021-03-14 16:20:42 +02:00
Vitalii Elenhaupt
ad405e09b0
Merge branch 'master' into develop 2021-03-08 11:09:32 +02:00
Sijawusz Pur Rahnama
c1deb8ab73
Use alpine:latest image in Dockerfile 2021-03-08 11:08:31 +02:00
Sijawusz Pur Rahnama
e32f1dd673
Merge pull request #210 from crystal-ameba/tweak-verbose-block-rule-defaults 2021-03-03 16:12:49 +01:00
Sijawusz Pur Rahnama
56110b3883 Default to exclude_multiple_line_blocks in Style/VerboseBlock rule 2021-03-03 00:31:53 +01:00
Sijawusz Pur Rahnama
6e622456ff
Merge pull request #209 from crystal-ameba/Sija/fix-missed-operator
Add ~ as the prefix operator to the Style/VerboseBlock rule
2021-03-02 15:28:00 +01:00
Sijawusz Pur Rahnama
8f308e73e5 Add ~ as the prefix operator 2021-03-02 12:40:46 +01:00
Vitalii Elenhaupt
d8c32f0045
Merge pull request #207 from crystal-ameba/release/0.14.0
Release 0.14.0
2021-02-24 10:09:47 +02:00
Vitalii Elenhaupt
3a1ee7fa21
Correct yml examples 2021-02-11 11:01:30 +02:00
Sijawusz Pur Rahnama
bf64c8242b Bump to v0.14.0 2021-02-08 21:03:34 +01:00
Sijawusz Pur Rahnama
a169b12b99
Merge pull request #201 from crystal-ameba/feature/verbose-block-rule
Add Style/VerboseBlock rule
2021-02-08 15:13:01 +01:00
Sijawusz Pur Rahnama
694c41650c Remove redundant check and add a few more test cases 2021-02-05 01:23:29 +01:00
Sijawusz Pur Rahnama
a9d1b17deb Support named arguments in VerboseBlock#node_to_s 2021-02-05 01:23:29 +01:00
Sijawusz Pur Rahnama
16743a756c Add ExcludePrefixOperators option to Style/VerboseBlock rule 2021-02-04 21:59:23 +01:00
Sijawusz Pur Rahnama
eed094b928 Fix couple of edge-cases in VerboseBlock rule 2021-02-04 21:59:23 +01:00
Sijawusz Pur Rahnama
5faf8da81c Split VerboseBlock#test method into a smaller pieces 2021-02-04 21:59:23 +01:00
Sijawusz Pur Rahnama
4b7f3ba6ee Add MaxLineLength option to Style/VerboseBlock rule 2021-02-04 21:59:22 +01:00
Sijawusz Pur Rahnama
a53d44617d Fix newly found issues 2021-02-04 21:59:22 +01:00
Sijawusz Pur Rahnama
0739fad670 Add Style/VerboseBlock rule 2021-02-04 21:59:22 +01:00
Vitalii Elenhaupt
7697663fec
Merge pull request #205 from crystal-ameba/master-into-develop
Merge master into develop
2021-02-04 08:00:11 +02:00
Sijawusz Pur Rahnama
99da6b6916 Merge remote-tracking branch 'origin/master' into master-into-develop 2021-02-03 22:45:35 +01:00
Vitalii Elenhaupt
d8aa218e20
NewRule: SpecFocus (#204)
* NewRule: SpecFocus

closes #172

* Utilize Source#spec?
2021-02-03 17:36:39 +02:00
Vitalii Elenhaupt
f8c22a6e77
Utilize Source#spec? 2021-02-03 17:25:46 +02:00