Commit Graph

11 Commits

Author SHA1 Message Date
Artem Belevich
76dc4b0ca5 Add += append syntax for string properties. (#8387)
Introduce a += operator in property file parsing that appends values to
existing string properties. This allows splitting long property values
across multiple lines for improved readability.

Example:
  group.compilers=comp1:comp2:comp3
  group.compilers+=:comp4:comp5:comp6

Error handling:
- Logs error and skips if += is used on an undefined property
- Logs error and skips if += is used on a non-string property

Includes unit tests for the new functionality.

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2026-02-02 20:02:38 -06:00
Kale Blankenship
e8c754d830 Avoid parsing version properties as numbers
Parsing versions such as "1.10" results in a "1.1" float, incorrectly
changing the value.

Fixes #1980
2020-05-17 15:20:06 -04:00
RabsRincon
5dcd18f0f5 Avoid 0X.. property values to be parsed as ints
It might break 3rd party configs in some obscure way, but after looking
at how it might happen, I can't see obvious reasons not to implement it
2018-05-28 00:59:43 +02:00
RabsRincon
2ff9775e1f Improve tests structures a tiny bit 2018-04-13 14:53:01 +02:00
RabsRincon
7145ba972f Improve small details 2018-04-12 15:30:15 +02:00
RabsRincon
483fb3e4ba Separate compiler search from app.js
In a different branch to ensure it works before merging with master
2018-04-12 15:20:43 +02:00
RabsRincon
8ccd00fc5d Rename variable to be more verbose 2018-03-12 19:34:14 +01:00
RabsRincon
f9928ebc75 Improve CSP & add some corner case tests 2018-03-12 19:32:17 +01:00
RabsRincon
ef95efc4ce Further improve pre-commit hook 2017-12-11 09:20:12 +01:00
RabsRincon
0e55afb8dd Add mising properties case.
Some readbility fixes along the way too
2017-12-11 01:15:54 +01:00
RabsRincon
25a39c3293 Add properties tests
Will come back to add more eventually. This is a base implementation
2017-12-11 00:42:50 +01:00