-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code search turned code checker #1618
Conversation
Notifying subscribers in CODENOTIFY files for diff 213ce11...1a2217b.
|
69ac906
to
df76389
Compare
df76389
to
9952a08
Compare
This is really cool. Here are some suggestions:
If there isn't a good way to avoid the staticcheck comparison, I think it's OK. I certainly do see the value of using staticcheck as a benchmark. My comments here around avoiding the comparison may be treating this blog post too much like a product anouncement and not enough as a "look at the awesome advanced search stuff we're working on" technical blog post. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really interesting, because it answers a question I've repeatedly had when looking at staticcheck
.
I left some comments/suggestions that are all in the nitpicky/feel-free-to-ignore category.
On a general level, though, I think the structure of the blog post is a bit mixed: the first comparison between static checks & search reads as a pro/cons list, but then later there's more comparisons woven into the rest in the same pro/con tone (beginning of ## Adding more code checks
).
I think you could improve the flow by following the shape you already have and move things to their appropriate section. From what I could gather that shape is roughly this:
- intro: what are code checks?
- can we use code search for this? yes, with limitations, so let's explore
- example check turned into code search
- turning more staticcheck checks into search
4.1. approach
4.2. results - takeaway (here's where I'd put the pro/cons summary)
- addendum: what do we do with our search results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the post! It makes a great case why universal code search is more powerful than a purely local setup. For me personally, I would have appreciated if the post stated its purpose/intent much earlier. Right now the reader has to read quite a bit before the story becomes clear ... but that's just nit-picking ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool! 👏 I left a few non-blocking style comments.
Notes to self:
Before publishing:
count:1000
page visit should trigger Hide 'show more' on search console page sourcegraph#14478go-gh-100
doesn't work
and
simple select
Nice to haves:
-bound-count
comby