Sijawusz Pur Rahnama
|
4d0125a0f3
|
Fix Style/VerboseBlock rule to work with binary operations
|
2023-06-29 08:15:39 +02:00 |
|
Sijawusz Pur Rahnama
|
4d8346509e
|
Implement Documentation rule on top of the ScopeVisitor
|
2023-06-08 02:04:06 +02:00 |
|
Sijawusz Pur Rahnama
|
1a9a58b3cd
|
Add Lint/Documentation rule
|
2023-05-29 16:32:51 +02:00 |
|
Sijawusz Pur Rahnama
|
14f6ba0c0b
|
Merge pull request #323 from crystal-ameba/Sija/lint-not-nil-after-no-bang-reports-rindex-calls
Make `Lint/NotNilAfterNoBang` report calls to `#rindex`
|
2023-05-01 11:16:42 +02:00 |
|
Vitalii Elenhaupt
|
17e9566c7e
|
fix(lint): Lint/UnusedBlockArgument is triggered by abstract def
closes #352
|
2023-02-19 10:51:52 +02:00 |
|
Vitalii Elenhaupt
|
e7f4bb6ae3
|
Fix wording
|
2023-02-07 22:24:52 +02:00 |
|
Vitalii Elenhaupt
|
61a45d4321
|
Rework tests
|
2023-02-07 22:21:09 +02:00 |
|
Vitalii Elenhaupt
|
14a9ec3a75
|
Incorporate changes for shadowing outer local var
|
2023-02-04 20:53:41 +02:00 |
|
Vitalii Elenhaupt
|
ddbcf5cb3f
|
fix(lint): useless assignment for type definition
closes #342
|
2023-02-04 16:57:46 +02:00 |
|
Sijawusz Pur Rahnama
|
ce4dd7236a
|
Make Lint/NotNilAfterNoBang report calls to #rindex
|
2023-01-10 13:37:28 +01:00 |
|
Sijawusz Pur Rahnama
|
8e86374d08
|
Remove outdated spec
|
2023-01-10 13:10:05 +01:00 |
|
Sijawusz Pur Rahnama
|
d31e41b8a7
|
Fix specs on Crystal nightly (soon to be v1.7.0)
|
2023-01-10 13:10:05 +01:00 |
|
Sijawusz Pur Rahnama
|
6f0b6ffcd0
|
Remove buggy auto-correction from Performance/AnyInsteadOfEmpty rule
|
2023-01-04 02:40:07 +01:00 |
|
Sijawusz Pur Rahnama
|
bbbfdfc5a2
|
Tweak reported location for Lint/UnusedBlockArgument
|
2022-12-23 14:46:23 +01:00 |
|
Sijawusz Pur Rahnama
|
2d9e328d97
|
Merge pull request #325 from FnControlOption/unless_else
Add autocorrect for `Style/UnlessElse`
|
2022-12-22 21:43:49 +01:00 |
|
Sijawusz Pur Rahnama
|
4f8b79ec6b
|
Merge pull request #324 from crystal-ameba/Sija/extend-several-rule-with-corrections
Extend `Lint/UnusedArgument` and `Lint/UnusedBlockArgument` rules with corrections
|
2022-12-22 18:42:35 +01:00 |
|
Sijawusz Pur Rahnama
|
3586b4242f
|
Extend Lint/UnusedBlockArgument rule with corrections
|
2022-12-22 17:15:46 +01:00 |
|
Sijawusz Pur Rahnama
|
f26cd7f823
|
Extend Lint/UnusedArgument rule with corrections
|
2022-12-22 17:15:46 +01:00 |
|
Sijawusz Pur Rahnama
|
b9bc5aaab2
|
Merge pull request #327 from crystal-ameba/Sija/specs-cleanup
|
2022-12-22 12:08:44 +01:00 |
|
Sijawusz Pur Rahnama
|
232c16d743
|
Add spec for 10000 Int128 literal in Style/LargeNumbers
|
2022-12-21 21:15:17 +01:00 |
|
Sijawusz Pur Rahnama
|
cfea0fda34
|
Fix typo
|
2022-12-21 21:14:29 +01:00 |
|
Sijawusz Pur Rahnama
|
9926f0295a
|
Remove most of the obsolete specs
|
2022-12-21 21:13:22 +01:00 |
|
Sijawusz Pur Rahnama
|
1ba6fcb55c
|
Enhance spec helpers a bit in re: to the spec context
|
2022-12-21 17:34:17 +01:00 |
|
Sijawusz Pur Rahnama
|
e9f3bbaeff
|
Fail with the additional context
|
2022-12-21 17:34:10 +01:00 |
|
Sijawusz Pur Rahnama
|
7c617b5a7b
|
Make spec helper methods private
|
2022-12-21 17:34:05 +01:00 |
|
Sijawusz Pur Rahnama
|
cabf203e0d
|
Merge pull request #326 from crystal-ameba/Sija/lint-formatting
|
2022-12-20 16:20:48 +01:00 |
|
Sijawusz Pur Rahnama
|
597372c645
|
Add Lint/MissingBlockArgument rule
|
2022-12-20 15:31:14 +01:00 |
|
Sijawusz Pur Rahnama
|
3bc8bda008
|
Add Lint/Formatting rule
|
2022-12-20 04:10:56 +01:00 |
|
Sijawusz Pur Rahnama
|
4e3caf2986
|
Few tweaks and readability refactors
|
2022-12-20 03:26:13 +01:00 |
|
Sijawusz Pur Rahnama
|
70078cf77f
|
Synchronize properties context names in rules’ specs
|
2022-12-20 03:25:10 +01:00 |
|
Sijawusz Pur Rahnama
|
8112dddc8f
|
Specs cleanup
|
2022-12-20 03:25:06 +01:00 |
|
fn ⌃ ⌥
|
d7795c0d7d
|
Add autocorrect for Style/UnlessElse
|
2022-12-19 06:40:28 -08:00 |
|
Sijawusz Pur Rahnama
|
7f6bd2289e
|
Do not report unused block arguments in Lint/UnusedArgument rule
|
2022-12-15 18:35:16 +01:00 |
|
Sijawusz Pur Rahnama
|
858557bc07
|
Add Lint/UnusedBlockArgument rule
|
2022-12-15 18:35:16 +01:00 |
|
Sijawusz Pur Rahnama
|
9df66e890b
|
Do not report anonymous block arguments in Lint/UnusedArgument
|
2022-12-12 18:21:19 +01:00 |
|
Sijawusz Pur Rahnama
|
99c81d3630
|
Add spec for positive case in macro scope in Lint/LiteralsComparison rule
|
2022-12-09 23:53:39 +01:00 |
|
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
|
38eb5d5e50
|
Fix invalid crystal syntax in Lint/Syntax rule spec
|
2022-11-23 03:26:55 +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 |
|