Skip to content
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

Update haml_lint: 0.40.1 → 0.43.0 (major) #1282

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Dec 23, 2022

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ haml_lint (0.40.1 → 0.43.0) · Repo · Changelog

Release Notes

0.43.0

  • Add support for HAML 6.1

0.42.0

  • Add support for setting RuboCop configuration in haml-lint.yml
  • Fix issue where forwardable gem requirement not loaded

0.41.0

  • Add support for HAML 6 beta
  • Fix Ruby extractor to keep newlines in certain cases

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 9 commits:

✳️ rubocop (1.36.0 → 1.41.1) · Repo · Changelog

Release Notes

1.41.0

New features

  • #11305: Add new Style/RedundantDoubleSplatHashBraces cop. (@koic)
  • #10812: New AllowMultilineFinalElement option for all LineBreaks cops. (@Korri)
  • #11277: Add new Style/ConcatArrayLiterals cop. (@koic)

Bug fixes

  • #11255: Fix an error for Style/RequireOrder when require with no arguments is put between require. (@ydah)
  • #11273: Fix a false positive for Lint/DuplicateMethods when there are same alias_method name outside rescue or ensure scopes. (@koic)
  • #11267: Fix an error for Style/RequireOrder when modifier conditional is used between require. (@ydah)
  • #11254: Fix an error for Style/RequireOrder when require is a method argument. (@koic)
  • #11266: Fix a false positive for Style/RedundantConstantBase when enabling Lint/ConstantResolution. (@koic)
  • #11296: Fix an error for Lint/NonAtomicFileOperation when use file existence checks line break unless by postfix before creating file. (@koic)
  • #11284: Fix an incorrect autocorrect for Style/WordArray when assigning %w() array. (@koic)
  • #11299: Fix base_dir in TargetFinder#find_files(). (@dukaev)
  • #11250: Fix an error for Style/GuardClause when a method call whose last argument is not a string is in the condition body. (@ydah)
  • #11298: Fix Lint/SafeNavigationChain to correctly handle [] operator followed by save navigation and method chain. (@fatkodima)
  • #11256: Fix an incorrect autocorrect for Style/HashSyntax when without parentheses call expr follows after multiple keyword arguments method call. (@koic)
  • #11289: Correctly detect Rails version when using only parts of the framework, instead of the "rails" gem. (@bdewater)
  • #11262: Fix an error for Style/IfUnlessModifier when the body is a method call with hash splat. (@fatkodima)
  • #11281: Fix NoMethodError for Style/Documentation when a class nested under non-constant values. (@arika)

Changes

  • #11306: Make Style/IfWithSemicolon aware of one line without else body. (@koic)

1.40.0

New features

  • #11179: Add Style/RedundantConstantBase cop. (@r7kamura)
  • #11205: Add --[no-]auto-gen-enforced-style CLI option. (@ydah)
  • #11224: Add Style/RequireOrder cop. (@r7kamura)
  • #11219: Make Style/SelectByRegexp aware of !~ method. (@koic)
  • #11224: Add new cop Style/ArrayIntersect which replaces (array1 & array2).any? with array1.intersect?(array2), method Array#intersect? was added in ruby 3.1. (@KirIgor)
  • #11211: Add autocorrect for Lint/AssignmentInCondition. (@r7kamura)

Bug fixes

  • #5251: Fix loading of configuration in multi-file edge case. (@NobodysNightmare)
  • #11192: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using a block argument. (@ydah)
  • #11143: Fix RedundantCopDisableDirective errors when encountering several department comments. (@isarcasm)
  • #11230: Fix an incorrect autocorrect for Lint/SafeNavigationChain when using safe navigation with [] operator followed by method chain. (@koic)
  • #11181: Fix pattern to match .tool-versions files that specify multiple runtimes. (@noelblaschke)
  • #11239: Fix an incorrect autocorrect for Style/GuardClause when using heredoc as an argument of raise in branch body. (@koic)
  • #11182: Fix an incorrect autocorrect for EnforcedShorthandSyntax: always of Style/HashSyntax with Style/IfUnlessModifier when using Ruby 3.1. (@koic)
  • #11184: Fix an error for Lint/ShadowingOuterLocalVariable when a block local variable has same name as an outer until scope variable. (@koic)
  • #11198: Fix an error for Lint/EmptyConditionalBody when one using line if/;/end without then boby. (@koic)
  • #11196: Fix a false positive for Style/GuardClause when using raise in then body of if..elsif..end form. (@koic)
  • #11213: Support redundant department disable in scope of Lint/RedundantCopDisableDirective cop. (@isarcasm)
  • #11200: Fix an incorrect autocorrect for Layout/MultilineMethodCallBraceLayout when using method chain for heredoc argument in multiline literal brace layout. (@koic)
  • #11190: Fix an error for Style/IfWithSemicolon when using one line if/;/end without then boby. (@koic)
  • #11244: Fix a false negative for Style/RedundantReturn when dynamic define methods. (@ydah)

