Transforming private Cop to ALCops #338
Replies: 1 comment 1 reply
-
|
First off: YES, absolutely! 🤗 I'd love to receive contributions for ALCops and it's fantastic that you're willing to bring parts of your private cop into the project. This is exactly the kind of collaboration that makes our BC community so great. I've had a look through the changes and everything looks very promising. Regarding the documentation: yes, that should be a separate companion PR since the documentation lives in a different repository. My preference is to have the documentation in place before I publish a new beta release. A couple of comments on the PR: 1. Development setup I think we may have crossed paths a bit here. In the meantime, I've also added a setup script for the BC DevTools dependencies (c0264af). This should take care of installing the required dependencies for local development. 2. DC0006 My preference would be to have a single implementation that can raise two different diagnostic IDs. I think that will make the rule easier to maintain in the long run, since the business logic remains in one place. Overall, I absolutely like the direction you're taking here and feel free to start opening issue/PRs for the individual changes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Arthur,
You may remember the discussion more than a year ago in LinterCop repo: Migrating from private Cop to LinterCop.
Since then, a lot has changed, ALCops got some new rules, duplicating exactly, almost or partly rules we have in our cop.
I was finally able to transform some of our rules or mark them as replaced by some of your rules.
To begin, I have prepared a dummy PR here. Mainly for you to get an idea on how I would handle the transformation (re-using your patterns wherever possible).
I have a bunch of others in my pocket but would start with these. The PR above is an example on how I would add them. Of course, separated by new issues for every commit.
Please let me know if you have additional suggestions before I start with. For example, how you would like the documentation (should it be created in parallel because it is a different repo), or if I missed something.
Beta Was this translation helpful? Give feedback.
All reactions