Commit graph

766 commits

Author SHA1 Message Date
Sijawusz Pur Rahnama
6bf8db81e3 Refactor Lint/StaticComparison to LiteralsComparison 2022-11-02 02:00:37 +01:00
Sijawusz Pur Rahnama
23ca87ff0e
Merge pull request #292 from crystal-ameba/Sija/lint-static-comparison 2022-11-01 11:12:19 +01:00
Sijawusz Pur Rahnama
ea42911c3c Extend StaticComparison w/ support of === operator 2022-11-01 03:35:20 +01:00
Sijawusz Pur Rahnama
849be52618 Add Lint/StaticComparison rule 2022-11-01 03:34:28 +01:00
Sijawusz Pur Rahnama
078c83c2d7
Merge pull request #291 from crystal-ameba/Sija/lint-not-nil-with-no-bang-rule
Add `Lint/NotNilAfterNoBang` rule
2022-11-01 02:16:48 +01:00
Sijawusz Pur Rahnama
63407c1bd1 Rename to Lint/NotNilAfterNoBang 2022-11-01 02:13:04 +01:00
Sijawusz Pur Rahnama
9515e624c3 Add Lint/NotNilWithNoBang rule 2022-10-31 14:17:47 +01:00
Sijawusz Pur Rahnama
8d4a4dfd7a
Merge pull request #290 from crystal-ameba/Sija/remove-trailing-dots-from-rule-descriptions
Remove trailing dots from rule descriptions
2022-10-30 23:51:32 +01:00
Sijawusz Pur Rahnama
038a3657c0
Merge pull request #288 from crystal-ameba/Sija/lint-not-nil-rule
Add `Lint/NotNil` rule
2022-10-30 23:50:38 +01:00
Sijawusz Pur Rahnama
d942524efa Remove trailing dots from rule descriptions 2022-10-30 21:53:09 +01:00
Sijawusz Pur Rahnama
eb64fde437 Fix few issues reported by the newly added rule 2022-10-30 21:44:55 +01:00
Sijawusz Pur Rahnama
67356f246b Add Lint/NotNil rule 2022-10-30 21:36:47 +01:00
Sijawusz Pur Rahnama
6834292265
Merge pull request #287 from crystal-ameba/enable-lint-empty-expression-by-default
Enable `Lint/EmptyExpression` by default
2022-10-30 21:01:28 +01:00
Sijawusz Pur Rahnama
e503c9393a
Merge pull request #289 from crystal-ameba/Sija/fix-corrector-remove-leading-trailing-methods
Fix `Source::Corrector#remove_{leading,trailing}` methods
2022-10-30 21:00:52 +01:00
Sijawusz Pur Rahnama
e54e5d0534 Fix Source::Corrector#remove_{leading,trailing} methods 2022-10-30 19:50:25 +01:00
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