Changes

  • #11218: Update severity of Bundler/DuplicatedGem, Bundler/InsecureProtocolSource, Gemspec/DeprecatedAttributeAssignment, Gemspec/DuplicatedAssignment, Gemspec/RequireMFA, Gemspec/RequiredRubyVersion, and Gemspec/RubyVersionGlobalsUsage cops to warning. (@koic)
  • #11222: Make Style/RedundantArgument aware of Array#sum. (@koic)
  • #11070: Add ability to count method calls as one line to code length related Metric cops. (@fatkodima)
  • #11226: Make Lint/Void aware of used lambda and proc in void context. (@koic)
  • #11205: Change Lint/InterpolationCheck from Safe: false to SafeAutoCorrect: false. (@r7kamura)
  • #11212: Make Lint/DeprecatedConstants aware of deprecated Struct::Group and Struct::Passwd classes. (@koic)
  • #11236: Remove respond_to from default value of AllowedMethods for Style/SymbolProc. (@koic)
  • #11185: Make Style/HashSyntax aware of without parentheses call expr follows. (@koic)
  • #11203: Support multiple arguments on Lint/SendWithMixinArgument. (@r7kamura)
  • #11229: Add cc to AllowedNames of MethodParameterName cop. (@tjschuck)
  • #11116: Handle ternaries in Style/SafeNavigation. (@fatkodima)

1.39.0

New features

Bug fixes

  • #11150: Improve Style/RedundantRegexpEscape to catch unnecessarily escaped hyphens within a character class. (@si-lens)
  • #11168: Fix an incorrect autocorrect for Style/ClassEqualityComparison when using instance variable comparison in module. (@koic)
  • #11176: Fix a false positive cases for Lint/DuplicateMethods when using duplicate nested method. (@koic)
  • #11164: Suppress "RuboCop server starting..." message with --server --format json. (@koic)
  • #11156: Fix Style/OperatorMethodCall autocorrection when operators are chained. (@gsamokovarov)
  • #11139: Fix a false negative for Style/HashEachMethods when using each with a symbol proc argument. (@ydah)
  • #11161: Fix a false positive for Style/HashAsLastArrayItem when using double splat operator. (@koic)
  • #11151: Fix a false positive for Lint/SuppressedException. (@akihikodaki)
  • #11123: Fix autocorrection bug for Style/StringLiterals when using multiple escape characters. (@si-lens)
  • #11165: Fix a false positive for Style/RedundantEach when any method is used between methods containing each in the method name. (@koic)
  • #11177: Fix a false positive for Style/ObjectThen cop with TargetRubyVersion < 2.6. (@epaew)
  • #11173: Fix an incorrect autocorrect for Style/CollectionCompact when using reject with block pass arg and no parentheses. (@koic)
  • #11137: Fix a false positive for Style/RedundantEach when using a symbol proc argument. (@ydah)
  • #11142: Fix Style/RedundantEach for non-chained each_ calls. (@fatkodima)

Changes

1.38.0

New features

Bug fixes

  • #11125: Fix an error for Layout/SpaceInsideHashLiteralBraces when using method argument that both key and value are hash literals. (@koic)
  • #11132: Fix clobbering error on Lint/EmptyConditionalBody. (@r7kamura)
  • #11117: Fix a false positive for Style/BlockDelimiters when specifying EnforcedStyle: semantic and using a single line block with {} followed by a safe navigation method call. (@koic)
  • #11120: Fix an incorrect autocorrect for Lint/RedundantRequireStatement when using redundant require with modifier form. (@koic)

