Skip to content

dependency: bump sb-contrib from 7.4.7 to 7.6.0#12855

Merged
nrmancuso merged 1 commit into
masterfrom
dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0
Jul 4, 2023
Merged

dependency: bump sb-contrib from 7.4.7 to 7.6.0#12855
nrmancuso merged 1 commit into
masterfrom
dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 16, 2023

Copy link
Copy Markdown
Contributor

Bumps sb-contrib from 7.4.7 to 7.6.0.

Commits
  • a664c28 chore: prepare the 7.6.0 release
  • c6d811d formatting
  • 0b08389 add insert as a risky name
  • 8eacac9 add more modifying methods
  • 1fc9e00 guard against calls from a subclass of ToStringBuilder
  • 882ff86 add stream as a risky name for PRMC
  • 810af2d computeIfAbsent to modifying methods
  • 7227f86 add sstack/deque to CollectionNameConfusion, and avoid 'offset'
  • bdb9ca0 add CyclicBarrier.await to MDM sample test
  • b194c6b fix up optional.equals check
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 16, 2023
@rnveach

rnveach commented Mar 17, 2023

Copy link
Copy Markdown
Contributor

https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=13590&view=logs&j=eb841e9f-6e1e-5c29-3ad5-74ec2c658069&t=a9b761e6-b8d5-50cf-467a-54967189cab2&l=1270

[INFO] --- spotbugs-maven-plugin:4.7.3.0:check (default) @ checkstyle ---
[INFO] BugInstance size is 46
[INFO] Error size is 0
[INFO] Total bugs: 46
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader
  .configStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader] 
  In ConfigurationLoader.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Method com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.endElement(String, String, String) 
  sets an enum reference to null [com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader] 
  At ConfigurationLoader.java:[line 571] ENMI_NULL_ENUM_VALUE

[ERROR] Medium: Collection variable stack is named with a different type of collection in the name
  [com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser] 
  At JavadocDetailNodeParser.java:[line 488] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.PackageNamesLoader
  .packageStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.PackageNamesLoader] In PackageNamesLoader.java 
   CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck
  .methodStack is named with a different type of collection in the name 
  [com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck] 
  In AbstractSuperCheck.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable stack is named with a different type of collection in the name
  [com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck] 
  At DeclarationOrderCheck.java:[line 438] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck
   .scopeStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck]
   In FinalLocalVariableCheck.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.ModifiedControlVariableCheck
   .variableStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.ModifiedControlVariableCheck] 
   In ModifiedControlVariableCheck.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck
   .parameterNamesStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck] 
   In ParameterAssignmentCheck.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable frameStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 382] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable frameStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 556] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable frameStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 658] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable frameStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 676] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable stack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 1002] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable stack is named with a different type of collection in the name 
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 1034] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable stack is named with a different type of collection in the name 
   [com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck] 
   At RequireThisCheck.java:[line 1067] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.ReturnCountCheck
   .contextStack is named with a different type of collection in the name
    [com.puppycrawl.tools.checkstyle.checks.coding.ReturnCountCheck] 
    In ReturnCountCheck.java CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable instAndClassVarDeque is named with a different type of collection in the name 
  [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] 
  At UnusedLocalVariableCheck.java:[line 592] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name 
  [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] 
  At UnusedLocalVariableCheck.java:[line 343] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] 
   At UnusedLocalVariableCheck.java:[line 366] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name
   [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] 
   At UnusedLocalVariableCheck.java:[line 437] CNC_COLLECTION_NAMING_CONFUSION

