Sijawusz Pur Rahnama
|
2fb453c61f
|
Add additional spec for Lint/NotNil rule
|
2022-12-08 17:47:22 +01:00 |
|
Sijawusz Pur Rahnama
|
7d88455b7f
|
Add corrector to the Style/IsANil rule
|
2022-12-08 13:58:35 +01:00 |
|
Sijawusz Pur Rahnama
|
071a8b7afb
|
Consistently use CRYSTAL marker for heredocs with crystal code
|
2022-12-08 13:57:46 +01:00 |
|
Sijawusz Pur Rahnama
|
2cb8c1381f
|
Don’t treat crystal paths as literals in Lint/LiteralsComparison
|
2022-12-08 13:55:29 +01:00 |
|
Sijawusz Pur Rahnama
|
e18da84ede
|
Add requested spec
|
2022-12-08 02:16:16 +01:00 |
|
Sijawusz Pur Rahnama
|
1524aad299
|
Add Style/QueryBoolMethods rule
|
2022-12-08 02:16:16 +01:00 |
|
Sijawusz Pur Rahnama
|
33ef9c6293
|
Refactor ExplainFormatter
|
2022-11-28 11:38:41 +01:00 |
|
Sijawusz Pur Rahnama
|
38eb5d5e50
|
Fix invalid crystal syntax in Lint/Syntax rule spec
|
2022-11-23 03:26:55 +01:00 |
|
Sijawusz Pur Rahnama
|
2c67fe2c3f
|
Use tuple instead of an array
|
2022-11-23 03:23:42 +01:00 |
|
Sijawusz Pur Rahnama
|
60813e4899
|
Test generated boolean rule property
|
2022-11-22 19:53:27 +01:00 |
|
Sijawusz Pur Rahnama
|
9f670c09b5
|
Refactor TODOFormatter spec
|
2022-11-22 19:52:32 +01:00 |
|
Sijawusz Pur Rahnama
|
c7c75ee36a
|
Rule#enabled -> Rule#enabled?
|
2022-11-22 19:47:37 +01:00 |
|
Sijawusz Pur Rahnama
|
6bd18f9cbf
|
Fix typo
|
2022-11-22 19:43:52 +01:00 |
|
Sijawusz Pur Rahnama
|
5ee4074c1b
|
Rename RedundantParentheses -> ParenthesesAroundCondition
Also rename the option: `parenthesized_assignments` -> `allow_safe_assignment`
|
2022-11-18 21:06:51 +01:00 |
|
Sijawusz Pur Rahnama
|
0b0a815c31
|
Add additional test case
|
2022-11-18 07:04:51 +01:00 |
|
Sijawusz Pur Rahnama
|
eabe463386
|
Instead of adding the new rule to support enforcing parens around assignments, refactor existing RedundantParentheses rule
|
2022-11-18 05:27:05 +01:00 |
|
Sijawusz Pur Rahnama
|
496e8930e2
|
Merge pull request #303 from crystal-ameba/Sija/lint-literal-assignments-in-expressions-rule
Add `Lint/LiteralAssignmentsInExpressions` rule
|
2022-11-17 14:19:17 +01:00 |
|
Sijawusz Pur Rahnama
|
95d68114c7
|
Fix typos throughout the code
|
2022-11-16 16:55:32 +01:00 |
|
Sijawusz Pur Rahnama
|
5c08b64e72
|
Add Lint/LiteralAssignmentsInExpressions rule
|
2022-11-16 15:08:41 +01:00 |
|
Sijawusz Pur Rahnama
|
28e2871165
|
Merge pull request #301 from crystal-ameba/Sija/style-redundant-parentheses-rule
Add `Style/RedundantParentheses` rule
|
2022-11-16 12:22:39 +01:00 |
|
Sijawusz Pur Rahnama
|
935296b041
|
Refactor ternary handling in Style/RedundantParentheses rule
|
2022-11-16 03:54:31 +01:00 |
|
Sijawusz Pur Rahnama
|
2fb37da80f
|
Refactor AST::Util#literal? helper
|
2022-11-15 17:42:08 +01:00 |
|
Sijawusz Pur Rahnama
|
cbf5d3de74
|
Add Style/RedundantParentheses rule
|
2022-11-15 15:17:32 +01:00 |
|
Sijawusz Pur Rahnama
|
04b19a60db
|
Merge pull request #300 from crystal-ameba/Sija/some-refactors
Misc refactors
|
2022-11-14 17:27:29 +01:00 |
|
Sijawusz Pur Rahnama
|
e668ba5bf5
|
Readability-related refactors
|
2022-11-14 02:26:52 +01:00 |
|
Sijawusz Pur Rahnama
|
52bf0a5be4
|
Refactor Style/PredicateName rule
Do not report `has_<name>?` method names
|
2022-11-13 20:12:23 +01:00 |
|
Vitalii Elenhaupt
|
2811352cae
|
Merge pull request #298 from crystal-ameba/Sija/fix-specs-on-crystal-nightly
Fix specs on Crystal nightly
|
2022-11-13 21:07:29 +02:00 |
|
Sijawusz Pur Rahnama
|
5f46612e89
|
Remove obsolete spec
|
2022-11-13 01:32:49 +01:00 |
|
Sijawusz Pur Rahnama
|
84540d2a22
|
Change to alternative approach skipping all macro contexts
|
2022-11-13 01:25:24 +01:00 |
|
Sijawusz Pur Rahnama
|
5491d31b5f
|
Fix the edge case re: free var comparison
|
2022-11-13 01:24:59 +01:00 |
|
Sijawusz Pur Rahnama
|
6bf8db81e3
|
Refactor Lint/StaticComparison to LiteralsComparison
|
2022-11-02 02:00:37 +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
|
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
|
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
|
ffc712a838
|
Reduce usage of Object#not_nil!
|
2022-10-29 00:03:39 +02:00 |
|
Vitalii Elenhaupt
|
60bf8e13ce
|
fix(style): properly tokenize in RedundantBegin rule
|
2022-10-14 21:09:30 +03:00 |
|
Sijawusz Pur Rahnama
|
fbd72a5171
|
Fix regression in AnyInsteadOfEmpty rule
|
2022-04-22 00:58:37 +02:00 |
|
Sijawusz Pur Rahnama
|
e2faffacfe
|
Merge branch 'master' into fix/crystal-nightly
|
2022-04-05 00:37:48 +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 |
|