Changes

  • #11131: Check newline in empty reference bracket on Layout/SpaceInsideReferenceBrackets. (@r7kamura)
  • #11045: Update the Style/ModuleFunction documentation to suggest class << self as an alternative. (@rdeckard)
  • #11006: Allow multiple elsif for Style/IfWithBooleanLiteralBranches. (@koic)
  • #11113: Report the count of files in the Worst and the Offense Count formatters. (@hosamaly)

1.37.1

Bug fixes

  • #11102: Fix an error for Style/AccessModifierDeclarations when using access modifier in a block. (@koic)
  • #11107: Fix a false positive for Style/OperatorMethodCall when a constant receiver uses an operator method. (@koic)
  • #11104: Fix an error for Style/CollectionCompact when using reject method and receiver is a variable. (@koic)
  • #11114: Fix an error for Style/OperatorMethodCall when using obj.!. (@koic)
  • #11088: Fix an error when specifying SuggestExtensions: true. (@koic)
  • #11089: Fix an error for Style/RedundantStringEscape when using character literals (e.g. ?a). (@ydah)
  • #11098: Fix false positive for Style/RedundantStringEscape. (@tdeo)
  • #11095: Fix an error for Style/RedundantStringEscape cop when using ?\n string character literal. (@koic)

1.37.0

New features

  • #11043: Add new Lint/DuplicateMagicComment cop. (@koic)
  • #10409: Add --no-exclude-limit CLI option. (@r7kamura)
  • #10986: Add autocorrect for Style/StaticClass. (@FnControlOption)
  • #11018: Add AllowedMethods and AllowedPatterns for Lint/NestedMethodDefinition. (@koic)
  • #11055: Implement Lint/DuplicateMethods for object singleton class. (@tdeo)
  • #10997: Make rubocop command aware of --server option from .rubocop and RUBOCOP_OPTS. (@koic)
  • #11079: Add new Style/OperatorMethodCall cop. (@koic)
  • #10439: Add new Style/RedundantStringEscape cop. (@owst)

Bug fixes

  • #11034: Fix server mode behavior when using --stderr. (@tdeo)
  • #11028: Fix a false positive for Lint/RequireParentheses when using ternary operator in square bracksts. (@koic)
  • #11051: Preserve comments on Style/AccessModifierDeclarations autocorrection. (@r7kamura)
  • #9116: Support super method in Layout/FirstArgumentIndentation. (@tdeo)
  • #11068: Fix a false positive for Style/RedundantRegexpCharacterClass when using starting with "\0" number. (@koic)
  • #11082: Fix an incorrect autocorrect for Lint/SafeNavigationChain when safe navigation on the right-hand side of the arithmetic operator. (@ydah)
  • #10982: Do not autocorrect parentheses for calls in assignments in conditional branches for Style/MethodCallWithArgsParentheses with omit_parentheses. (@gsamokovarov)
  • #11084: Fix an error for Style/ParallelAssignment when using parallel assignment in singleton method. (@koic)
  • #11078: Fix a false positive for Style/RedundantBegin when using endless method definition for begin with multiple statements. (@koic)
  • #11074: Fix a false positive for Lint/RedundantDirGlobSort when using Dir.glob with multiple arguments. (@koic)
  • #11025: Check comments for disables in RedundantInitialize cop. (@HeroProtagonist)
  • #11003: Fix clobbering exception in EmptyConditionalBody cop when if branch is empty but else is not. (@srcoley)
  • #11026: Fix an error occurred for Style/SymbolArray and Style/WordArray when empty percent array. (@ydah)
  • #11022: Fix an incorrect autocorrect for Style/RedundantCondition when using redundant brackets access condition. (@koic)
  • #11037: Fix a false positive for Style/CollectionCompact when using to_enum.reject or lazy.reject methods with Ruby 3.0 or lower. (@koic)
  • #11017: Fix an autocorrect for Lint/EmptyConditionalBody that causes a SyntaxError when missing if and else body. (@ydah)
  • #11047: Fix an incorrect autocorrect for Style/SafeNavigationChain when using +@ and -@ methods. (@koic)
  • #11015: Fix a false positive for Style/HashSyntax when without parentheses call expr follows after nested method call. (@koic)
  • #11067: Fix a false positive for Lint/DuplicateRegexpCharacterClassElement when using regexp character starts with escaped zero number. (@koic)
  • #11030: Fix an incorrect autocorrect for Lint/UnusedMethodArgument and Style::ExplicitBlockArgument when autocorrection conflicts for &block argument. (@koic)
  • #11069: Fix an incorrect autocorrect for Lint/RedundantCopDisableDirective when disable directive contains free comment. (@koic)
  • #11063: Preserve comments on Style/AccessorGrouping autocorrection. (@r7kamura)
  • #10994: Fix an error when running 3rd party gem that does not require server. (@koic)