[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 500] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 588] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 692] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 713] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 737] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable variablesStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck] At UnusedLocalVariableCheck.java:[line 763] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck$TypeDeclDesc.instanceAndClassVarStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck$TypeDeclDesc] In UnusedLocalVariableCheck.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable instAndClassVarDeque is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck$TypeDeclDesc] At UnusedLocalVariableCheck.java:[line 1026] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable instAndClassVarDeque is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheck$TypeDeclDesc] At UnusedLocalVariableCheck.java:[line 1027] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.design.MutableExceptionCheck.checkingStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.design.MutableExceptionCheck] In MutableExceptionCheck.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader.stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader] In ImportControlLoader.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.indentation.CommentsIndentationCheck] At CommentsIndentationCheck.java:[line 766] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable htmlStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck] At JavadocStyleCheck.java:[line 591] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable htmlStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck] At JavadocStyleCheck.java:[line 655] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable htmlStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck] At JavadocStyleCheck.java:[line 719] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Enum class com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo only declares one enum value [com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagInfo] At JavadocTagInfo.java:[line 389] ENMI_ONE_ENUM_VALUE
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck.contextStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck] In BooleanExpressionComplexityCheck.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck.valueStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck] In CyclomaticComplexityCheck.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck.contextStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck] In ExecutableStatementCountCheck.java CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Method call in com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel.setParseTree(DetailAST) passes object that the method is called on as a parameter [com.puppycrawl.tools.checkstyle.gui.ParseTreeTableModel] At ParseTreeTableModel.java:[line 65] SPP_PASSING_THIS_AS_PARM
[ERROR] Medium: Collection variable stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.meta.JavadocMetadataScraper] At JavadocMetadataScraper.java:[line 386] CNC_COLLECTION_NAMING_CONFUSION
[ERROR] Medium: Method com.puppycrawl.tools.checkstyle.utils.CheckUtil.getSurroundingAccessModifier(DetailAST) sets an enum reference to null [com.puppycrawl.tools.checkstyle.utils.CheckUtil] At CheckUtil.java:[line 492] ENMI_NULL_ENUM_VALUE
[ERROR] Medium: Method com.puppycrawl.tools.checkstyle.utils.ScopeUtil.getDeclaredScopeFromMods(DetailAST) sets an enum reference to null [com.puppycrawl.tools.checkstyle.utils.ScopeUtil] At ScopeUtil.java:[line 46] ENMI_NULL_ENUM_VALUE
[ERROR] Medium: Method com.puppycrawl.tools.checkstyle.utils.ScopeUtil.getSurroundingScope(DetailAST) sets an enum reference to null [com.puppycrawl.tools.checkstyle.utils.ScopeUtil] At ScopeUtil.java:[line 133] ENMI_NULL_ENUM_VALUE
[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.xpath.iterators.ReverseDescendantIterator.stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.xpath.iterators.ReverseDescendantIterator] In ReverseDescendantIterator.java CNC_COLLECTION_NAMING_CONFUSION
[INFO] 

@romani

romani commented Mar 17, 2023

Copy link
Copy Markdown
Member

Collection variable stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser] At JavadocDetailNodeParser.java:[line 488] CNC_COLLECTION_NAMING_CONFUSION

I donot understand this violation


Medium: Collection variable htmlStack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck] At JavadocStyleCheck.java:[line 591] CNC_COLLECTION_NAMING_CONFUSION

ok, may be


[ERROR] Medium: Collection variable com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader.stack is named with a different type of collection in the name [com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader] In ImportControlLoader.java
CNC_COLLECTION_NAMING_CONFUSION

I am not sure we should follow name of collection:

private final Deque<AbstractImportControl> stack = new ArrayDeque<>();

@nrmancuso

nrmancuso commented Mar 17, 2023

Copy link
Copy Markdown
Contributor

For the first one, I think it is supposed to be on line 487:

final Deque<Token> stack = new ArrayDeque<>();

I think it is fine to rename all stacks as deques, after all this is what the Collection really is. If we want to restrict what can be done with a Deque, name of Collection alone is not enough, we should either use Stack(not recommended) or make our own.

@romani

romani commented Mar 18, 2023

Copy link
Copy Markdown
Member

I think it is fine to rename all stacks as deques

'deques' is weird word for me, it was always a problem for me to keep in mind that in whole world stack is stack, but in Java it is deque. It is too technical. Name of variable should be content focused and user friendly.
if no strong objection, I would rather suppress 'stack' violations.

@romani romani force-pushed the dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0 branch from 0a00aeb to 127b84f Compare July 3, 2023 23:23
@romani

romani commented Jul 3, 2023

Copy link
Copy Markdown
Member

resolving violations is postponed until #13351 we might get some help from outside of team to fix it.

@romani romani force-pushed the dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0 branch from 127b84f to 7f00584 Compare July 3, 2023 23:32
@romani romani requested a review from nrmancuso July 3, 2023 23:33
@romani romani force-pushed the dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0 branch from 7f00584 to c5ac064 Compare July 3, 2023 23:36
Bumps [sb-contrib](https://github.com/mebigfatguy/fb-contrib) from 7.4.7 to 7.6.0.
- [Release notes](https://github.com/mebigfatguy/fb-contrib/releases)
- [Commits](mebigfatguy/fb-contrib@v7.4.7...v7.6.0)

---
updated-dependencies:
- dependency-name: com.mebigfatguy.sb-contrib:sb-contrib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@romani romani force-pushed the dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0 branch from c5ac064 to ac288d3 Compare July 3, 2023 23:38
@nrmancuso

Copy link
Copy Markdown
Contributor

Failure in CI is not related to changes here.

@nrmancuso nrmancuso merged commit f66564a into master Jul 4, 2023
@nrmancuso nrmancuso deleted the dependabot/maven/com.mebigfatguy.sb-contrib-sb-contrib-7.6.0 branch July 4, 2023 03:50
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants