Commit 11aee1a
committed
Promote hidden to a first-class flag on PropertyDefinition
Persist `hidden` as an instance field on PropertyDefinition with a
public `hidden()` getter, so consumers can filter UI listings on it.
Drop the build-time mutex that forbade combining `.hidden()` with
`.onConfigScopes(...)` / `.onlyOnConfigScopes(...)`, and drop the
`if (hidden) global = false` coercion. `hidden` is now orthogonal to
`global` and `configScopes`, enabling per-project-settable properties
that are not exposed in the Settings UI.1 parent 98b2cff commit 11aee1a
2 files changed
Lines changed: 38 additions & 20 deletions
File tree
- plugin-api/src
- main/java/org/sonar/api/config
- test/java/org/sonar/api/config
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
347 | 357 | | |
348 | 358 | | |
349 | 359 | | |
| |||
667 | 677 | | |
668 | 678 | | |
669 | 679 | | |
670 | | - | |
671 | 680 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | 681 | | |
676 | 682 | | |
677 | 683 | | |
| |||
Lines changed: 28 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
111 | 137 | | |
| 138 | + | |
112 | 139 | | |
113 | 140 | | |
114 | 141 | | |
| |||
125 | 152 | | |
126 | 153 | | |
127 | 154 | | |
| 155 | + | |
128 | 156 | | |
129 | 157 | | |
130 | 158 | | |
| |||
320 | 348 | | |
321 | 349 | | |
322 | 350 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 351 | | |
340 | 352 | | |
341 | 353 | | |
| |||
0 commit comments