summaryrefslogtreecommitdiff
path: root/.rubocop.yml
Commit message (Collapse)AuthorAgeFilesLines
* Add hash slice using IndifferentAccess.kenner kliemann2020-10-031-0/+3
|
* Change rubocop to allow 100 character lines.Bobby McDonald2019-10-171-1/+6
| | | | | For accessibility reasons, we should limit our lines to 100 chars max. https://github.com/slack-ruby/slack-ruby-client/pull/293#discussion_r309472083
* Make Hashie play nice with Rails 6 Hash#except method (#479)Bobby McDonald2019-10-021-0/+3
|
* [rubocop] Improve our RuboCop setupMichael Herold2018-09-301-0/+9
| | | | | | | | | | | Disable Metrics/BlockLength in specs because the length of a block in the test suite isn't something we want to lint. We want the tests to be as long as they need to be. Set an explicit line length metric instead of continually updating this as we go. Let's pick a max line length that we want to see and stick with it. This metric should only ever decrease: we don't want to see it ever increase again.
* Update Rubocop and address the addressable todosMichael Herold2018-06-171-1/+16
| | | | | | | | | | | | | | | | | | | | | This is a big step forward in our Rubocop setup. I addressed all of the todos from the current version of Rubocop that made sense to. The only things that remain are metrics and one cop that relies on the line length metric to work. I made some judgment calls on disabling a few cops: 1. The `Layout/IndentHeredoc` cop wants you to either use the squiggly heredoc from Ruby 2.3 or introduce a library. Since we are a low-level library that is used as a transitive dependency, we cannot introduce another library as a dependence, so that option is out. Also, we support Rubies back to 2.0 currently, so using the squiggly heredoc isn't an option. Once we remove support for Rubies older than 2.3, we can switch to the squiggly heredoc cop. 2. The `Naming/FileName` cop was reporting false positives for a few files in the repository, so I disabled it on those files. 3. The `Style/DoubleNegation` cop reports lints on a few cases where we use double negation. Given the very generic nature of Hashie, the double-negation is the easiest, clearest way to express that we want an item to be a Boolean. I disabled the cop because we exist in the gray area where this makes sense.
* Bring integration tests into main test harnessMichael Herold2017-02-031-0/+3
| | | | | | | | | | | | | | | | We have a nice integration spec harness, so let's make sure we use it when we're working on the gem. I'm making the following changes: * Make `bundle exec rake` run integration specs, except on Travis. * Silence a warning in the OmniAuth integration spec that has nothing to do with Hashie. * Make Guard run integration specs when appropriate. Now, when you run all tasks you will run integration specs. Also, if you modify an integration spec, it will run. Lastly, if you modify anything in `lib` the integration specs will run. * Keeps the extra Travis build that only runs integration specs. Travis didn't like the Rake task that included it and there's extra signal by doing it this way anyway.
* Update rubocop ignore syntax to silence warningsMichael Herold2015-04-091-3/+3
| | | | | The Travis builds were pretty noisy due to all of the warnings that were being output from this deprecated syntax.
* Locked version of RuboCop.dblock2014-11-181-28/+1
|
* Address TODO about the Lambda style copMichael Herold2014-08-231-4/+0
|
* Organize Rubocop rulesMichael Herold2014-08-231-14/+14
|
* Update Rubocop to 0.25.0 and get it passingMichael Herold2014-08-231-0/+2
|
* fixes for rubocop 0.20.0Bartosz KopiƄski2014-04-041-1/+1
|
* Added Rubocop.dblock2014-03-301-0/+36