Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up🚨 [security] Upgrade rubocop: 0.48.1 → 0.61.1 (major) #216
+10
−8
Conversation
depfu
bot
added
the
depfu
label
Dec 11, 2018
depfu
bot
force-pushed the
depfu/update/rubocop-0.61.1
branch
from
6d1406b
to
37bcd50
Dec 11, 2018
depfu
bot
changed the title from
🚨 [security] Upgrade rubocop: 0.48.1 → 0.61.1 (major)
to
🚨 [security] Upgrade rubocop: 0.48.1 → 0.61.1 (major)
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Dec 11, 2018
Codecov Report
@@ Coverage Diff @@
## master #216 +/- ##
===========================================
- Coverage 92.49% 34.54% -57.96%
===========================================
Files 35 22 -13
Lines 533 414 -119
===========================================
- Hits 493 143 -350
- Misses 40 271 +231
Continue to review full report at Codecov.
|
depfu
bot
force-pushed the
depfu/update/rubocop-0.61.1
branch
from
37bcd50
to
38594c1
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
@depfu rebase |
depfu
bot
force-pushed the
depfu/update/rubocop-0.61.1
branch
from
38594c1
to
483fd51
Dec 11, 2018
ruebot
closed this
in
6cbaf87
Dec 11, 2018
depfu
bot
deleted the
depfu/update/rubocop-0.61.1
branch
Dec 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
depfu bot commentedDec 11, 2018
•
edited
Advisory: CVE-2017-8418
Disclosed: May 01, 2017
URL: https://github.com/bbatsov/rubocop/issues/4336
RuboCop: insecure use of /tmp
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
Release Notes
0.61.0
New features
Style/RegexpLiteral
. (@r7kamura)Style/Lambda
. (@r7kamura)Style/MethodCallWithArgsParentheses
cop. (@gsamokovarov)Performance/OpenStruct
checks forOpenStruct.new
calls. (@xlts)Bug fixes
Layout/RescueEnsureAlignment
error on assigned blocks. (@gmcgibbon)Lint/UselessAssignment
when using a variable in a module name. (@itsWill)--auto-gen-config
and--config FILE
correctly. (@jonas054)--auto-gen-config
in a subdirectory work. (@jonas054)unknown keywords
error when usingPsych.safe_load
with Ruby 2.6.0-preview2. (@koic)Style/BracesAroundHashParameters
when the opening brace is before the first hash element at same line. (@koic)yield
andsuper
like regular method calls inStyle/AlignHash
. (@mvz)Style/InfiniteLoop
. (@jonas054)Style/TrailingCommaInArguments
. (@jonas054)coding
variable. (@akihiro17)inherit_mode
parameter to individual cop configurations. (@maxh)Layout/IndentationWidth
when settingEnforcedStyle: rails
ofLayout/IndentationConsistency
and method definition indented to access modifier in a singleton class. (@koic)Lint/FormatParameterMismatch
when using (digit)$ flag. (@koic)Style/UnneededCondition
whenif
condition andthen
branch are the same and it has noelse
branch. (@koic)Style/FrozenStringLiteral
when a file contains only a shebang. (@takaram)Style/EmptyCaseCondition
when used as an argument of a method. (@koic)Style/RaiseArgs
when an exception object is assigned to a local variable. (@koic)Lint/UselessAccessModifier
when usingprivate_class_method
. (@dduugg)Performance/RedundantMerge
raises an error on a sole double splat argument passed tomerge!
. (@mmedal)if
nodes even if the first branch is empty. (@bquorning)Changes
Layout/CommentIndentation
to avoid unnecessary iterations forrubocop -a
. (@jonas054)0.60.0
New features
--safe
and--safe-auto-correct
options. (@Darhazer)--auto-gen-only-exclude
. (@Ana06, @jonas054)VersionAdded
meta data to config/default.yml when runningrake new_cop
. (@koic)Whitelist
config toRails/SkipsModelValidations
rule. (@DiscoStarslayer)Bug fixes
Rails/ReversibleMigration
when using variable assignment. (@koic, @scottmatthewman)Style/RedundantFreeze
and a false negative forStyle/MutableConstant
when assigning a regexp object to a constant. (@koic)Style/RedundantFreeze
when assigning a range object to a constant. (@koic)Rails/ReversibleMigration
when block argument is empty. (@koic)LineLength
cop for tab-indented code. (@AlexWayfer)Changes
key
option inLayout/AlignHash
cop. (@albaer)0.59.2
Bug fixes
Rails/HasManyOrHasOneDependent
when using associations of Active Resource. (@tejasbubane, @koic)Style/For
when settingEnforcedStyle: each
andfor
dose not havedo
or semicolon. (@autopp)Layout/EmptyLineAfterGuardClause
when guard clause including heredoc. (@koic)AllowURI
option forMetrics/LineLength
cop with disabledLayut/Tab
cop. (@AlexWayfer)Metrics/BlockLength
into the respective length cops. (@drenmi)Style/ZeroLengthPredicate
false positives when inspectingTempfile
,StringIO
, andFile::Stat
objects. (@drenmi)Layout/EmptyLinesAroundAccessModifier
andLayout/EmptyLinesAroundAccessModifier
when specifying a superclass that breaks the line. (@koic)Style/IfUnlessModifier
when using named capture. (@drenmi)Style/Semicolon
from breaking on single line if-then-else in assignment. (@drenmi)Rails/HasManyOrHasOneDependent
when an Active Record model does not have any relations. (@koic)Style/For
when settingEnforcedStyle: each
with range provided to thefor
loop without ado
keyword or semicolon and without enclosing parenthesis. (@lukasz-wojcik)Changes
Metrics/MethodLength
. (@akanoi)0.59.1
Bug fixes
Rails/FindEach
. (@Knack)Naming/FileName
when investigating gemspecs. (@kddeisz)Naming/FileName
when investigating dotfiles. (@sinsoku)Style/EmptyCaseCondition
auto-correction removes comment betweencase
and firstwhen
. (@koic)Style/RedundantBegin
when callingsuper
with a block. (@eitoball)Layout/EmptyLineAfterGuardClause
when guard clause is after heredoc including string interpolation. (@koic)Style/MultilineMethodSignature
. (@drenmi)Layout/EmptyLineAfterGuardClause
cop whenif
condition is after heredoc. (@koic)Changes
Lint/UnreachableCode
detectexit
,exit!
andabort
. (@hoshinotsuyoshi)#===
fromNaming/BinaryOperatorParameterName
. (@zverok)+
to allowed file names ofNaming/FileName
. (@yensaki)0.59.0
New features
Bundler/GemComment
cop. (@sunny)IgnoredMethods
option toStyle/NumericPredicate
cop. (@AlexWayfer)--display-only-fail-level-offenses
to only output offenses at or above the fail level. (@robotdana)Style/For
. (@rrosenblum)AllowImplicitReturn
option toRails/SaveBang
cop. (@robotdana)comparison
style toStyle/NilComparison
. (@khiav223577)Style/MultilineMethodSignature
cop. (@drenmi)Performance/ChainArrayAllocation
cop. (@schneems)Layout/EmptyLinesAroundClassBody
aware of specifying a superclass that breaks the line. (@koic)Bug fixes
Style/DateTime
not detecting#to_datetime
. It can be configured to allow this. (@bdewater)Naming/FileName
whenInclude
ofAllCops
is the default setting. (@koic)Layout/MultilineOperationIndentation
. (@jonas054)Layout/ClosingParenthesisIndentation
when method arguments are empty with newlines. (@tatsuyafw)Layout/AccessModifierIndentation
when using access modifiers with arguments within nested classes. (@gmalette)Style/IfUnlessModifier
cop for disabledLayout/Tab
cop when there is noIndentationWidth
config. (@AlexWayfer)AllowURI
option ofMetrics/LineLength
cop for files with tabs indentation. (@AlexWayfer)Style/UnneededCondition
when using operator method higher precedence than||
. (@koic)Lint/ShadowedArgument
. (@jonas054)Layout/MultilineHashBraceLayout
andLayout/MultilineArrayBraceLayout
auto-correct syntax error when there is a comment on the last element. (@bacchir)Style/BracesAroundHashParameters
auto-correct syntax error when there is a trailing comma. (@bacchir)Style/RedundantBegin
aware of stabby lambdas. (@drenmi)Naming/PredicateName
. (@sunny)Style/EmptyCaseCondition
when usingreturn
inwhen
clause and assigning the return value ofcase
. (@koic)Rails/Delegate
. (@sunny)Style/WordArray
when settingEnforcedStyle: brackets
and using string interpolation in%W
literal. (@koic)Lint/RescueEnsureAlignment
whenend
is misaligned. The alignment and message are now based on the beginning position rather than theend
position. (@rrosenblum)Date
usage inStyle/DateTime
. (@deivid-rodriguez)Changes
Rails/FindEach
cop. Makes the cop also check for the following scopes:eager_load
,includes
,joins
,left_joins
,left_outer_joins
,preload
,references
, andunscoped
. (@repinel)db
to allowed names ofNaming/UncommunicativeMethodParamName
cop in default config. (@mkenyon)Lint/DuplicateMethods
to include the method name. (@rrosenblum)rubocop --auto-gen-conf
if the todo file is successfully created even if there are offenses. (@MagedMilad)Rails/RelativeDateConstant
by default. (@koic)*
) to match the hidden file. (@koic)Style/For
now highlights the entire statement rather than just the keyword. (@rrosenblum)Performance/CaseWhenSplat
and its auto-correction by default. (@rrosenblum)Layout/EmptyLineAfterGuardClause
cop by default. (@koic)Style/DateTime
has been moved to disabled by default. (@deivid-rodriguez)0.58.2
Changes
New features
#6105: Support
{a,b}
file name globs inExclude
andInclude
config. (@mikeyhew)#6116: Add
ip
to allowed names ofNaming/UncommunicativeMethodParamName
cop in default config. (@nijikon)Bug fixes
Layout/IndentationWidth
when multiple modifiers are used in a block and a method call is made at end of the block. (@koic)Naming/MemoizedInstanceVariableName
cop to allow methods to have leading underscores. (@kenman345)Layout/ClassStructure
when there is a comment in the macro method to be auto-correct. (@koic)Lint/OrderedMagicComments
when using{ encoding: Encoding::SJIS }
hash object afterfrozen_string_literal
magic comment. (@koic)0.58.1
Bug fixes
Style/MethodCallWithArgsParentheses
when arguments are method calls. (@maxh)Style/RedundantParentheses
with hash literal as first argument tosuper
. (@maxh)Gemspec/OrderedDependencies
when using method call to gem names in gemspec. (@koic)Rails/BulkChangeTable
aware of variable table name. (@wata727)Layout/MultilineAssignmentLayout
cop when using multi-line block defines on separate lines. (@koic)0.57.2
Bug fixes
Layout/ClosingHeredocIndentation
from raising an error on<<
heredocs. (@dvandersluis)Layout/ClosingHeredocIndentation
from raising an error on heredocs containing only a newline. (@drenmi)Layout/IndentationConsistency
cop triggered by an empty expression string interpolation. (@alexander-lazarov)Style/MethodCallWithArgsParentheses
from raising an error in certain cases. (@drenmi)0.57.1
Bug fixes
inherit_mode
directive. (@jonas054)Layout/IndentationWidth
when an access modifier section has an invalid indentation body. (@tatsuyafw)Layout/IndentationConsistency
should still register an offense for private methods. (@jaredbeck)Rails/BulkChangeTable
. (@wata727)Style/UnneededCondition
cop accepts a case of condition andif_branch
are same when usingelsif
branch. (@koic)0.57.0
New features
Rails/BulkChangeTable
cop. (@wata727)Style/AccessModifierDeclarations
cop. (@brandonweiss)Style/UnneededCondition
cop. (@balbesina)Layout/ClosingHeredocIndentation
cop. (@siggymcfried)slashes
style toRails/FilePath
since Ruby accepts forward slashes even on Windows. (@sunny)Layout/LeadingBlankLines
checks for empty lines at the beginning of a file. (@rrosenblum)Bug fixes
Style/SymbolArray
andStyle/WordArray
not working on arrays of size 1. (@TikiTDO)Rails/AssertNot
to allow it to have failure message. (@koic)headers
orenv
keyword arguments inRails/HttpPositionalArguments
. (@rrosenblum)Style/BracesAroundHashParameters
auto-correct going past the end of the file when the closing curly brace is on the last line of a file. (@EiNSTeiN-)Style/FrozenStringLiteralComment
would be added to the second line if the first line is empty. (@rrosenblum)Layout/SpaceInsideReferenceBrackets
aware ofno_space
when using nested reference brackets. (@koic)Style/MixinGrouping
when method namedinclude
accepts block. (@Darhazer)Changes
--fix-layout/-x
command line alias. (@scottmatthewman)Lint/SplatKeywordArguments
cop. (@koic)httpdate
to acceptedRails/TimeZone
methods. (@cupakromer)xmlschema
to acceptedRails/TimeZone
methods. (@koic)rake repl
task tobin/console
command. (@koic)inherit_mode
work for default configuration too. (@jonas054)unicode/display_width
. (@nroman-stripe)Not all release notes shown. View the full release notes
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
Commits
See the full diff on Github. The new version differs by 51 commits:
Let's don't talk about String mixin anymore
Merge branch 'release-3-0'
Merge pull request #79 from sickill/fix/rubocop-051
RuboCop 0.51.0
Spec: RSpec.describe, not describe
Merge pull request #77 from sickill/refinements
RSpec: disable monkey patching (#78)
README: add video example [ci skip]
Amend README
Drop RUBY_VERSION check
Refinements supported in Ruby 2.1
Add String refinement when using Ruby >= 2.0
Travis: RVM note, extract env, cache bundler right; Appveyor: fix build (#75)
Remove spec for legacy namespace
Remove really old legacy support
Add Olle Jonsson as author to gemspec
Update changelog
Travis: jruby-9.1.13.0
Merge pull request #70 from sickill/fix/add-example-of-rand-color
README: Add the pick-random-color [ci skip]
Merge pull request #54 from ypresto/add-strip-ascii-escape
Merge pull request #66 from swrobel/patch-1
Reverse Changelog order
Add uncolor method
Merge pull request #64 from sickill/fix/rubocop-0-49-1
RuboCop config typo
RuboCop: exclude vendor folder
RuboCop: crlf rule
Gemfile: RuboCop in :test AND :development group
RuboCop 0.49.1; rake task; linting
Add appveyor badge
Merge pull request #59 from olleolleolle/fix/rubocop-updates
Merge pull request #63 from olleolleolle/patch-2
Travis: jruby-9.1.12.0
Merge pull request #62 from olleolleolle/patch-2
Travis: upgrade rubies
Merge pull request #60 from olleolleolle/patch-1
Merge pull request #61 from deivid-rodriguez/remove_debugging_statement
Remove debugging statement from appveyor config
Travis: use jruby-9.1.10.0 in CI matrix
Merge pull request #55 from deivid-rodriguez/add_appveyor
Temporarily build self
Start testing the gem under Windows
Rubocop: Config
rubocop -a
Rubocop: note target version, exclude spec
Add gem version to README
Bump version
Remove rake dependency
Merge pull request #46 from deivid-rodriguez/drop_193_support
Merge branch 'master' into drop_193_support
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands