Skip to content

Make config updates atomic

c7c1f50
Select commit
Loading
Failed to load commit list.
Merged

Release 2026.2.0 #159

Make config updates atomic
c7c1f50
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 8, 2026 in 2m 55s

Annotations

Check warning on line 13 in libs/pymapget/binding/py-datasource.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a name to this namespace.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4H4Pzylu0lQ3up53em&open=AZ4H4Pzylu0lQ3up53em&pullRequest=159

Check warning on line 170 in libs/model/src/geojson-import.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "std::to_address" to convert iterator to pointer.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTe5arAtzToStt9L&open=AZ39MTe5arAtzToStt9L&pullRequest=159

Check warning on line 849 in test/unit/test-http-datasource.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the init-statement to declare "fd" inside the if statement.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4Ccyh4G_tPXu0XmXe6&open=AZ4Ccyh4G_tPXu0XmXe6&pullRequest=159

Check failure on line 75 in libs/model/src/json-compare.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=ndsev_mapget&issues=AZ39MTgdarAtzToStt9c&open=AZ39MTgdarAtzToStt9c&pullRequest=159

Check warning on line 166 in libs/pymapget/binding/py-layer.h

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=ndsev_mapget&issues=AZ4H4P0alu0lQ3up53eq&open=AZ4H4P0alu0lQ3up53eq&pullRequest=159

Check warning on line 180 in libs/model/src/json-compare.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use std::format instead of concatenating pieces manually.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTgdarAtzToStt9h&open=AZ39MTgdarAtzToStt9h&pullRequest=159

Check warning on line 73 in libs/model/src/pointnode.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce verbosity with "using enum" for "mapget::GeometryPointViewKind".

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ26WcbhD3LeEZ4uLR0K&open=AZ26WcbhD3LeEZ4uLR0K&pullRequest=159

Check warning on line 135 in libs/http-datasource/src/http-server.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "starts_with()" to check the prefix of the string.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4CcycOG_tPXu0XmXew&open=AZ4CcycOG_tPXu0XmXew&pullRequest=159

Check warning on line 447 in libs/geojsonsource/src/geojsonsource.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch a more specific exception instead of a generic one.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTmUarAtzToStt9z&open=AZ39MTmUarAtzToStt9z&pullRequest=159

Check warning on line 491 in libs/geojsonsource/src/geojsonsource.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=ndsev_mapget&issues=AZ39MTmUarAtzToStt91&open=AZ39MTmUarAtzToStt91&pullRequest=159

Check failure on line 828 in libs/model/src/geojson-import.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTe5arAtzToStt9V&open=AZ39MTe5arAtzToStt9V&pullRequest=159

Check warning on line 17 in libs/pymapget/binding/py-datasource.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce verbosity with "using enum" for "nlohmann::detail::value_t".

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4H4Pzylu0lQ3up53en&open=AZ4H4Pzylu0lQ3up53en&pullRequest=159

Check warning on line 143 in libs/http-service/src/config-handler.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use std::format instead of concatenating pieces manually.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4H_6Lk5QucLT_V6fh5&open=AZ4H_6Lk5QucLT_V6fh5&pullRequest=159

Check warning on line 225 in libs/http-datasource/src/datasource-server.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch a more specific exception instead of a generic one.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4H4PvGlu0lQ3up53el&open=AZ4H4PvGlu0lQ3up53el&pullRequest=159

Check warning on line 37 in libs/model/src/validity.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Uppercase the literal suffix.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ3-JdQtiwwSgDrw-tP1&open=AZ3-JdQtiwwSgDrw-tP1&pullRequest=159

Check warning on line 865 in test/unit/test-http-datasource.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This lambda has 24 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=ndsev_mapget&issues=AZ4G_kk3bqYyWt88pl8A&open=AZ4G_kk3bqYyWt88pl8A&pullRequest=159

Check warning on line 195 in libs/service/src/config.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch a more specific exception instead of a generic one.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4CcyYwG_tPXu0XmXeo&open=AZ4CcyYwG_tPXu0XmXeo&pullRequest=159

Check warning on line 158 in libs/http-datasource/src/http-server.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the init-statement to declare "exists" inside the if statement.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4CcycOG_tPXu0XmXex&open=AZ4CcycOG_tPXu0XmXex&pullRequest=159

Check warning on line 66 in libs/model/src/json-compare.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use std::format instead of concatenating pieces manually.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTgdarAtzToStt9d&open=AZ39MTgdarAtzToStt9d&pullRequest=159

Check warning on line 1064 in libs/service/src/service.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce verbosity with "using enum" for "mapget::NoDataSourceReason".

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ4CcyZtG_tPXu0XmXeu&open=AZ4CcyZtG_tPXu0XmXeu&pullRequest=159

Check failure on line 210 in libs/model/src/geojson-import.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 int" value itself.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTe5arAtzToStt9N&open=AZ39MTe5arAtzToStt9N&pullRequest=159

Check warning on line 175 in libs/geojsonsource/src/geojsonsource.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "std::string" instead of a C-style char array.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTmUarAtzToStt9u&open=AZ39MTmUarAtzToStt9u&pullRequest=159

Check warning on line 331 in libs/service/src/config.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTkAarAtzToStt9o&open=AZ39MTkAarAtzToStt9o&pullRequest=159

Check warning on line 51 in libs/pymapget/binding/py-layer.h

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=ndsev_mapget&issues=AZ4H4P0alu0lQ3up53eo&open=AZ4H4P0alu0lQ3up53eo&pullRequest=159

Check failure on line 683 in libs/model/src/geojson-import.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=ndsev_mapget&issues=AZ39MTe5arAtzToStt9T&open=AZ39MTe5arAtzToStt9T&pullRequest=159