Skip to content

V18 - #46

Merged
BotellaA merged 2 commits into
nextfrom
v18
Aug 18, 2026
Merged

V18#46
BotellaA merged 2 commits into
nextfrom
v18

Conversation

@BenPinet

@BenPinet BenPinet commented Aug 4, 2026

Copy link
Copy Markdown
Member

No description provided.

@BenPinet
BenPinet requested a review from BotellaA August 4, 2026 09:40
@github-actions

github-actions Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-tidy (v21.1.8) reports: 18 concern(s)
  • include/geode/stochastic/sampling/distributions.hpp:44:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

       44 |         bool is_valid() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:75:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

       75 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:86:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

       86 |         bool is_valid() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:111:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      111 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:121:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

      121 |         bool is_valid() const;
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:136:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      136 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:147:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

      147 |         bool is_valid() const;
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:165:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      165 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:202:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      202 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:230:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

      230 |         bool is_valid() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:255:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      255 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:274:23: warning: [cppcoreguidelines-avoid-magic-numbers]

    2.0 is a magic number; consider replacing it with a named constant

      274 |         double alpha{ 2.0 }; // default value > 0
          |                       ^
  • include/geode/stochastic/sampling/distributions.hpp:291:9: warning: [modernize-use-nodiscard]

    function 'is_valid' should be marked [[nodiscard]]

      291 |         bool is_valid() const
          |         ^
          |         [[nodiscard]] 
  • include/geode/stochastic/sampling/distributions.hpp:326:9: warning: [modernize-use-nodiscard]

    function 'string' should be marked [[nodiscard]]

      326 |         std::string string() const
          |         ^
          |         [[nodiscard]] 
  • src/geode/stochastic/sampling/distributions.cpp:120:26: warning: [cppcoreguidelines-avoid-magic-numbers]

    6.0 is a magic number; consider replacing it with a named constant

      120 |         if( min < mean + 6.0 * standard_deviation
          |                          ^
  • src/geode/stochastic/sampling/distributions.cpp:120:26: warning: [readability-math-missing-parentheses]

    '*' has higher precedence than '+'; add parentheses to explicitly specify the order of operations

      120 |         if( min < mean + 6.0 * standard_deviation
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~
          |                          (                       )
  • src/geode/stochastic/sampling/distributions.cpp:121:29: warning: [cppcoreguidelines-avoid-magic-numbers]

    6.0 is a magic number; consider replacing it with a named constant

      121 |             && max > mean - 6.0 * standard_deviation )
          |                             ^
  • src/geode/stochastic/sampling/distributions.cpp:121:29: warning: [readability-math-missing-parentheses]

    '*' has higher precedence than '-'; add parentheses to explicitly specify the order of operations

      121 |             && max > mean - 6.0 * standard_deviation )
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~
          |                             (                       )

Have any feedback or feature suggestions? Share it here.

@BenPinet
BenPinet marked this pull request as ready for review August 18, 2026 12:37
@BotellaA
BotellaA merged commit bce0d3f into next Aug 18, 2026
84 of 96 checks passed
@BotellaA
BotellaA deleted the v18 branch August 18, 2026 15:27
@BotellaA

Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.21.1-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@BotellaA

Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.21.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants