gestalt-config / gestalt

A Java configuration library
https://gestalt-config.github.io/gestalt/
Apache License 2.0
81 stars 2 forks source link

Feat: lexer improvements #185

Closed credmond-git closed 6 months ago

credmond-git commented 6 months ago

feat: use the common lexer to rebuild a normalized string instead of hardcoding "." feat: move array open close and map key value separator to the lexer. feat: Add a builder for the path lexer. feat: path lexer supports delimiters matching multiple tokens. feat: use the path lexer on the yaml, json, toml and hocon to split paths. fix: remove the escape string from the map decoder.

sonarcloud[bot] commented 6 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
4.3% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 95.67100% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 90.28%. Comparing base (89eeaae) to head (c8ce34b).

Files Patch % Lines
...ava/org/github/gestalt/config/toml/TomlLoader.java 63.63% 3 Missing and 1 partial :warning:
...thub/gestalt/config/decoder/BigDecimalDecoder.java 0.00% 1 Missing :warning:
.../github/gestalt/config/decoder/DecoderContext.java 83.33% 0 Missing and 1 partial :warning:
...g/github/gestalt/config/decoder/DoubleDecoder.java 0.00% 1 Missing :warning:
...github/gestalt/config/decoder/DurationDecoder.java 50.00% 1 Missing :warning:
...rg/github/gestalt/config/decoder/FloatDecoder.java 0.00% 1 Missing :warning:
...gestalt/config/source/EnvironmentConfigSource.java 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #185 +/- ## ========================================== + Coverage 90.19% 90.28% +0.08% ========================================== Files 214 215 +1 Lines 6009 6085 +76 Branches 699 706 +7 ========================================== + Hits 5420 5494 +74 - Misses 368 369 +1 - Partials 221 222 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.