Skip to content

Conversation

sfc-gh-mgalindo
Copy link

@sfc-gh-mgalindo sfc-gh-mgalindo commented Oct 3, 2024

Adds several attributes to the spotbugs rule to allow customizing the spotbugs invocation.
Specifically adds

  • bsaeline_file to the rule
  • omit_visitors to the config
  • max_rank to the config

@sfc-gh-mgalindo sfc-gh-mgalindo marked this pull request as draft October 3, 2024 23:34
@sfc-gh-mgalindo sfc-gh-mgalindo marked this pull request as ready for review October 7, 2024 17:07
Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your patience waiting for this review. There's one small change I've asked for, and then I'd be happy to merge this into the tree.

# so that we can pass a glob. In cases where no baseline file exist, the glob will simply
# be empty. Using a label instead of a label_list would force us to create a baseline file
# for all targets, even if theres no need for one.
"baseline_file": attr.label_list(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just make this an attr.label, and you don't need to set the default since it will automatically be None. The check that's if len(baseline_files) > 0: will then just be if ctx.attr.baseline_file: which will be fine.

The logic of this statement is also incorrect if --incompatible_disallow_empty_glob is set, so I'm not sure this is really helping.

@shs96c
Copy link
Collaborator

shs96c commented Dec 2, 2024

Hi @sfc-gh-mgalindo, I'd love to be able to merge this in, but there's one change requested. Would you please be able to make it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants