-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump rubocop from 0.93.1 to 1.8.0 #2072
Conversation
e8fa518
to
b12ece6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made some style changes that were suggested by rubocop.
- bin/yarn | ||
|
||
Naming/VariableNumber: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming/VariableNumber: Use normalcase for symbol numbers. (https://rubystyle.guide#snake-case-symbols-methods-vars-with-numbers). But we use normalcase most of the time and snake_case for the http status codes and licenses. Don't think its a big deal to mix these so ignoring.
@@ -63,7 +63,7 @@ def edit; end | |||
|
|||
def update | |||
if params[:community][:logo].present? | |||
# Note: monkey patch to ActiveStorage removes any previous versions | |||
# NOTE: monkey patch to ActiveStorage removes any previous versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/CommentAnnotation: Annotation keywords like Note should be all upper case, followed by a colon, and a space, then a note describing the problem. (https://rubystyle.guide#annotate-keywords)
@@ -1,5 +1,6 @@ | |||
# Some useful errors | |||
class Exporters::Solr::IndexRoleInvalidError < StandardError; end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineBetweenDefs: Use empty lines between class definitions. (https://rubystyle.guide#empty-lines-between-methods)
c4db9ac
to
4492c9d
Compare
@@ -12,8 +12,7 @@ | |||
b.optional :min_max | |||
b.optional :readonly | |||
|
|||
b.use :label, class: 'col-form-label' do | |||
end | |||
b.use :label, class: 'col-form-label' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/EmptyBlock: Empty block detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Good work on fixing these 👍
fb665ab
to
7492c4c
Compare
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.93.1 to 1.8.0. - [Release notes](https://github.com/rubocop-hq/rubocop/releases) - [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v0.93.1...v1.8.0) Signed-off-by: dependabot-preview[bot] <[email protected]>
Rubocop released 1.0 in October and have been moving quickly with updates. Seems stable at this point and worth updating. Style/CommentAnnotation: Annotation keywords like Note should be all upper case, followed by a colon, and a space, then a note describing the problem. (https://rubystyle.guide#annotate-keywords) Naming/VariableNumber: Use normalcase for symbol numbers. (https://rubystyle.guide#snake-case-symbols-methods-vars-with-numbers). But we use normalcase most of the time and snake_case for the http status codes and licenses. Don't think its a big deal to mix these so ignoring. Layout/EmptyLineBetweenDefs: Use empty lines between class definitions. (https://rubystyle.guide#empty-lines-between-methods) Lint/EmptyBlock: Empty block detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Bumps rubocop from 0.93.1 to 1.8.0.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
0af1a84
Cut 1.80073a14
Update Changeloga2d7e0a
Improve handling of comments in ClassMethodsDefinition autocorrection3fea162
[Fix #9233] Improve handling of comments in SoleNestedConditional autocorrection9eb5daf
UpdateStyle/SingleLineMethods
to correct to an endless method definition i...1063b4e
[Fix #9337] AddAllowedIdentifiers
toNaming/VariableName
.b734f24
Use IRB instead of Pry653df19
[Fix #9335] Fix an incorrect auto-correct forNestedParenthesizedCalls
e2718b4
[Fix #9333] Fix an error forStyle/IfInsideElse
c0d28ef
Add newLint/DeprecatedConstants
copDependabot 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 recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor 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 readmeAdditionally, you can set the following in your Dependabot dashboard: