Skip to content

Bump rubocop from 1.32.0 to 1.34.0#42

Closed
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/bundler/dev/rubocop-1.34.0
Closed

Bump rubocop from 1.32.0 to 1.34.0#42
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/bundler/dev/rubocop-1.34.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Aug 9, 2022

Bumps rubocop from 1.32.0 to 1.34.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.34

New features

Bug fixes

  • #10552: Require RuboCop AST 1.20.0+ to fix a false positive for Lint/OutOfRangeRegexpRef when using fixed-encoding regopt. (@​koic)
  • #10512: Fix a false positive for Lint/ShadowingOuterLocalVariable conditional statement and block variable. (@​ydah)
  • #10864: min and max results in false positives for Style/SymbolProc similarly to select and reject. (@​mollerhoj)
  • #10846: Fix a false negative for Style/DoubleNegation when there is a hash or an array at return location of method. (@​nobuyo)
  • #10875: Fix an obsolete option configuration values are duplicated when generating .rubocop_todo.yml. (@​ydah)
  • #10877: Fix crash with Layout/BlockEndNewline heredoc detection. (@​dvandersluis)
  • #10859: Fix Lint/Debugger to be able to handle method chains correctly. (@​dvandersluis)
  • #10883: Fix Style/RedundantParentheses to be able to detect offenses and properly correct when the end parentheses and comma are on their own line. (@​dvandersluis)
  • #10881: Fix Style/SoleNestedConditional to properly wrap block and csend nodes when necessary. (@​dvandersluis)
  • #10867: Mark autocorrection for Lint/EmptyConditionalBody as unsafe. (@​dvandersluis)
  • #10871: Restore RuboCop::ConfigLoader.project_root as deprecated. (@​koic)

Changes

RuboCop 1.33

Bug fixes

  • #10830: Fix an incorrect autocorrect for Layout/FirstArgumentIndentation when specifying EnforcedStyle: with_fixed_indentation of Layout/ArgumentAlignment and EnforcedStyle: consistent of Layout/FirstArgumentIndentation and enabling Layout/FirstMethodArgumentLineBreak. (@​koic)
  • #10825: Fix an incorrect autocorrect for Style/ClassAndModuleChildren when using nested one-liner class. (@​koic)
  • #10843: Fix a false positive for Style/HashExcept when using reject and calling include? method with symbol array and second block value. (@​koic)
  • #10853: Fix an autocorrect for Style/RedundantSort with logical operator. (@​ydah)
  • #10842: Make server mode aware of CacheRootDirectory config option value, RUBOCOP_CACHE_ROOT, and XDG_CACHE_HOME environment variables. (@​koic)
  • #10833: Fix an incorrect autocorrect for Style/RedundantCondition when branches contains arithmetic operation. (@​koic)
  • #10864: Fix a false positive for Style/SymbolProc when using Hash#reject. (@​koic)
  • #10771: Make server mode aware of --cache-root command line option. (@​koic)
  • #10831: Fix an error when using changed_parameters in obsoletion.yml by external library. (@​koic)
  • #10850: Fix Style/ClassEqualityComparison autocorrection within module. (@​r7kamura)
  • #10832: Fix an incorrect autocorrect for Layout/BlockEndNewline when multiline block } is not on its own line and using heredoc argument. (@​koic)

Changes

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.34.0 (2022-08-09)

New features

Bug fixes

  • #10552: Require RuboCop AST 1.20.0+ to fix a false positive for Lint/OutOfRangeRegexpRef when using fixed-encoding regopt. ([@​koic][])
  • #10512: Fix a false positive for Lint/ShadowingOuterLocalVariable conditional statement and block variable. ([@​ydah][])
  • #10864: min and max results in false positives for Style/SymbolProc similarly to select and reject. ([@​mollerhoj][])
  • #10846: Fix a false negative for Style/DoubleNegation when there is a hash or an array at return location of method. ([@​nobuyo][])
  • #10875: Fix an obsolete option configuration values are duplicated when generating .rubocop_todo.yml. ([@​ydah][])
  • #10877: Fix crash with Layout/BlockEndNewline heredoc detection. ([@​dvandersluis][])
  • #10859: Fix Lint/Debugger to be able to handle method chains correctly. ([@​dvandersluis][])
  • #10883: Fix Style/RedundantParentheses to be able to detect offenses and properly correct when the end parentheses and comma are on their own line. ([@​dvandersluis][])
  • #10881: Fix Style/SoleNestedConditional to properly wrap block and csend nodes when necessary. ([@​dvandersluis][])
  • #10867: Mark autocorrection for Lint/EmptyConditionalBody as unsafe. ([@​dvandersluis][])
  • #10871: Restore RuboCop::ConfigLoader.project_root as deprecated. ([@​koic][])

Changes

1.33.0 (2022-08-04)

Bug fixes

  • #10830: Fix an incorrect autocorrect for Layout/FirstArgumentIndentation when specifying EnforcedStyle: with_fixed_indentation of Layout/ArgumentAlignment and EnforcedStyle: consistent of Layout/FirstArgumentIndentation and enabling Layout/FirstMethodArgumentLineBreak. ([@​koic][])
  • #10825: Fix an incorrect autocorrect for Style/ClassAndModuleChildren when using nested one-liner class. ([@​koic][])
  • #10843: Fix a false positive for Style/HashExcept when using reject and calling include? method with symbol array and second block value. ([@​koic][])
  • #10853: Fix an autocorrect for Style/RedundantSort with logical operator. ([@​ydah][])
  • #10842: Make server mode aware of CacheRootDirectory config option value, RUBOCOP_CACHE_ROOT, and XDG_CACHE_HOME environment variables. ([@​koic][])
  • #10833: Fix an incorrect autocorrect for Style/RedundantCondition when branches contains arithmetic operation. ([@​koic][])
  • #10864: Fix a false positive for Style/SymbolProc when using Hash#reject. ([@​koic][])
  • #10771: Make server mode aware of --cache-root command line option. ([@​koic][])
  • #10831: Fix an error when using changed_parameters in obsoletion.yml by external library. ([@​koic][])
  • #10850: Fix Style/ClassEqualityComparison autocorrection within module. ([@​r7kamura][])
  • #10832: Fix an incorrect autocorrect for Layout/BlockEndNewline when multiline block } is not on its own line and using heredoc argument. ([@​koic][])

Changes

  • #10841: Don't hash shared libraries for cache key. ([@​ChrisBr][])
  • #10862: Add autocorrection to Lint/EmptyConditionalBody. ([@​dvandersluis][])
  • #10829: Deprecate IgnoredMethods option in favor of the AllowedMethods and AllowedPatterns options. ([@​ydah][])
Commits
  • a407f64 Cut 1.34
  • 01c3b20 Update Changelog
  • 1db2aae Support Bundler-like namespaced feature on require config
  • 88af469 Merge pull request #10886 from dvandersluis/issue/10881
  • 67f3055 Merge pull request #10885 from dvandersluis/issue/10883
  • 838ec41 [Fix #10883] Fix Style/RedundantParentheses to be able to detect offenses a...
  • 64cdfad [Fix #10881] Fix Style/SoleNestedConditional to properly wrap block and `...
  • eaec469 Merge pull request #10887 from dvandersluis/lint/shadowed-exception
  • f304479 Merge pull request #10888 from dvandersluis/issue/10773
  • 2ace9ef [Fix #10773] Update parser gem to >= 3.1.2.1.
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.32.0 to 1.34.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.32.0...v1.34.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Aug 9, 2022
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Aug 9, 2022

Superseded by #44.

@dependabot dependabot Bot closed this Aug 9, 2022
@dependabot dependabot Bot deleted the dependabot/bundler/dev/rubocop-1.34.0 branch August 9, 2022 19:03
pull Bot pushed a commit that referenced this pull request Feb 19, 2026
pull Bot pushed a commit that referenced this pull request Apr 21, 2026
Cover the changed behavior where subjectWithId now delegates to
displayIdWithHash instead of inlining the numeric id. Tests verify
semantic mode output (#PROJ-7), classic mode (#42), and no suffix
for new resources.
pull Bot pushed a commit that referenced this pull request Apr 21, 2026
Semantic identifiers (e.g. PROJ-42) are self-describing and should not
be prefixed with #. Only classic numeric IDs retain the hash prefix
(e.g. #42). This matches Jira's convention and PR review feedback.

The detection uses a simple regex check: if the displayId contains any
letter, it's semantic (no hash); otherwise it's classic (hash prefix).
pull Bot pushed a commit that referenced this pull request Apr 23, 2026
The reporting filter widget pre-populates opce-autocompleter with
plain hashes ({id:, name:}). When the autocompleter template switched
from `#{item.id}` to `{{ item.formattedId }}`, those hashes had no
formattedId key and the ID prefix disappeared from the selected-value
label, breaking work_package_costlog_spec and time_entry_activity_spec.

Extend Widget::Filters::WorkPackage#map_filter_values to emit
formattedId, displayId, and subject alongside id/name so the
autocompleter template has the data it needs.

Centralise the formatting logic in a new WorkPackage#formatted_id
model method, mirroring the frontend formatWorkPackageId helper:
semantic identifiers pass through (PROJ-42); numeric ids are
prefixed with # (#42).
pull Bot pushed a commit that referenced this pull request Apr 23, 2026
The shared info line rendered hard-coded `#<numeric-id>` instead of
respecting the semantic identifier setting. Use WorkPackage#formatted_id
(added alongside the autocompleter/global-search work) so Relations,
hover cards, version widgets, backlogs, meetings, and time tracking
all pick up semantic IDs like "PROJ-42" in semantic mode, "#42" in
classic mode.
pull Bot pushed a commit that referenced this pull request Apr 23, 2026
Adds two test layers that would have caught the plain-hash bug the
widget fix addressed:

- Widget unit spec (modules/reporting/spec/lib/widget/filters/work_package_spec.rb)
  asserts map_filter_values emits id/displayId/formattedId/subject/name
  with the right values in both modes. Fast feedback, pins the
  Rails-to-Angular contract the autocompleter template depends on.

- work_package_costlog_spec is now parameterised over classic and
  semantic modes via shared_examples, asserting the pre-populated
  autocompleter renders "#42 subject" and "MYPROJ-1 subject"
  respectively. End-to-end confidence that the widget, template, and
  formattedId helper agree in a real browser.
pull Bot pushed a commit that referenced this pull request May 7, 2026
The page <title> on the WP show view is built from #infoline; with a
hardcoded "##{id}" it disagreed with every other surface in semantic
mode (numeric primary key vs. "PROJ-1"). formatted_id resolves to "#42"
in classic mode and "PROJ-1" in semantic, mirroring the shape already
used by #to_s and link_to_work_package.
pull Bot pushed a commit that referenced this pull request May 14, 2026
…antic ids

The autocomplete dropdown in CKEditor renders each result with
`item.name = wp.to_s`, and `to_s` hardcoded `##{id}` — so a semantic-mode
search for `#KSTP-2` resolved correctly but the dropdown row showed
`Task opf#10244: Subject` instead of `Task KSTP-2: Subject`.

Switch to `formatted_id`, which already produces the user-facing form in
both modes (`PROJ-7` semantic, `#42` classic). The other caller — the
delete-dialog component — benefits from the same mode awareness.
pull Bot pushed a commit that referenced this pull request May 14, 2026
The activity feed renders an automatic entry whenever a parent / child /
predecessor / related work package change cascades dates onto the
current WP. Both render paths spoke numeric ids:

- The plain-text branch (used for the API JSON) hardcoded `##{id}`.
- The HTML branch went through `link_to_work_package`, which built the
  visible link label as `Type ##{id}: subject`.

Both now use `formatted_id`, which produces `PROJ-7` in semantic mode
and `#42` in classic — same shape, mode-aware. The link href was
already mode-correct via `to_param`; only the visible label needed the
swap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants