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

🌱 fix rangeValCopy linter issues #3735

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

spencerschrock
Copy link
Contributor

Adding the Required field to PullRequestReviewRule in #3728 made BranchRef slightly too big (>128 bytes) for the linter's rangeValCopy rule. This code isn't highly used, so just ignoring any potential inefficiency.

Not sure why the staticcheck linter started complaining about the date error checking, but fixed it while I was here.

What kind of change does this PR introduce?

linter fix

What is the current behavior?

What is the new behavior (if this is a feature change)?**

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Adding the Required field to PullRequestReviewRule made BranchRef slightly too big for the linter.
This code isn't highly used, so just ignoring the inefficiency for now.

Not sure why the staticcheck linter started complaining about the date error checking,
but fixed it while I was here.

Signed-off-by: Spencer Schrock <sschrock@google.com>
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Merging #3735 (25178ac) into main (39d1b33) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3735      +/-   ##
==========================================
- Coverage   68.96%   68.80%   -0.16%     
==========================================
  Files         216      216              
  Lines       14962    14963       +1     
==========================================
- Hits        10318    10295      -23     
- Misses       4022     4053      +31     
+ Partials      622      615       -7     

@spencerschrock spencerschrock enabled auto-merge (squash) December 13, 2023 21:37
@spencerschrock spencerschrock merged commit eefb6bf into ossf:main Dec 13, 2023
38 checks passed
@spencerschrock spencerschrock deleted the fix/linter branch December 13, 2023 21:47
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