Rewrite auto-wildcard queries with schema paths #149
Quality Gate passed
Annotations
Check warning on line 56 in src/rewrite-rules.h
sonarqubecloud / SonarCloud Code Analysis
Make the type of this parameter a reference-to-const. The current type of "expr" is "class std::unique_ptr<class simfil::Expr> &".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX9uh7s663YLdn7C&open=AZ5KJX9uh7s663YLdn7C&pullRequest=145
Check failure on line 219 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxig0m21dqBYC0U_&open=AZ50mxig0m21dqBYC0U_&pullRequest=145
Check warning on line 188 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Remove the redundant return type of this lambda.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U5&open=AZ50mxdZ0m21dqBYC0U5&pullRequest=145
Check warning on line 112 in include/simfil/value.h
sonarqubecloud / SonarCloud Code Analysis
Prefer "std::to_underlying" to "std::underlying_type_t" to cast enums to their underlying type.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX_Sh7s663YLdn7G&open=AZ5KJX_Sh7s663YLdn7G&pullRequest=145
Check warning on line 108 in include/simfil/value.h
sonarqubecloud / SonarCloud Code Analysis
Prefer "std::to_underlying" to "std::underlying_type_t" to cast enums to their underlying type.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX_Sh7s663YLdn7F&open=AZ5KJX_Sh7s663YLdn7F&pullRequest=145
Check warning on line 94 in src/rewrite-rules.h
sonarqubecloud / SonarCloud Code Analysis
Make the type of this parameter a reference-to-const. The current type of "expr" is "class std::unique_ptr<class simfil::Expr> &".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX9uh7s663YLdn7E&open=AZ5KJX9uh7s663YLdn7E&pullRequest=145
Check warning on line 824 in test/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Remove the redundant return type of this lambda.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX3Jh7s663YLdn6-&open=AZ5KJX3Jh7s663YLdn6-&pullRequest=145
Check warning on line 1196 in src/expressions.cpp
sonarqubecloud / SonarCloud Code Analysis
Directly pass the arguments for object creation to this function.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX9Sh7s663YLdn7A&open=AZ5KJX9Sh7s663YLdn7A&pullRequest=145
Check failure on line 226 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxig0m21dqBYC0VA&open=AZ50mxig0m21dqBYC0VA&pullRequest=145
Check failure on line 637 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5QilC-FWZNvFTrJNIq&open=AZ5QilC-FWZNvFTrJNIq&pullRequest=145
Check failure on line 210 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5QilC-FWZNvFTrJNIo&open=AZ5QilC-FWZNvFTrJNIo&pullRequest=145
Check warning on line 808 in test/schema.cpp
sonarqubecloud / SonarCloud Code Analysis
Use std::format instead of concatenating pieces manually.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX4Jh7s663YLdn6_&open=AZ5KJX4Jh7s663YLdn6_&pullRequest=145
Check warning on line 404 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Reduce verbosity with "using enum" for "simfil::Schema::State".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX_qh7s663YLdn7H&open=AZ5KJX_qh7s663YLdn7H&pullRequest=145
Check warning on line 249 in repl/repl.cpp
sonarqubecloud / SonarCloud Code Analysis
Use "std::array" or "std::vector" instead of a C-style array.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJYCVh7s663YLdn7J&open=AZ5KJYCVh7s663YLdn7J&pullRequest=145
Check warning on line 332 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Remove the redundant return type of this lambda.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U9&open=AZ50mxdZ0m21dqBYC0U9&pullRequest=145
Check warning on line 42 in src/rewrite-rules.h
sonarqubecloud / SonarCloud Code Analysis
Make the type of this parameter a reference-to-const. The current type of "expr" is "class std::unique_ptr<class simfil::Expr> &".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX9uh7s663YLdn7B&open=AZ5KJX9uh7s663YLdn7B&pullRequest=145
Check failure on line 269 in repl/repl.cpp
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJYCVh7s663YLdn7I&open=AZ5KJYCVh7s663YLdn7I&pullRequest=145
Check warning on line 597 in include/simfil/model/schema.h
sonarqubecloud / SonarCloud Code Analysis
Reduce verbosity with "using enum" for "simfil::Schema::State".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5QilC-FWZNvFTrJNIp&open=AZ5QilC-FWZNvFTrJNIp&pullRequest=145
Check warning on line 364 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Remove the redundant return type of this lambda.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U-&open=AZ50mxdZ0m21dqBYC0U-&pullRequest=145
Check warning on line 89 in src/completion.cpp
sonarqubecloud / SonarCloud Code Analysis
Use the init-statement to declare "first" inside the if statement.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5QilAuFWZNvFTrJNIn&open=AZ5QilAuFWZNvFTrJNIn&pullRequest=145
Check warning on line 210 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Make the type of this parameter a reference-to-const. The current type of "env" is "struct simfil::Environment &".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U6&open=AZ50mxdZ0m21dqBYC0U6&pullRequest=145
Check warning on line 317 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Replace this use of "push_back" with "emplace_back".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U8&open=AZ50mxdZ0m21dqBYC0U8&pullRequest=145
Check warning on line 77 in src/rewrite-rules.h
sonarqubecloud / SonarCloud Code Analysis
Make the type of this parameter a reference-to-const. The current type of "expr" is "class std::unique_ptr<class simfil::Expr> &".
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ5KJX9uh7s663YLdn7D&open=AZ5KJX9uh7s663YLdn7D&pullRequest=145
Check failure on line 236 in src/simfil.cpp
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 27 to the 25 allowed.
See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U7&open=AZ50mxdZ0m21dqBYC0U7&pullRequest=145