mtsmfm / language_server-ruby

A Ruby Language Server implementation
MIT License
259 stars 10 forks source link

Update rubocop requirement from = 0.52.1 to 0.59.0 #74

Closed dependabot-preview[bot] closed 6 years ago

dependabot-preview[bot] commented 6 years ago

Updates the requirements on rubocop to permit the latest version.

Release notes *Sourced from [rubocop's releases](https://github.com/rubocop-hq/rubocop/releases).* > ## RuboCop 0.59.0 > ### New features > > * [#6109](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6109): Add new `Bundler/GemComment` cop. ([[**sunny**](https://github.com/sunny)][]) > * [#6148](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6148): Add `IgnoredMethods` option to `Style/NumericPredicate` cop. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6174](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6174): Add `--display-only-fail-level-offenses` to only output offenses at or above the fail level. ([[**robotdana**](https://github.com/robotdana)][]) > * Add autocorrect to `Style/For`. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6173](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6173): Add `AllowImplicitReturn` option to `Rails/SaveBang` cop. ([[**robotdana**](https://github.com/robotdana)][]) > * [#6218](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6218): Add `comparison` style to `Style/NilComparison`. ([[**khiav223577**](https://github.com/khiav223577)][]) > * Add new `Style/MultilineMethodSignature` cop. ([[**drenmi**](https://github.com/drenmi)][]) > * [#6234](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6234): Add `Performance/ChainArrayAllocation` cop. ([[**schneems**](https://github.com/schneems)][]) > * [#6136](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6136): Add remote url in remote url download error message. ([[**ShockwaveNN**](https://github.com/ShockwaveNN)][]) > * [#5659](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/5659): Make `Layout/EmptyLinesAroundClassBody` aware of specifying a superclass that breaks the line. ([[**koic**](https://github.com/koic)][]) > > ### Bug fixes > > * [#6107](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6107): Fix indentation of multiline postfix conditionals. ([[**jaredbeck**](https://github.com/jaredbeck)][]) > * [#6140](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6140): Fix `Style/DateTime` not detecting `#to_datetime`. It can be configured to allow this. ([[**bdewater**](https://github.com/bdewater)][]) > * [#6132](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6132): Fix a false negative for `Naming/FileName` when `Include` of `AllCops` is the default setting. ([[**koic**](https://github.com/koic)][]) > * [#4115](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4115): Fix false positive for unary operations in `Layout/MultilineOperationIndentation`. ([[**jonas054**](https://github.com/jonas054)][]) > * [#6127](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6127): Fix an error for `Layout/ClosingParenthesisIndentation` when method arguments are empty with newlines. ([[**tatsuyafw**](https://github.com/tatsuyafw)][]) > * [#6152](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6152): Fix a false negative for `Layout/AccessModifierIndentation` when using access modifiers with arguments within nested classes. ([[**gmalette**](https://github.com/gmalette)][]) > * [#6124](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6124): Fix `Style/IfUnlessModifier` cop for disabled `Layout/Tab` cop when there is no `IndentationWidth` config. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6133](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6133): Fix `AllowURI` option of `Metrics/LineLength` cop for files with tabs indentation. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6164](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6164): Fix incorrect autocorrect for `Style/UnneededCondition` when using operator method higher precedence than `||`. ([[**koic**](https://github.com/koic)][]) > * [#6138](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6138): Fix a false positive for assigning a block local variable in `Lint/ShadowedArgument`. ([[**jonas054**](https://github.com/jonas054)][]) > * [#6022](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6022): Fix `Layout/MultilineHashBraceLayout` and `Layout/MultilineArrayBraceLayout` auto-correct syntax error when there is a comment on the last element. ([[**bacchir**](https://github.com/bacchir)][]) > * [#6175](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6175): Fix `Style/BracesAroundHashParameters` auto-correct syntax error when there is a trailing comma. ([[**bacchir**](https://github.com/bacchir)][]) > * [#6192](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6192): Make `Style/RedundantBegin` aware of stabby lambdas. ([[**drenmi**](https://github.com/drenmi)][]) > * [#6208](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6208): Ignore assignment methods in `Naming/PredicateName`. ([[**sunny**](https://github.com/sunny)][]) > * [#6196](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6196): Fix incorrect autocorrect for `Style/EmptyCaseCondition` when using `return` in `when` clause and assigning the return value of `case`. ([[**koic**](https://github.com/koic)][]) > * [#6142](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6142): Ignore keyword arguments in `Rails/Delegate`. ([[**sunny**](https://github.com/sunny)][]) > * [#6240](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6240): Fix an auto-correct error for `Style/WordArray` when setting `EnforcedStyle: brackets` and using string interpolation in `%W` literal. ([[**koic**](https://github.com/koic)][]) > * [#6202](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6202): Fix infinite loop when auto-correcting `Lint/RescueEnsureAlignment` when `end` is misaligned. The alignment and message are now based on the beginning position rather than the `end` position. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6199](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6199): Don't recommend `Date` usage in `Style/DateTime`. ([[**deivid-rodriguez**](https://github.com/deivid-rodriguez)][]) > > ### Changes > > * [#6161](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6161): Add scope methods to `Rails/FindEach` cop. Makes the cop also check for the following scopes: `eager_load`, `includes`, `joins`, `left_joins`, `left_outer_joins`, `preload`, `references`, and `unscoped`. ([[**repinel**](https://github.com/repinel)][]) > * [#6137](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6137): Allow `db` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([[**mkenyon**](https://github.com/mkenyon)][]) > * Update the highlighting of `Lint/DuplicateMethods` to include the method name. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6057](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6057): Return 0 when running `rubocop --auto-gen-conf` if the todo file is successfully created even if there are offenses. ([[**MagedMilad**](https://github.com/MagedMilad)][]) > * [#4301](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4301): Turn off autocorrect for `Rails/RelativeDateConstant` by default. ([[**koic**](https://github.com/koic)][]) > * [#4832](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4832): Change the path pattern (`*`) to match the hidden file. ([[**koic**](https://github.com/koic)][]) > * `Style/For` now highlights the entire statement rather than just the keyword. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * Disable `Performance/CaseWhenSplat` and its auto-correction by default. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6235](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6235): Enable `Layout/EmptyLineAfterGuardClause` cop by default. ([[**koic**](https://github.com/koic)][]) > * [#6199](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6199): `Style/DateTime` has been moved to disabled by default. ([[**deivid-rodriguez**](https://github.com/deivid-rodriguez)][]) > > [[**sunny**](https://github.com/sunny)]: https://github.com/sunny > ... (truncated)
Changelog *Sourced from [rubocop's changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md).* > ## 0.59.0 (2018-09-09) > > ### New features > > * [#6109](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6109): Add new `Bundler/GemComment` cop. ([[**sunny**](https://github.com/sunny)][]) > * [#6148](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6148): Add `IgnoredMethods` option to `Style/NumericPredicate` cop. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6174](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6174): Add `--display-only-fail-level-offenses` to only output offenses at or above the fail level. ([[**robotdana**](https://github.com/robotdana)][]) > * Add autocorrect to `Style/For`. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6173](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6173): Add `AllowImplicitReturn` option to `Rails/SaveBang` cop. ([[**robotdana**](https://github.com/robotdana)][]) > * [#6218](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6218): Add `comparison` style to `Style/NilComparison`. ([[**khiav223577**](https://github.com/khiav223577)][]) > * Add new `Style/MultilineMethodSignature` cop. ([[**drenmi**](https://github.com/drenmi)][]) > * [#6234](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6234): Add `Performance/ChainArrayAllocation` cop. ([[**schneems**](https://github.com/schneems)][]) > * [#6136](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6136): Add remote url in remote url download error message. ([[**ShockwaveNN**](https://github.com/ShockwaveNN)][]) > * [#5659](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/5659): Make `Layout/EmptyLinesAroundClassBody` aware of specifying a superclass that breaks the line. ([[**koic**](https://github.com/koic)][]) > > ### Bug fixes > > * [#6107](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6107): Fix indentation of multiline postfix conditionals. ([[**jaredbeck**](https://github.com/jaredbeck)][]) > * [#6140](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6140): Fix `Style/DateTime` not detecting `#to_datetime`. It can be configured to allow this. ([[**bdewater**](https://github.com/bdewater)][]) > * [#6132](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6132): Fix a false negative for `Naming/FileName` when `Include` of `AllCops` is the default setting. ([[**koic**](https://github.com/koic)][]) > * [#4115](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4115): Fix false positive for unary operations in `Layout/MultilineOperationIndentation`. ([[**jonas054**](https://github.com/jonas054)][]) > * [#6127](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6127): Fix an error for `Layout/ClosingParenthesisIndentation` when method arguments are empty with newlines. ([[**tatsuyafw**](https://github.com/tatsuyafw)][]) > * [#6152](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6152): Fix a false negative for `Layout/AccessModifierIndentation` when using access modifiers with arguments within nested classes. ([[**gmalette**](https://github.com/gmalette)][]) > * [#6124](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6124): Fix `Style/IfUnlessModifier` cop for disabled `Layout/Tab` cop when there is no `IndentationWidth` config. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6133](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6133): Fix `AllowURI` option of `Metrics/LineLength` cop for files with tabs indentation. ([[**AlexWayfer**](https://github.com/AlexWayfer)][]) > * [#6164](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6164): Fix incorrect autocorrect for `Style/UnneededCondition` when using operator method higher precedence than `||`. ([[**koic**](https://github.com/koic)][]) > * [#6138](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6138): Fix a false positive for assigning a block local variable in `Lint/ShadowedArgument`. ([[**jonas054**](https://github.com/jonas054)][]) > * [#6022](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6022): Fix `Layout/MultilineHashBraceLayout` and `Layout/MultilineArrayBraceLayout` auto-correct syntax error when there is a comment on the last element. ([[**bacchir**](https://github.com/bacchir)][]) > * [#6175](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6175): Fix `Style/BracesAroundHashParameters` auto-correct syntax error when there is a trailing comma. ([[**bacchir**](https://github.com/bacchir)][]) > * [#6192](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6192): Make `Style/RedundantBegin` aware of stabby lambdas. ([[**drenmi**](https://github.com/drenmi)][]) > * [#6208](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6208): Ignore assignment methods in `Naming/PredicateName`. ([[**sunny**](https://github.com/sunny)][]) > * [#6196](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6196): Fix incorrect autocorrect for `Style/EmptyCaseCondition` when using `return` in `when` clause and assigning the return value of `case`. ([[**koic**](https://github.com/koic)][]) > * [#6142](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6142): Ignore keyword arguments in `Rails/Delegate`. ([[**sunny**](https://github.com/sunny)][]) > * [#6240](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6240): Fix an auto-correct error for `Style/WordArray` when setting `EnforcedStyle: brackets` and using string interpolation in `%W` literal. ([[**koic**](https://github.com/koic)][]) > * [#6202](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6202): Fix infinite loop when auto-correcting `Lint/RescueEnsureAlignment` when `end` is misaligned. The alignment and message are now based on the beginning position rather than the `end` position. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6199](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6199): Don't recommend `Date` usage in `Style/DateTime`. ([[**deivid-rodriguez**](https://github.com/deivid-rodriguez)][]) > > ### Changes > > * [#6161](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6161): Add scope methods to `Rails/FindEach` cop. Makes the cop also check for the following scopes: `eager_load`, `includes`, `joins`, `left_joins`, `left_outer_joins`, `preload`, `references`, and `unscoped`. ([[**repinel**](https://github.com/repinel)][]) > * [#6137](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6137): Allow `db` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([[**mkenyon**](https://github.com/mkenyon)][]) > * Update the highlighting of `Lint/DuplicateMethods` to include the method name. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6057](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/6057): Return 0 when running `rubocop --auto-gen-conf` if the todo file is successfully created even if there are offenses. ([[**MagedMilad**](https://github.com/MagedMilad)][]) > * [#4301](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4301): Turn off autocorrect for `Rails/RelativeDateConstant` by default. ([[**koic**](https://github.com/koic)][]) > * [#4832](https://github-redirect.dependabot.com/rubocop-hq/rubocop/issues/4832): Change the path pattern (`*`) to match the hidden file. ([[**koic**](https://github.com/koic)][]) > * `Style/For` now highlights the entire statement rather than just the keyword. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * Disable `Performance/CaseWhenSplat` and its auto-correction by default. ([[**rrosenblum**](https://github.com/rrosenblum)][]) > * [#6235](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6235): Enable `Layout/EmptyLineAfterGuardClause` cop by default. ([[**koic**](https://github.com/koic)][]) > * [#6199](https://github-redirect.dependabot.com/rubocop-hq/rubocop/pull/6199): `Style/DateTime` has been moved to disabled by default. ([[**deivid-rodriguez**](https://github.com/deivid-rodriguez)][]) > > ... (truncated)
Commits - See full diff in [compare view](https://github.com/rubocop-hq/rubocop/commits/v0.59.0)


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
dependabot-preview[bot] commented 6 years ago

Superseded by #75.