getgrit / gritql

GritQL is a query language for searching, linting, and modifying code.

Home Page:https://docs.grit.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin support

morgante opened this issue · comments

We would like to support Kotlin as a language for matching against.

Review this guide and join us on Discord to discuss.

Acceptance criteria

  1. Working grammar + language support
  2. At least 10 test cases, including rewrites and metavariables.

/bounty $250

💎 $250 bounty • Grit

Steps to solve:

  1. Start working: Comment /attempt #570 with your implementation plan
  2. Submit work: Create a pull request including /claim #570 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to getgrit/gritql!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @Alex-ley-scrub Oct 30, 2024, 6:58:59 PM #573

/attempt #570

Algora profile Completed bounties Tech Active attempts Options
@Alex-ley-scrub 4 grit bounties
Rust
﹟539
Cancel attempt

💡 @Alex-ley-scrub submitted a pull request that claims the bounty. You can visit your bounty board to reward.

Hello @Alex-ley-scrub do you still plan on completing this? I see that you requested a review but your test cases are failing.

@urbit-pilled yeah I’ll be completing it. I’ve been chatting to @morgante on Discord. I was waiting for some tips from him regarding where to look. Essentially, I’ve done ~90+% of the work and it looks like the metavariable grammar is working fine etc. but then some snippets don’t match (hence broken tests - the tests I added to make sure the snippets where matching correctly). He’s told me where to have a look now so I can restart the work.

Ok, good to hear @Alex-ley-scrub. If you need help you can message me on discord. (I'm in the Algora and GritQL server)

In my experience, this task is more complex than it initially appears. A few months ago, I added PHP and Ruby to Grit for a much larger amount, and I initially underestimated the difficulty of the task. As I began working on it, I encountered numerous problems along the way.

You can take a look at my fork if you want to see a kotlin branch that passes a few test cases.