add find tool formatters#1020
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2eeb38f to
eba0fd6
Compare
86c73f5 to
3b64e5c
Compare
eba0fd6 to
96d8a9b
Compare
3b64e5c to
10a0676
Compare
96d8a9b to
554abfb
Compare
3799ee2 to
919a175
Compare
8a4b6f3 to
621fd97
Compare
mathiusj
left a comment
There was a problem hiding this comment.
find formatter looks good.
621fd97 to
dd0821d
Compare
2ad8c53 to
74166f6
Compare
dd0821d to
1d2092c
Compare
74166f6 to
f877583
Compare
1d2092c to
eef857c
Compare
f877583 to
f55f3f1
Compare
eef857c to
b9177ad
Compare
f55f3f1 to
d0bc73d
Compare
9857673 to
5cbb42c
Compare
d0bc73d to
5beb941
Compare
| # | ||
| #: () -> String | ||
| def format_find | ||
| count = content.to_s.lines.map(&:strip).reject(&:empty?).length |
There was a problem hiding this comment.
Missing NOTE handling for status/truncation messages. format_find counts all non-blank lines as paths with no partition into results vs. notes. The sibling format_grep (PR #1019) and Claude's format_glob both partition output and append a truncated NOTE <message> when status lines accompany results. A truncation notice like "Results truncated" would inflate the path count and silently drop the diagnostic — e.g. lib/a.rb\nlib/b.rb\nResults truncated renders FIND OK 3 paths instead of FIND OK 2 paths · NOTE Results truncated.
5cbb42c to
5f80803
Compare
5beb941 to
c15e82c
Compare

Closes #1028