#
rubocop
Here are 213 public repositories matching this topic...
lsimoneau
commented
Mar 22, 2017
I really like enforcing one expectation per example. But with RSpec's exception matching, you need two expect calls if you want to assert something about an exception:
expect { my_code }.to raise_error(MyErrorType) do |error|
expect(error.message).to match /something went wrong/
end
There's no way to match against the error message without first wrapping the call, and RSpec o
1
rasaffie
commented
Aug 27, 2020
Expected behavior
Don't auto-correct inject on unsafe cases of Style/EachWithObject + Rails/IndexWith.
Actual behavior
It replaces inject with index_with, but with an undefined variable.
Steps to reproduce the problem
- With code:
def self.make_hash(names)
names.inject({}) { |result, name| result[name] = Date::MONTHNAMES[result.count + 1]; result }
eAn extension of RuboCop focused on code performance checks.
-
Updated
Sep 5, 2020 - Ruby
The Vim RuboCop plugin runs RuboCop and displays the results in Vim
-
Updated
Mar 14, 2018 - Vim script
Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation.
ruby
rails
docker
students
education
rubocop
unix
article
bower
rspec
rails-application
vcl
nsf
peer-reviews
peer-assessment
expertiza
expertiza-wiki
-
Updated
Sep 5, 2020 - Ruby
Git pre-receive hook to check commits and code style
python
git
pre-receive-hooks
rubocop
eslint
jscs
git-hook
standard
jshint
flake8
shellcheck
syntax-checker
phpcs
pep8
golint
csslint
htmlhint
puppet-lint
pyflakes
pre-receive
-
Updated
Jan 6, 2020 - Python
A Relaxed Style Guide for Ruby & Configuration for RuboCop
-
Updated
Jun 12, 2020 - Ruby
-
Updated
Aug 24, 2020 - Ruby
"Ask Me Anything" with Rails 5.2 Application
-
Updated
Sep 4, 2020 - Ruby
Open
Add more tests
lucascaton
opened
Jan 8, 2018
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
ruby
lint
rubocop
workflow
linter
annotations
actions
action
ruby-on-rails
rubocop-rails
github-actions
rubocop-performance
rubocop-linter-action
-
Updated
Aug 13, 2020 - Ruby
Pronto runner for Rubocop, ruby code analyzer
-
Updated
Aug 8, 2020 - Ruby
A RuboCop configuration focusing Lint. Recommended by Sider
-
Updated
Aug 6, 2020 - Ruby
DmitryTsepelev
opened
Jul 6, 2020
Code Climate Engine for Rubocop
ruby
rails
rubocop
security
quality
performance
linting
static-code-analysis
metrics
linter
static-analysis
complexity
code-quality
codeclimate
codeclimate-engine
-
Updated
Sep 1, 2020 - Ruby
Review pull requests for style guide violations
-
Updated
Feb 12, 2019 - Ruby
Code style checking for Minitest files.
-
Updated
Aug 27, 2020 - Ruby
Improve this page
Add a description, image, and links to the rubocop topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the rubocop topic, visit your repo's landing page and select "manage topics."
I think
Style/IfUnlessModifierdoesn't correctly handle the case when there is a first-line comment (right after theifkeyword) AND some code right after theendkeyword. If you correct this code withrubocop -ait would put the comment right after theendkeyword, before the code that was there previously. This basically makes the code invalid after correction.This probably can be