Skip to content

chore: separate exit from cleanup

b18ad12
Select commit
Loading
Failed to load commit list.
Merged

feat: action binding, better exit and examples #40

chore: separate exit from cleanup
b18ad12
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 19, 2026 in 34s

Annotations

Check failure on line 15 in src/modules/input.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Global variables should be const.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MvFp0gnGQq5-UTw&open=AZ0D8MvFp0gnGQq5-UTw&pullRequest=40

Check warning on line 125 in examples/controller/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxLp0gnGQq5-UT9&open=AZ0D8MxLp0gnGQq5-UT9&pullRequest=40

Check warning on line 49 in examples/primitives/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mwyp0gnGQq5-UT0&open=AZ0D8Mwyp0gnGQq5-UT0&pullRequest=40

Check warning on line 100 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "auto" with an explicit template parameter.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTv&open=AZ0D8MsQp0gnGQq5-UTv&pullRequest=40

Check warning on line 22 in examples/keyboard/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxCp0gnGQq5-UT5&open=AZ0D8MxCp0gnGQq5-UT5&pullRequest=40

Check warning on line 31 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This lambda has 31 lines, which is greater than the 20 lines authorized. Split it into several lambdas or functions, or make it a named function.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTs&open=AZ0D8MsQp0gnGQq5-UTs&pullRequest=40

Check warning on line 78 in examples/primitives/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mwyp0gnGQq5-UT2&open=AZ0D8Mwyp0gnGQq5-UT2&pullRequest=40

Check warning on line 142 in examples/controller/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxLp0gnGQq5-UT-&open=AZ0D8MxLp0gnGQq5-UT-&pullRequest=40

Check warning on line 31 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the redundant return type of this lambda.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTr&open=AZ0D8MsQp0gnGQq5-UTr&pullRequest=40

Check warning on line 68 in examples/controller/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce verbosity with "using enum" for "asw::input::ControllerButton".

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxLp0gnGQq5-UT7&open=AZ0D8MxLp0gnGQq5-UT7&pullRequest=40

Check warning on line 31 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "auto" with an explicit template parameter.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTt&open=AZ0D8MsQp0gnGQq5-UTt&pullRequest=40

Check warning on line 90 in examples/mouse/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mw7p0gnGQq5-UT3&open=AZ0D8Mw7p0gnGQq5-UT3&pullRequest=40

Check warning on line 59 in examples/actions/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mwqp0gnGQq5-UTz&open=AZ0D8Mwqp0gnGQq5-UTz&pullRequest=40

Check failure on line 16 in examples/keyboard/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 34 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxCp0gnGQq5-UT4&open=AZ0D8MxCp0gnGQq5-UT4&pullRequest=40

Check warning on line 85 in examples/keyboard/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid explicitly specifying the template arguments by relying on the class template argument deduction.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxCp0gnGQq5-UT6&open=AZ0D8MxCp0gnGQq5-UT6&pullRequest=40

Check warning on line 17 in include/asw/modules/action.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the misleading "/*" characters.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MwIp0gnGQq5-UTy&open=AZ0D8MwIp0gnGQq5-UTy&pullRequest=40

Check failure on line 21 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Global variables should be const.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTp&open=AZ0D8MsQp0gnGQq5-UTp&pullRequest=40

Check warning on line 76 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "auto" with an explicit template parameter.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTu&open=AZ0D8MsQp0gnGQq5-UTu&pullRequest=40

Check failure on line 17 in src/modules/core.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Global variables should be const.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mvip0gnGQq5-UTx&open=AZ0D8Mvip0gnGQq5-UTx&pullRequest=40

Check warning on line 52 in examples/primitives/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace constant with "std::numbers::pi_v<float>".

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8Mwyp0gnGQq5-UT1&open=AZ0D8Mwyp0gnGQq5-UT1&pullRequest=40

Check warning on line 95 in examples/controller/main.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declaration shadows a local variable "count" in the outer scope.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MxLp0gnGQq5-UT8&open=AZ0D8MxLp0gnGQq5-UT8&pullRequest=40

Check warning on line 21 in src/modules/action.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the transparent equality "std::equal_to<>" and a custom transparent heterogeneous hasher with this associative string container.

See more on https://sonarcloud.io/project/issues?id=AdsGames_asw&issues=AZ0D8MsQp0gnGQq5-UTq&open=AZ0D8MsQp0gnGQq5-UTq&pullRequest=40