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

Various Composer improvements #8975

Merged
merged 6 commits into from
Aug 10, 2024
Merged

Various Composer improvements #8975

merged 6 commits into from
Aug 10, 2024

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

To not confuse the analyzer with a "dirty" working directory, stash away
any present "vendor" directory [1] when running `composer`, similar as
done for `GoMod`.

[1]: https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies

Signed-off-by: Sebastian Schuberth <[email protected]>
This small function is only used once and does not actually "parse"
anything anymore itself.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth requested a review from a team as a code owner August 9, 2024 10:10
@sschuberth sschuberth enabled auto-merge (rebase) August 9, 2024 10:12
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.64%. Comparing base (c1f1795) to head (cc87e6b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8975   +/-   ##
=========================================
  Coverage     67.64%   67.64%           
  Complexity     1168     1168           
=========================================
  Files           244      244           
  Lines          7783     7783           
  Branches        867      867           
=========================================
  Hits           5265     5265           
  Misses         2161     2161           
  Partials        357      357           
Flag Coverage Δ
funTest-docker 67.39% <ø> (ø)
funTest-non-docker 33.92% <ø> (ø)
test 37.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Align on not using `with =` as it is the only parameter for the
annotation anyway.

Signed-off-by: Sebastian Schuberth <[email protected]>
The function's docs say: "This overload works with full type information,
including type arguments and nullability, and is a recommended way to
retrieve a serializer."

Signed-off-by: Sebastian Schuberth <[email protected]>
Note that KxS requires to explicitly state default values even for
nullable types, while Jackson implicitly defaults to null for nullable
types.

Signed-off-by: Sebastian Schuberth <[email protected]>
Quoting [1]: "The license of the package. This can be either a string or
an array of strings."

[1]: https://getcomposer.org/doc/04-schema.md#license

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth changed the title Stash Compose's "vendor" directory Various Composer improvements Aug 10, 2024
@sschuberth sschuberth merged commit b579f88 into main Aug 10, 2024
22 checks passed
@sschuberth sschuberth deleted the compose-stash-vendor branch August 10, 2024 21:28
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