Skip to content

fix: reduce warnings when running tests #1270

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

Merged
merged 10 commits into from
Jul 1, 2025
Merged

fix: reduce warnings when running tests #1270

merged 10 commits into from
Jul 1, 2025

Conversation

heyzec
Copy link
Contributor

@heyzec heyzec commented Jul 1, 2025

Tried to reduce the number of warnings emitted when running mix test. There are still some warnings left, reasons for which are not fixed mainly below to the following two categories:

  1. Warning is about a deprecated API of a library, and changing requires better understanding of the library (which I don't have)
  2. Cause of warning is directly from a library, and a possible way to remove warning is to upgrade the library.

@heyzec heyzec requested a review from GabrielCWT July 1, 2025 15:09
heyzec added 8 commits July 1, 2025 23:11
"warning: the log level :warn is deprecated, use :warning instead"
"warning: module attribute @doc was set but no definition follows it"
"warning: using single-quoted strings to represent charlists is deprecated."
"clauses with the same name and arity (number of arguments) should be grouped together"
"10..0 has a default step of -1, please write 10..0//-1 instead"
"unused alias"
"warning: variable "XXX" is unused"
"""
warning: attempting to determine the presence of embed_many field :choices with validate_required/3 ... which has no effect.
You can pass the :required option to Ecto.Changeset.cast_embed/3 to achieve this.
"""
@coveralls
Copy link

coveralls commented Jul 1, 2025

Coverage Status

coverage: 92.467% (-0.006%) from 92.473%
when pulling 0f6998a on warnings
into 41026f5 on master.

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@RichDom2185 RichDom2185 enabled auto-merge (squash) July 1, 2025 16:35
@RichDom2185 RichDom2185 merged commit 4b30417 into master Jul 1, 2025
1 check passed
@RichDom2185 RichDom2185 deleted the warnings branch July 1, 2025 16:37
tckeong added a commit that referenced this pull request Jul 9, 2025
* build(deps): Bump sentry from 11.0.0 to 11.0.1 (#1263)

Bumps [sentry](https://github.com/getsentry/sentry-elixir) from 11.0.0 to 11.0.1.
- [Release notes](https://github.com/getsentry/sentry-elixir/releases)
- [Changelog](https://github.com/getsentry/sentry-elixir/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-elixir@11.0.0...11.0.1)

---
updated-dependencies:
- dependency-name: sentry
  dependency-version: 11.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): Bump phoenix_ecto from 4.6.4 to 4.6.5 (#1266)

Bumps [phoenix_ecto](https://github.com/phoenixframework/phoenix_ecto) from 4.6.4 to 4.6.5.
- [Changelog](https://github.com/phoenixframework/phoenix_ecto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_ecto/commits/v4.6.5)

---
updated-dependencies:
- dependency-name: phoenix_ecto
  dependency-version: 4.6.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Filter team formation list (#1268)

* Add new method

* Use new method

* Fix credo error

* Fix and update tests

* fix: reduce warnings when running tests (#1270)

* replace warn with warning

"warning: the log level :warn is deprecated, use :warning instead"

* empty doc

"warning: module attribute @doc was set but no definition follows it"

* replace '' with ""

"warning: using single-quoted strings to represent charlists is deprecated."

* move function

"clauses with the same name and arity (number of arguments) should be grouped together"

* make range explicit

"10..0 has a default step of -1, please write 10..0//-1 instead"

* remove alias

"unused alias"

* rename unused variables

"warning: variable "XXX" is unused"

* remove choices from validate_required

"""
warning: attempting to determine the presence of embed_many field :choices with validate_required/3 ... which has no effect.
You can pass the :required option to Ecto.Changeset.cast_embed/3 to achieve this.
"""

* delete unused variables instead

* Revert "remove choices from validate_required"

This reverts commit 088fa96.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Richard Dominick <[email protected]>
Co-authored-by: heyzec <[email protected]>
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.

3 participants