Sijawusz Pur Rahnama
|
67356f246b
|
Add Lint/NotNil rule
|
2022-10-30 21:36:47 +01:00 |
|
Sijawusz Pur Rahnama
|
e2faffacfe
|
Merge branch 'master' into fix/crystal-nightly
|
2022-04-05 00:37:48 +02:00 |
|
Sijawusz Pur Rahnama
|
614fcfa6a8
|
Skip macro scopes in ShadowingOuterLocalVar
|
2022-04-04 01:38:04 +02:00 |
|
Sijawusz Pur Rahnama
|
353d09df29
|
Rename file according to the rule name
|
2022-04-04 00:42:22 +02:00 |
|
Vitalii Elenhaupt
|
8d4730182f
|
Rework breaking specs, break backward compatibility
|
2022-04-04 00:59:21 +03:00 |
|
Vitalii Elenhaupt
|
03adc20872
|
Pass on crystal-nightly
|
2022-03-11 14:15:05 +02:00 |
|
Sijawusz Pur Rahnama
|
66ee7642cf
|
Add Lint/DebugCalls rule
|
2021-12-31 16:44:02 +01:00 |
|
fn ⌃ ⌥
|
f288cc3c4f
|
Add Style/GuardClause rule (#254)
|
2021-12-09 21:33:47 +01:00 |
|
fn ⌃ ⌥
|
63a6c73dc0
|
Autocorrect various rules (#253)
|
2021-11-16 22:30:33 +01:00 |
|
fn ⌃ ⌥
|
48b15b9bf8
|
Add Lint/AmbiguousAssignment rule (#244)
|
2021-10-19 11:44:41 +02:00 |
|
Sijawusz Pur Rahnama
|
43dea0e49d
|
Fix typos throughout the codebase
|
2021-07-03 14:15:23 +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
|
f8c22a6e77
|
Utilize Source#spec?
|
2021-02-03 17:25:46 +02:00 |
|
Vitalii Elenhaupt
|
ecad80a96b
|
NewRule: SpecFocus
closes #172
|
2021-02-03 17:10:07 +02:00 |
|
Vitalii Elenhaupt
|
51b0a07e81
|
Avoid exponential recursion while finding variable references in scopes (#203)
* Avoid exponential recursion while finding variable references in scopes
* Adjust source example in test
|
2021-01-31 16:40:44 +02:00 |
|
Sijawusz Pur Rahnama
|
7b3c814914
|
Fix newly found issues
|
2021-01-28 01:03:48 +01:00 |
|
Sijawusz Pur Rahnama
|
ad8f570a04
|
Change Rule to class
|
2021-01-19 22:17:17 +01:00 |
|
Vitalii Elenhaupt
|
e9ec91654c
|
New Rule: Lint/DuplicatedRequire
closes https://github.com/crystal-ameba/ameba/issues/176
|
2021-01-17 22:32:24 +02:00 |
|
Sijawusz Pur Rahnama
|
af5d825015
|
Followup to #185
|
2021-01-17 18:45:14 +01:00 |
|
Sijawusz Pur Rahnama
|
fd4b2f309c
|
Don’t allocate the array on every call
|
2021-01-17 18:05:08 +01:00 |
|
Sijawusz Pur Rahnama
|
06852c490b
|
Followup to #185
|
2021-01-17 13:25:50 +01:00 |
|
Sijawusz Pur Rahnama
|
1a091c1f1a
|
Optimize rules (#185)
* Replace pointless interpolations with actual values
* Rules optimizations
* Stylistic refactors
* Remove extraneous blank lines
* Remove some instances of .not_nil! usage
|
2021-01-17 14:16:04 +02:00 |
|
Sijawusz Pur Rahnama
|
19c370aee0
|
Misc refactors (#180)
* Optimize Severity#symbol
* Remove empty else branches
* Optimize map+compact/flatten calls
* Misc stylistic refactors
|
2021-01-11 20:13:58 +02:00 |
|
Vitalii Elenhaupt
|
de3f16a9dc
|
Disable Lint/EmptyExpression rule
closes #169
|
2020-10-23 19:21:39 +03:00 |
|
Vitalii Elenhaupt
|
f8d57345d4
|
Merge branch 'develop'
|
2020-08-26 22:46:03 +03:00 |
|
Vitalii Elenhaupt
|
b5bd76dfa8
|
Useless Assign: ignore variables with '_' prefix
closes #164
|
2020-08-20 21:15:58 +03:00 |
|
Vitalii Elenhaupt
|
d650ca5477
|
Incorrectly reporting shadowingOuterLocalVar within macro included
closes #161
|
2020-07-15 10:18:12 +03:00 |
|
Vitalii Elenhaupt
|
7f501a1df5
|
RedundantStringCoercion: do not report to_s with named args
closes #160
|
2020-06-24 09:26:03 +03:00 |
|
Vitalii Elenhaupt
|
3448de30da
|
Enable rules which were disabled during bugfix release
|
2020-06-19 21:41:02 +03:00 |
|
Vitalii Elenhaupt
|
c3260c1740
|
Move to YAML::Serializable
|
2020-06-15 14:29:49 +03:00 |
|
Vitalii Elenhaupt
|
b215b34060
|
Disable new rules before the coming bugfix release
|
2020-04-13 10:11:15 +03:00 |
|
Sijawusz Pur Rahnama
|
1a25583036
|
Make InlineComments::COMMENT_DIRECTIVE_REGEX more strict (#146)
|
2020-04-11 09:55:41 +03:00 |
|
Vitalii Elenhaupt
|
458c492730
|
Do not report shadowing outer local var is var is declared below the
shadowed var
closes #144
|
2020-04-10 10:44:42 +03:00 |
|
Vitalii Elenhaupt
|
99c65b5a28
|
New rule: Lint/BadDirective (#143)
* New rule: Lint/BadDirective
* Address PR feedback
|
2020-04-06 15:10:34 +03:00 |
|
Vitalii Elenhaupt
|
02f4afaa64
|
Correct doc typo
|
2020-03-27 23:17:36 +02:00 |
|
Vitalii Elenhaupt
|
04497feeed
|
Lint/LiteralInInterpolation: properly report node position
|
2020-03-27 19:44:04 +02:00 |
|
Brian J. Cardiff
|
6259e26457
|
Comply exhaustive case check
|
2020-03-27 09:25:07 -03:00 |
|
Vitalii Elenhaupt
|
9c6bc2a376
|
Merge pull request #137 from crystal-ameba/feat/redundant-string-coercion
New rule: Lint/RedundantStringCoercion
|
2020-03-26 23:55:23 +02:00 |
|
Vitalii Elenhaupt
|
59bc021e57
|
Do not report if Object#to_s is called without receiver
|
2020-03-26 23:51:54 +02:00 |
|
Vitalii Elenhaupt
|
ff1669ebe8
|
New rule: Lint/RedundantStringCoercion
|
2020-03-26 16:26:27 +02:00 |
|
Vitalii Elenhaupt
|
98bc6bb76a
|
Improve Lint/SharedVarInFiber rule description
|
2020-03-26 15:18:44 +02:00 |
|
Vitalii Elenhaupt
|
a6958ab455
|
New rule: EmptyLoop
|
2020-03-26 10:27:00 +02:00 |
|
Vitalii Elenhaupt
|
1a0468c653
|
Use NodeVisitor by default and remove the boilerplace code
|
2020-03-25 18:21:07 +02:00 |
|
Vitalii Elenhaupt
|
4f185db0a2
|
New rule: SharedVarInSpawn
closes #132
|
2020-03-25 17:52:20 +02:00 |
|
Vitalii Elenhaupt
|
aff723b682
|
Incorrectly reporting shadowingOuterLocalVar within macro included
closes #129
|
2020-02-15 20:49:47 +02:00 |
|
Vitalii Elenhaupt
|
74dfa0b934
|
Lint/UselessAssign: ignore transformed assignemnts by the compiler
closes #127
|
2020-01-11 23:51:28 +02:00 |
|
Vitalii Elenhaupt
|
6b56c87e78
|
Shadowing via short instance variable syntax
closes #122
|
2019-11-11 15:51:09 +02:00 |
|
Vitalii Elenhaupt
|
fde321f7e6
|
New rule: RedundantWithObject (#121)
|
2019-11-10 09:47:30 +02:00 |
|
Vitalii Elenhaupt
|
b6cc454039
|
New rule: RedundantWithIndex (#120)
|
2019-11-10 09:29:17 +02:00 |
|
Vitalii Elenhaupt
|
19d9223ec1
|
Properly detect if scope references a variable
|
2019-10-27 21:53:07 +02:00 |
|