---
title: "Run rubocop against your current branch"
description: "Run rubocop against your current branch"
canonical: https://oozou.com/til/run-rubocop-against-your-current-branch-21
locale: en
date: 2020-10-13
topic: ruby
---

# Run rubocop against your current branch

> Run rubocop against your current branch

Published: 2020-10-13 · Topic: [ruby](https://oozou.com/til-topics/ruby) ([markdown](https://oozou.com/til-topics/ruby.md))

```
$ git diff develop feature/one-signal --diff-filter=M --name-only -- *.rb | egrep -v 'db|config|spec' | xargs rubocop
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
