Commit graph

551 commits

Author SHA1 Message Date
Sijawusz Pur Rahnama
2d3bca7b1a
Enable Lint/EmptyExpression by default 2022-10-30 15:30:55 +01:00
Sijawusz Pur Rahnama
09aea3da32
Merge pull request #286 from crystal-ameba/Sija/fix-issue-285 2022-10-30 10:46:21 +01:00
Sijawusz Pur Rahnama
400954ebb5 Use String#hash instead of Digest::SHA1.hexdigest 2022-10-29 21:49:00 +02:00
Sijawusz Pur Rahnama
4700ae7649
Merge pull request #282 from crystal-ameba/Sija/fix-issue-270
Populate `Rule::Base+.parsed_doc` on compile time
2022-10-29 18:12:55 +02:00
Sijawusz Pur Rahnama
ca2c5a7273 Small refactor to DocFinder#visit 2022-10-29 18:07:52 +02:00
Sijawusz Pur Rahnama
d55b93c866 Rename read_rule_doc -> read_type_doc
Also, move the helper script into the `contrib` directory
2022-10-29 18:03:30 +02:00
Sijawusz Pur Rahnama
a9ae491aca
Merge pull request #280 from crystal-ameba/Sija-verbose-block-configuration-example-typo 2022-10-29 11:59:06 +02:00
Sijawusz Pur Rahnama
0025cb8486
Merge pull request #281 from crystal-ameba/Sija/reduce-not-nil-usage 2022-10-29 11:58:08 +02:00
Sijawusz Pur Rahnama
3d61254739 Populate Rule::Base+.parsed_doc on compile time 2022-10-29 01:35:34 +02:00
Sijawusz Pur Rahnama
ffc712a838 Reduce usage of Object#not_nil! 2022-10-29 00:03:39 +02:00
Sijawusz Pur Rahnama
4063290530
Fix typo in a Style/VerboseBlock configuration example 2022-10-28 23:48:47 +02:00
Vitalii Elenhaupt
cac1ce4138
Bump crystal version 2022-10-15 09:33:37 +03:00
Vitalii Elenhaupt
de97e8c23e
Bump v1.2.0 2022-10-14 21:12:51 +03:00
Vitalii Elenhaupt
60bf8e13ce
fix(style): properly tokenize in RedundantBegin rule 2022-10-14 21:09:30 +03:00
Vitalii Elenhaupt
80532da357
Merge pull request #277 from crystal-ameba/crystal-1.6
Crystal 1.6 support
2022-10-14 21:09:02 +03:00
Vitalii Elenhaupt
d2fbf484f4
Crystal 1.6 support 2022-10-14 20:55:29 +03:00
Vitalii Elenhaupt
97acedaec8
Remove funding 2022-08-25 10:23:02 +03:00
Sijawusz Pur Rahnama
a8fa39f34c
Merge pull request #273 from crystal-ameba/bump-1.1 2022-08-25 09:01:31 +02:00
Vitalii Elenhaupt
b46a8807d9
Add support of crystal 1.5 2022-08-25 09:29:15 +03:00
Vitalii Elenhaupt
a8c00dbc15
Bump v1.0.1 2022-08-02 09:56:22 +03:00
Anton Maminov
1bef5fc5c1
fix restriction issue (#271)
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
2022-08-01 23:50:30 +02:00
Vitalii Elenhaupt
8a12229116
Merge pull request #269 from carlhoerberg/build-with-mt
Build ameba with MT by default
2022-05-04 11:23:51 +03:00
Carl Hörberg
ff97ec33f6 Build ameba with MT by default
The speed up is considerable.
2022-05-03 20:35:24 +02:00
Sijawusz Pur Rahnama
f0bf89f85f
Merge pull request #268 from crystal-ameba/fix-issue-267
Fix regression in `AnyInsteadOfEmpty` rule
2022-04-22 16:43:11 +02:00
Sijawusz Pur Rahnama
fbd72a5171 Fix regression in AnyInsteadOfEmpty rule 2022-04-22 00:58:37 +02:00
Vitalii Elenhaupt
73bd1ba5a3
Correct Ameba version in sample 2022-04-10 20:05:09 +03:00
Vitalii Elenhaupt
e9fbfe5048
Bump v1.0.0 2022-04-08 10:32:52 +03:00
Vitalii Elenhaupt
c914c9d299
Merge pull request #263 from crystal-ameba/tighten-crystal-constraint
Change `crystal` version constraint to `~> 1.4.0`
2022-04-06 10:49:14 +03:00
Sijawusz Pur Rahnama
5d4c916bd3
Change crystal version constraint to ~> 1.4.0 2022-04-05 17:42:08 +02:00
Sijawusz Pur Rahnama
734e55fbab
Merge pull request #259 from crystal-ameba/fix/crystal-nightly 2022-04-05 14:49:47 +02:00
Sijawusz Pur Rahnama
e2faffacfe
Merge branch 'master' into fix/crystal-nightly 2022-04-05 00:37:48 +02:00
Sijawusz Pur Rahnama
348406b7d2
Merge pull request #261 from crystal-ameba/convert-more-specs-to-use-assertion-helpers
Convert more specs to use assertion helpers
2022-04-05 00:24:19 +02:00
Sijawusz Pur Rahnama
20db75a54a Fix typo in UnneededDisableDirective rule spec filename 2022-04-04 22:30:23 +02:00
Sijawusz Pur Rahnama
48d0089d23 Add some whitespaces for readability 2022-04-04 22:17:41 +02:00
Sijawusz Pur Rahnama
306bc34019 Use issue expectation helpers in Performance::FirstLastAfterFilter rule spec 2022-04-04 22:17:13 +02:00
Sijawusz Pur Rahnama
119e20d5e5 Use issue expectation helpers in Performance::SizeAfterFilter rule spec 2022-04-04 22:17:02 +02:00
Sijawusz Pur Rahnama
e0867c04b0 Use issue expectation helpers in Performance::MapInsteadOfBlock rule spec 2022-04-04 22:16:48 +02:00
Sijawusz Pur Rahnama
6f30881ae6 Use issue expectation helpers in Performance::FlattenAfterMap rule spec 2022-04-04 22:16:37 +02:00
Sijawusz Pur Rahnama
931dc3d2dc Use issue expectation helpers in Performance::CompactAfterMap rule spec 2022-04-04 22:16:21 +02:00
Sijawusz Pur Rahnama
b54f0f0738 Use issue expectation helpers in Metrics::CyclomaticComplexity rule spec 2022-04-04 22:15:43 +02:00
Sijawusz Pur Rahnama
8a37d5bbe2 Use issue expectation helpers in Layout::LineLength rule spec 2022-04-04 22:15:07 +02:00
Sijawusz Pur Rahnama
390b26d7f1 Use issue expectation helpers in Lint::AmbiguousAssignment rule spec 2022-04-04 21:32:46 +02:00
Sijawusz Pur Rahnama
caeb1609c9 Use issue expectation helpers in Lint::BadDirective rule spec 2022-04-04 21:27:04 +02:00
Sijawusz Pur Rahnama
5283ae4a96 Use issue expectation helpers in Lint::EmptyLoop rule spec 2022-04-04 21:23:17 +02:00
Sijawusz Pur Rahnama
3cbb388393 Use issue expectation helpers in Lint::HashDuplicatedKey rule spec 2022-04-04 21:20:13 +02:00
Sijawusz Pur Rahnama
18316eaa8b Use issue expectation helpers in Lint::LiteralInInterpolation rule spec 2022-04-04 21:16:48 +02:00
Sijawusz Pur Rahnama
7f85434c85 Use issue expectation helpers in Lint::RandZero rule spec 2022-04-04 21:14:45 +02:00
Sijawusz Pur Rahnama
c58d4cc65a Use issue expectation helpers in Lint::Syntax rule spec 2022-04-04 21:11:04 +02:00
Sijawusz Pur Rahnama
c89d32fcf6 Use issue expectation helpers in Lint::UselessConditionInWhen rule spec 2022-04-04 21:11:04 +02:00
Sijawusz Pur Rahnama
c8daaf4324 Use issue expectation helpers in Lint::UnneededDisableDirective rule spec 2022-04-04 21:10:54 +02:00