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.

Heroku

Deliver your unique apps, your own way.

Heroku tackles the toil — patching and upgrading, 24/7 ops and security, build systems, failovers, and more. Stay focused on building great data-driven applications.

Learn More

Top comments (0)

Image of Datadog

Get the real story behind DevSecOps

Explore data from thousands of apps to uncover how container image size, deployment frequency, and runtime context affect real-world security. Discover seven key insights that can help you build and ship more secure software.

Read the Report

👋 Kindness is contagious

Dive into this informative piece, backed by our vibrant DEV Community

Whether you’re a novice or a pro, your perspective enriches our collective insight.

A simple “thank you” can lift someone’s spirits—share your gratitude in the comments!

On DEV, the power of shared knowledge paves a smoother path and tightens our community ties. Found value here? A quick thanks to the author makes a big impact.

Okay