Repository navigation
Commit ea4757e
refactor(chargepilot): CP-080 says each thing once
A ponytail review of c97170d: 27 lines of KDoc over 14 lines of code, and the
same fact — 148 km driven, 32 km recorded — written five times across the
commit, the KDoc, the manifest, the allowlist and the ticket.
The KDoc keeps only what a reader of the file cannot derive from it: why
exported is safe on a protected broadcast, why the action is checked anyway,
why failures are caught. The measurement and the cost live in CP-080, which
is where a reviewer looks for them. The manifest comment defers to the
allowlist, which is the artefact the blocking CI gate actually reads.
MY_PACKAGE_REPLACED is dropped. An update is a manual act — the user is in
front of the screen and opens the app afterwards, which already restarts the
monitor — so it closed a gap bounded by one boot cycle at the cost of a
second action and a longer guard. BOOT_COMPLETED alone covers the case that
was measured.
The success log goes with it: the service logs "service created" and
"telemetry sampler started" one second later. The refusal log stays, because
"automatic detection is off" is the one outcome nothing else explains, and
this car has no ADB.
Net 31 lines removed, behaviour unchanged on the path that was measured.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent c97170d commit ea4757e
3 files changed
Lines changed: 19 additions & 50 deletions
File tree
- .github/security
- app/src/main
- java/com/evsuite/chargepilot
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 33 | + | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
163 | 158 | | |
164 | 159 | | |
165 | 160 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 161 | | |
170 | 162 | | |
171 | | - | |
172 | 163 | | |
173 | 164 | | |
174 | 165 | | |
175 | | - | |
176 | 166 | | |
177 | 167 | | |
178 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
17 | 13 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
37 | 25 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 26 | + | |
42 | 27 | | |
43 | | - | |
| 28 | + | |
44 | 29 | | |
45 | 30 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 31 | | |
50 | | - | |
51 | | - | |
| 32 | + | |
52 | 33 | | |
53 | | - | |
54 | | - | |
55 | 34 | | |
0 commit comments