DEV Community

Ulugbek Tuychiev for datarockets

Posted on • Originally published at datarockets.com

4

Contribution to open source: rubocop-rspec

Open source is an essential part of the development industry. At datarockets, we are fully aware of this and always strive to bring something useful to the development community.

For example, we develop different libraries that help us to maintain high-quality code in clients’ projects. We combine best practices with our vision and make these libraries public for everyone.

This is a story of how a problem in our internal library appeared a useful contribution to the popular Ruby lib – rubocop-rspec.

In the process of working with our internal Ruby style config, we faced a problem of repeated test cases.

The problem of repeated test cases

In the course of studying the solution to the problem, we found that in rubocop-rspec there are no ready-made cops that could solve our problem and we decided to write our own cop and test it on our projects. In parallel, we opened the issue in the repository with a proposal to add this cop to the rubocop-rspec library.

The maintainers of rubocop-rspec quickly responded and agreed that it would be a pretty useful improvement, after which we started writing this cop. After weeks of work, the maintainers were pleased with the result of what we did and accepted the pull request.

Our cop brought instant results even before we completed our work! At the stage of verification on their codebases, the maintainers found flaws in their projects.

The result of the contribution

We are delighted that we were able to make a useful contribution to the developer community, and we will continue to do so.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay