jerrrrycho
b6186ced21
refactor(sonar): assorted small fixes
...
- empty() instead of size() comparisons (cpp:S1155)
- member initialisers in declaration order (cpp:S3229)
- no redundant c_str() when a std::string is accepted (cpp:S7121)
- contains() on associative containers (cpp:S6171)
- const reference instead of a copying range-for (cpp:S6032)
- starts_with() for prefix checks (cpp:S6178)
- no std::move on temporaries (cpp:S5274)
- has_value() on std::optional (cpp:S7172)
- bool literals for bool members (cpp:S5820)
- inline only on the definition (cpp:S3548)
- explicit base access specifier (cpp:S5965)
- explicit element access instead of dereferencing an array (cpp:S7116)
- rely on the C++20 rewritten operator!= (cpp:S6186)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 17:50:12 +02:00
jerrrrycho
71d4796649
refactor(sonar): make read-only global tables const (cpp:S5421)
...
Mutable global state (flags, timers, singletons) is left as is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 17:36:32 +02:00
jerrrrycho
5d33d89225
refactor(sonar): pass expensive-to-copy parameters by const reference (cpp:S1238)
...
Signatures declared in files touched by PR 206 (Driver.h, EU07.cpp) and
virtual overrides are left unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 17:16:40 +02:00
jerrrrycho
0a7c42c4a9
refactor(sonar): take read-only pointer and reference parameters as const (cpp:S995)
...
TTrain command handlers keep their signature, it is fixed by the handler table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 17:08:45 +02:00
jerrrrycho
d7edea6fac
refactor(sonar): make read-only local references and pointers const (cpp:S5350)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 17:05:09 +02:00
jerrrrycho
8afb232f2a
refactor(sonar): reduce enum qualification with using enum (cpp:S6177)
...
Applied only where no unqualified name in the block could be captured by
the introduced enumerators.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:49:01 +02:00
jerrrrycho
a47c2a6ea0
refactor(sonar): rename locals that shadow outer declarations (cpp:S1117)
...
Only local variables and definition parameters are renamed; shadowing
struct fields and enumerators in headers are left for a separate change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:45:39 +02:00
jerrrrycho
319815cb0b
refactor(sonar): drop top-level const from by-value return types (cpp:S5951)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:29:47 +02:00
jerrrrycho
b6349b76e3
refactor(sonar): use structured bindings for pair access (cpp:S6005)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:06:32 +02:00
jerrrrycho
9c7043d013
refactor(sonar): remove unused variables, captures and private fields (cpp:S1481, cpp:S1068)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 16:03:19 +02:00
jerrrrycho
ce786c22ce
refactor(sonar): remove dead stores (cpp:S1854)
...
Side effects (e.g. LISTLINE++) are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:58:05 +02:00
jerrrrycho
8f89dcefcd
refactor(sonar): use auto where the type is spelled out on the right (cpp:S5827)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:52:25 +02:00
jerrrrycho
95bc9bd511
refactor(sonar): use try_emplace for map insertion (cpp:S6030)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:51:29 +02:00
jerrrrycho
9b89a5d887
refactor(sonar): scope single-use variables in if init-statements (cpp:S6004)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:44:18 +02:00
jerrrrycho
f8104bd0dd
refactor(sonar): merge collapsible nested if statements (cpp:S1066)
...
Comments that preceded the inner if are kept above the merged statement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:39:11 +02:00
jerrrrycho
3198cabc78
refactor(sonar): declare non-mutating member functions const (cpp:S5817)
...
Virtual functions are left untouched so overrides keep matching.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:26:48 +02:00
jerrrrycho
1f256e9593
refactor(sonar): mark unused parameters (cpp:S1172)
...
Unused names are commented out; parameters used only on some platforms
are marked [[maybe_unused]].
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:18:45 +02:00
jerrrrycho
8c23c1fe2b
refactor(sonar): make narrowing conversions explicit (cpp:S5276)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:16:28 +02:00
jerrrrycho
c831bb543c
refactor(sonar): remove redundant access specifiers (cpp:S3539)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:05:48 +02:00
jerrrrycho
1806f029cc
refactor(sonar): use nullptr literal (cpp:S4962)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:05:47 +02:00
jerrrrycho
3d7a06f425
refactor(sonar): prefer using over typedef (cpp:S5416)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:05:42 +02:00
jerrrrycho
65ded920d2
refactor(sonar): remove empty statements, one declaration per statement (cpp:S1116, cpp:S1659)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 15:03:30 +02:00
jerrrrycho
8ce68e3d41
refactor(sonar): use override instead of redundant virtual (cpp:S3471)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 14:55:56 +02:00
d60841944d
Merge pull request #124 from xwizard/refactor/user-config-path
...
refactor: extract user_config_path() helper
2026-06-30 22:35:53 +02:00
Mateusz Włodarczyk
fe603f15eb
refactor: extract user_config_path() helper
...
Consolidates platform-specific config-directory logic (APPDATA on Windows,
~/Library/Application Support on macOS, ~/.config on Linux) into a single
user_config_path(filename) function in utilities/utilities.{cpp,h}, removing
copy-pasted #ifdef blocks from application.cpp, editor/editorSettings.cpp,
input/{keyboard,gamepad,drivermouse,uart}input.cpp.
2026-06-30 21:30:36 +02:00
jerrrrycho
d85096f64d
reformat: remove redundant parentheses
2026-06-30 21:19:46 +02:00
Sebastian Krzyszkowiak
6435c3d850
Remember which modifiers were present on key press and use them on key release
...
This fixes an issue where a triggered command stays indefinitely active
when the user releases the modifier before releasing the triggering key.
2026-06-29 23:21:21 +02:00
5a39ed5193
ImGuizmo System OpenGL
2026-06-17 01:19:59 +02:00
3bed2212d7
Editor settings for New/Legacy camera controll
2026-06-16 23:53:01 +02:00
docentYT
5367cb9940
Merge remote-tracking branch 'upstream/master' into utilities-simplification
2026-05-05 23:08:43 +02:00
cb4b6b9a4f
Separate electrodynamic and localbrake levers
2026-05-03 21:51:16 +02:00
docentYT
13c7317f6e
Do not allow implicit cast for inline std::string to_string(bool Value) and change to_string to std::string for non boolean values
2026-05-03 15:49:29 +02:00
docentYT
ca699d117f
Remove not needed includes
2026-05-02 14:40:31 +02:00
docentYT
3628eb0fc3
Replace interpolate with std::lerp and glm::mix
2026-05-02 01:31:38 +02:00
docentYT
d1f16411a1
Replace clamp with std::clamp
2026-05-01 22:14:29 +02:00
6177cfb01d
Add radiocall1
2026-04-19 04:15:25 +02:00
copilot-swe-agent[bot]
7e49aa8740
Rewrite #includes to use explicit subdirectory paths
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:16:48 +00:00
copilot-swe-agent[bot]
0531086bb9
Reorganize source files into logical subdirectories
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:01:57 +00:00