<p dir="auto">SpecificActionNames cop taken from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1419597073" data-permission-text="Title is private" data-url="https://github.com/rubocop/rubocop-rails/issues/827" data-hovercard-type="pull_request" data-hovercard-url="/rubocop/rubocop-rails/pull/827/hovercard" href="https://github.com/rubocop/rubocop-rails/pull/827">rubocop/rubocop-rails#827</a></p>
<p dir="auto">We're most of the way through renaming our controller actions to follow the resourceful routing conventions. At this point, I think it would be helpful to provide automated feedback to other developers, if they try writing new code that doesn't follow this convention. By using a custom rubocop configuration, we can catch these situations during CI, but also this helps developers who have rubocop integrated into their IDE to receive early feedback while still writing the code.</p>
<p dir="auto">The todo list of excluded files is currently provided explicitly in <code class="notranslate">.rubocop.yml</code>. This is because if you have more than 15 files failing a check, rubocop will instead disable the cop entirely when (re-)generating <code class="notranslate">.rubocop_todo.yml</code>, which would defeat the point of adding it.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5533'>https://github.com/openstreetmap/openstreetmap-website/pull/5533</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5533/commits/0edac40638b82a87ae1528bd89d3b81388dcbaca" class="commit-link">0edac40</a> Use a custom cop to check controller action names</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5533/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5533/files#diff-4f894049af3375c2bd4e608f546f8d4a0eed95464efcdea850993200db9fef5c">.rubocop.yml</a>
(40)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5533/files#diff-f9a861c025d1a65ef260cbdf72584c8c98b3fd8198c73ad289355371500e299b">.rubocop/specific_action_names.rb</a>
(69)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5533.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5533.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5533.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5533.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5533">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM2U25AQAIJJB3P7DD2L6N3BAVCNFSM6AAAAABVU7DLOKVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDINBSHA4DSMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOVWFLYIQ3CCZZJOBL2L6N3BA5CNFSM6AAAAABVU7DLOKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKOKBQLI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5533</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5533",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5533",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>