Changes

  • #11054: Implement correct behavior for compact mode for Layout/SpaceInsideArrayLiteralBrackets. (@tdeo)
  • #10924: Style/NegatedIfElseCondition also checks negative conditions inside parentheses. (@tsugimoto)
  • #11042: Mark Lint/OrderedMagicComments as unsafe autocorrection. (@koic)
  • #11057: Make Lint/RedundantRequireStatement aware of pp, ruby2_keywords, and fiber. (@koic)
  • #10988: Raise error when both safe and unsafe autocorrect options are specified. (@koic)
  • #11032: Detect empty Hash literal braces containing only newlines and spaces on Layout/SpaceInsideHashLiteralBraces. (@r7kamura)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ json (indirect, 2.6.2 → 2.6.3) · Repo · Changelog

Release Notes

2.6.3

What's Changed

  • bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError by @notEthan in #483
  • Stop including the parser source LINE in exceptions by @casperisfine in #470

New Contributors

Full Changelog: v2.6.2...v2.6.3

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 3 commits:

↗️ parser (indirect, 3.1.2.1 → 3.1.3.0) · Repo · Changelog

Release Notes

3.1.3.0 (from changelog)

API modifications:

  • Bump maintenance branches to 3.1.3, 3.0.5, 2.7.7 (#886) (Koichi ITO)
  • ruby32.y: reuse nonlocal_var rule. (#879) (Ilya Bylich)
  • ruby32.y: reuse opt_nl rule. (#878) (Ilya Bylich)

Features implemented:

  • ruby32.y: implement forwarded restarg and kwrestarg. (#874) (Ilya Bylich)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 15 commits:

↗️ regexp_parser (indirect, 2.5.0 → 2.6.1) · Repo · Changelog

Release Notes

2.6.1 (from changelog)

Fixed

  • fixed scanning of two negative lookbehind edge cases
    • (?<!x)y> used to raise a ScannerError
    • (?<!x>)y used to be misinterpreted as a named group
    • thanks to Sergio Medina for the report

2.6.0 (from changelog)

Fixed

  • fixed #referenced_expression for \g<0> (was nil, is now the Root exp)
  • fixed #reference, #referenced_expression for recursion level backrefs
    • e.g. (a)(b)\k<-1+1>
    • #referenced_expression was nil, now it is the correct Group exp
  • detect and raise for two more syntax errors when parsing String input
    • quantification of option switches (e.g. (?i)+)
    • invalid references (e.g. /\k<1>/)
    • these are a SyntaxError in Ruby, so could only be passed as a String

Added

  • Regexp::Expression::Base#human_name
    • returns a nice, human-readable description of the expression
  • Regexp::Expression::Base#optional?
    • returns true if the expression is quantified accordingly (e.g. with *, {,n})
  • added a deprecation warning when calling #to_re on set members

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 16 commits:

↗️ rubocop-ast (indirect, 1.21.0 → 1.24.0) · Repo · Changelog

Release Notes

1.24.0 (from changelog)

New features

  • #245: Add node types forwarded_restarg and forwarded_kwrestarg. (@ydah)

1.23.0 (from changelog)

New features

  • #242: Add character_literal? to StrNode. (@koic)

1.22.0 (from changelog)

New features

  • #240: Add a type predicate new_line? to Token. (@tdeo)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 16 commits:

↗️ temple (indirect, 0.8.2 → 0.9.1) · Repo · Changelog

Commits

See the full diff on Github. The new version differs by 24 commits:

↗️ unicode-display_width (indirect, 2.2.0 → 2.3.0) · Repo · Changelog

Release Notes

2.3.0 (from changelog)

  • Unicode 15.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:


Depfu Status

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
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu
Copy link
Contributor Author

depfu bot commented Feb 3, 2023

Closed in favor of #1297.

@depfu depfu bot closed this Feb 3, 2023
@depfu depfu bot deleted the depfu/update/haml_lint-0.43.0 branch February 3, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants