Skip to content

Release 1.0.0#145

Merged
josephbirkner merged 23 commits into
mainfrom
release/1.0.0
Jun 9, 2026
Merged

Release 1.0.0#145
josephbirkner merged 23 commits into
mainfrom
release/1.0.0

Support schema-backed enum query shorthand

003b8b4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 9, 2026 in 1m 20s

Annotations

Check failure on line 451 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U7&open=AZ50mxdZ0m21dqBYC0U7&pullRequest=145

Check warning on line 73 in src/model/string-pool.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=Klebert-Engineering_simfil&issues=AZ6OPQ5Zgn8rbgRtV5_w&open=AZ6OPQ5Zgn8rbgRtV5_w&pullRequest=145

Check failure on line 262 in include/simfil/model/schema.h

See this annotation in the file changed.

@sonarqubecloud 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 598 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud 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=AZ6tF_JjYm2LOFmhG0Pv&open=AZ6tF_JjYm2LOFmhG0Pv&pullRequest=145

Check warning on line 407 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud 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=AZ6mDWTF03Dbzg5UyKgf&open=AZ6mDWTF03Dbzg5UyKgf&pullRequest=145

Check warning on line 333 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud 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 85 in src/model/string-pool.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "emplace" with "try_emplace".

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ6OPQ5Zgn8rbgRtV5_y&open=AZ6OPQ5Zgn8rbgRtV5_y&pullRequest=145

Check warning on line 690 in include/simfil/model/schema.h

See this annotation in the file changed.

@sonarqubecloud 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 93 in include/simfil/simfil.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the transparent comparator "std::less<>" with this associative string container.

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ6mDWeU03Dbzg5UyKgi&open=AZ6mDWeU03Dbzg5UyKgi&pullRequest=145

Check warning on line 182 in src/simfil.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=Klebert-Engineering_simfil&issues=AZ6UsoY4dEQVRFx1Nq0g&open=AZ6UsoY4dEQVRFx1Nq0g&pullRequest=145

Check warning on line 70 in src/model/string-pool.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "emplace" with "try_emplace".

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ6OPQ5Zgn8rbgRtV5_v&open=AZ6OPQ5Zgn8rbgRtV5_v&pullRequest=145

Check warning on line 180 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud 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=AZ6UsoY4dEQVRFx1Nq0f&open=AZ6UsoY4dEQVRFx1Nq0f&pullRequest=145

Check failure on line 144 in include/simfil/model/model.h

See this annotation in the file changed.

@sonarqubecloud 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=AZ6mDWdr03Dbzg5UyKgh&open=AZ6mDWdr03Dbzg5UyKgh&pullRequest=145

Check warning on line 480 in test/schema.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce verbosity with "using enum" for "simfil::SchemaPathSegment::Kind".

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ6UsoT5dEQVRFx1Nq0e&open=AZ6UsoT5dEQVRFx1Nq0e&pullRequest=145

Check warning on line 546 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud 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=AZ6tF_JjYm2LOFmhG0Ps&open=AZ6tF_JjYm2LOFmhG0Ps&pullRequest=145

Check warning on line 1259 in src/expressions.cpp

See this annotation in the file changed.

@sonarqubecloud 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 warning on line 665 in src/simfil.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=Klebert-Engineering_simfil&issues=AZ50mxdZ0m21dqBYC0U-&open=AZ50mxdZ0m21dqBYC0U-&pullRequest=145

Check warning on line 42 in src/rewrite-rules.h

See this annotation in the file changed.

@sonarqubecloud 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 warning on line 112 in include/simfil/value.h

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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 failure on line 375 in include/simfil/model/schema.h

See this annotation in the file changed.

@sonarqubecloud 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=AZ6Usod7dEQVRFx1Nq0l&open=AZ6Usod7dEQVRFx1Nq0l&pullRequest=145

Check failure on line 269 in repl/repl.cpp

See this annotation in the file changed.

@sonarqubecloud 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 249 in repl/repl.cpp

See this annotation in the file changed.

@sonarqubecloud 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 failure on line 255 in src/simfil.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use has_value() or another member function to clarify that the code tests the presence of a value in the "optional", not the contained "unsigned short" value itself.

See more on https://sonarcloud.io/project/issues?id=Klebert-Engineering_simfil&issues=AZ6UsoY4dEQVRFx1Nq0h&open=AZ6UsoY4dEQVRFx1Nq0h&pullRequest=145