Commit Graph

752 Commits

Author SHA1 Message Date
fn ⌃ ⌥ 73e97ac42e Avoid using iterators and throw-away heap allocations 2021-10-27 11:08:18 -07:00
fn ⌃ ⌥ b7bb282b99 Apply suggestions from code review 2021-10-27 10:08:36 -07:00
fn ⌃ ⌥ d51ef27d54 Add `remove_preceding`, `remove_leading`, `remove_trailing` 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 1b6fe40a3b Add autocorrect checks to `ExplainFormatter` 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 8d3b76003e Add autocorrect checks to Flycheck, JSON, and TODO formatters 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 749c53527e Add documentation 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 437584f9db Raise error if infinite correction loop 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 16608965f5 Allowed named arguments with `Rule::Base.issue_for` 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 3b11491cea Add `insert_*` overloads that accept both location and end_location 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ e8c0f49cb8 Delete redundant alias `SourceLocation` 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ f87d99a83b Add `Corrector` method overloads that accept `ASTNode` 2021-10-26 22:22:22 -07:00
fn ⌃ ⌥ 1d5f554e88 Apply suggestions from code review 2021-10-26 12:06:24 -07:00
fn ⌃ ⌥ f39a7a4cd4 Re-run autocorrect until all correctable issues have been corrected 2021-10-25 15:09:44 -07:00
fn ⌃ ⌥ 573881cb8a Autocorrect `Layout/TrailingBlankLines` partially 2021-10-25 12:38:29 -07:00
fn ⌃ ⌥ e5fb0526e0 Autocorrect `Style/LargeNumbers` 2021-10-25 12:38:29 -07:00
fn ⌃ ⌥ 99e7ccd23b Add `--autocorrect` CLI option 2021-10-25 12:38:29 -07:00
fn ⌃ ⌥ d3d3ccd7e3 Add `expect_correction` and `expect_no_corrections` 2021-10-25 12:38:29 -07:00
fn ⌃ ⌥ c1b4add094 Add `Source::Corrector` and `Source::Rewriter` 2021-10-25 12:38:29 -07:00
Vitalii Elenhaupt dafae6ca77
Merge pull request #246 from FnControlOption/replacements
Allow named replacements in expect_issue
2021-10-25 21:40:40 +03:00
fn ⌃ ⌥ 9f0b9a709e Allow named replacements in expect_issue 2021-10-23 01:37:24 -07:00
fn ⌃ ⌥ 3d432fdee8
Add expect_issue and expect_no_issues spec helpers (#245) 2021-10-22 19:54:39 +02:00
fn ⌃ ⌥ 48b15b9bf8
Add Lint/AmbiguousAssignment rule (#244) 2021-10-19 11:44:41 +02:00
Vitalii Elenhaupt 9a91e42bcc
Merge pull request #239 from crystal-ameba/Sija/fix-typos
Fix typos throughout the codebase
2021-07-03 21:53:12 +03:00
Sijawusz Pur Rahnama 43dea0e49d Fix typos throughout the codebase 2021-07-03 14:15:23 +02:00
Sijawusz Pur Rahnama 720810c3cb
Merge pull request #238 from caspiano/exhaustive-case-complexity
Count an exhaustive `case` complexity as 1
2021-06-05 20:49:28 +02:00
Sijawusz Pur Rahnama 651f70f680
Update spec/ameba/ast/visitors/counting_visitor_spec.cr 2021-06-05 20:49:00 +02:00
Caspian Baska c49c69ed9f
Early return in CountVisitor if macro node
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
2021-06-06 04:12:56 +10:00
Caspian Baska 0ea6238dc6
Count an exhaustive `case`'s complexity as 1 2021-06-05 22:31:58 +10:00
Vitalii Elenhaupt df14fda0d8
Bump v0.14.3 2021-04-18 20:56:36 +03:00
Vitalii Elenhaupt a64f48b543
ShadowingOuterLocalVar while it is not in macro
closes #224
2021-04-18 20:55:10 +03:00
Vitalii Elenhaupt cd18c6a000
Merge pull request #229 from crystal-ameba/fix/performance-in-specs
Disable performance rules for spec files
2021-04-18 09:41:41 +03:00
Vitalii Elenhaupt 9e2d4f1856
Disable performance rules for spec files
closes #220
2021-04-18 09:39:55 +03:00
Vitalii Elenhaupt 7c586eb9e5
Merge pull request #227 from stephendolan/screencast-embed
Embed a screencast tutorial in README
2021-04-13 19:17:23 +03:00
Stephen Dolan 42ac0664d7
Remove additional manual &nbsp;
Co-authored-by: Vitalii Elenhaupt <3624712+veelenga@users.noreply.github.com>
2021-04-13 09:08:30 -04:00
Stephen Dolan 8de1e0905a Embed screencast in README 2021-04-12 14:43:26 -04:00
Sijawusz Pur Rahnama ecbea0b470
Merge pull request #226 from crystal-ameba/fix-issue-208 2021-04-12 11:42:55 +02:00
Sijawusz Pur Rahnama 788e0a3fad Enable MapInsteadOfBlock rule again 2021-04-12 06:23:03 +02:00
Sijawusz Pur Rahnama 2694a0c865 Remove “join” from the list of trigger methods 2021-04-12 06:22:54 +02:00
Vitalii Elenhaupt 9a25214bb5
Merge branch 'develop' 2021-04-04 21:19:55 +03:00
Vitalii Elenhaupt ecafa271ee
Freebsd compatiblity
closes #167
2021-04-04 21:16:41 +03:00
Vitalii Elenhaupt 58d7775d65
Merge branch 'master' into develop 2021-04-04 21:08:02 +03:00
Sijawusz Pur Rahnama f5628e6a11
Merge pull request #223 from crystal-ameba/fix-issue-219
Skip macro code in `Style/IsAFilter` rule
2021-04-04 13:36:38 +02:00
Sijawusz Pur Rahnama 8d21733b10 Skip macro code in Style/IsAFilter rule 2021-04-04 11:19:45 +02:00
Vitalii Elenhaupt 4a6511cfea
Bump 0.14.2 2021-03-29 09:17:30 +03:00
Vitalii Elenhaupt 0881b861d7
Disable MapInsteadOfBlock by default
refs #208
2021-03-29 09:15:18 +03:00
Stephen Dolan 04ba9cd57a
Change Style/VerboseBlock - ExcludeOperators - setting default (#218) 2021-03-24 21:16:51 +01:00
Sijawusz Pur Rahnama f4ffb8a287
Merge pull request #216 from crystal-ameba/is_a_filter_in_multi_args_block
Do not report IsAFilter if there is a block with multiple args
2021-03-23 21:30:09 +01:00
Sijawusz Pur Rahnama 975ff31099
Merge pull request #217 from kachick/revert-215-follow-crystal-1.0.0
Revert "Follow crystal 1.0.0 in shard.yml"
2021-03-23 21:27:04 +01:00
Kenichi Kamiya e7b7b10081
Revert "Follow crystal 1.0.0 in shard.yml" 2021-03-24 03:58:40 +09:00
Vitalii Elenhaupt 13605afe4a
Do not report IsAFilter if there is a block with multiple args 2021-03-23 20:57:50 +02:00