instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
slimbootloader__slimbootloader__1859 | slimbootloader/slimbootloader | 1,859 | defect | c7fbc86eb3dcc99b91420b2e36d59362106a8d18 | 52cfff655b2a5028450f7eb9303af6268cf7351a | [ADL] Update TPM event logging to match BIOS | If measured boot disabled via BtG profile but enabled via SBL
config flag, skip logging startup locality TPM event
If measured boot enabled via BtG profile or SBL config flag, log
CRTM version TPM event
| diff --git a/BootloaderCommonPkg/Include/Library/TpmLib.h b/BootloaderCommonPkg/Include/Library/TpmLib.h
index 34ef1765d1..9dd3aaa8e1 100644
--- a/BootloaderCommonPkg/Include/Library/TpmLib.h
+++ b/BootloaderCommonPkg/Include/Library/TpmLib.h
@@ -16,6 +16,17 @@
#define ACPI_SSDT_TPM2_DEVICE_OEM_TABLE_ID SIGNATURE_6... | 8 | 7 | 1 | [{"id": "G0", "claim": "Check the case where TPM init is not successful by Boot Guard, since the change removes the guard that disabled measured boot in that case.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BootloaderCommonPkg should not depend on... | null |
slimm609__checksec__333 | slimm609/checksec | 333 | defect | 1f09c59b87ad1adcb80c9e1be657373d42362a4f | 90e7519d942fb0988c4bb3d7759c0148585cdf5b | feat: add SafeStack detection check | Adds SafeStack detection support for issue #301 by checking for the `__safestack_init` symbol in ELF symbols/imports/dynamic symbol table.
## What changed
- Added `pkg/checksec/SafeStack` checker with robust input/error handling.
- Wired `safestack` into file checks aggregation (`pkg/utils/checks.go`).
- Added SafeSta... | diff --git a/pkg/checksec/safestack.go b/pkg/checksec/safestack.go
new file mode 100644
index 0000000..50dd68a
--- /dev/null
+++ b/pkg/checksec/safestack.go
@@ -0,0 +1,91 @@
+package checksec
+
+import (
+ "bytes"
+ "context"
+ "debug/elf"
+ "fmt"
+ "os"
+ "path/filepath"
+ "time"
+)
+
+// SafeStackInit symbol used by ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The context.WithTimeout in SafeStack does not actually bound any subsequent work because the select runs immediately after creating the context and always takes the default branch, so the timeout can be misleading.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "... | null |
slimtoolkit__slim__231 | slimtoolkit/slim | 231 | defect | cded8f6ed2583e41db1c046a44901ebd68d334da | 4cc22791cb1ea36724942f9e89ba4f1c836f471f | add support for private registry image pulls when using the --pull flag | [Fixes-###](https://github.com/docker-slim/docker-slim/issues/###)
N/A
What
Enhance the --pull flag, adding support for setting the registry username and password
Why
Adding support for private registry image pulls when using the --pull flag creates a better user experience
How Tested
Built and tested lo... | diff --git a/README.md b/README.md
index ad12d3a44c..9bb7f41bd7 100755
--- a/README.md
+++ b/README.md
@@ -344,6 +344,8 @@ To disable the version checks set the global `--check-version` flag to `false` (
- `--target` - Target container image (name or ID)
- `--pull` - Try pulling target if it's not available locally... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new --registry-username and --registry-password flags should be given more generic names (e.g. --registry-account and --registry-secret) since they are not limited to usernames and passwords.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
slint-ui__slint__10038 | slint-ui/slint | 10,038 | defect | 2c5b402909d0d793cc4c7302185c0b4a3cd64d4a | 242287bd5499bd889614f1361066bb8890a6715d | Add interpreter test for dialog button order | There was no such test yet, and my upcoming changes refactor how and when this reordering happens.
To ensure the test doesn't depend on the OS/WM, the interpreter sets a global bool to force the Windows layout on all platforms (I picked Windows because it was the first branch in the code).
<!--
- [ ] If the chan... | diff --git a/internal/core/layout.rs b/internal/core/layout.rs
index b078bf0b590f..76b2d7e16fca 100644
--- a/internal/core/layout.rs
+++ b/internal/core/layout.rs
@@ -401,6 +401,23 @@ mod grid_internal {
}
}
+static mut GLOBAL_TEST_MODE: bool = false;
+
+pub fn internal_set_test_mode(test_mode: bool) {
+ // ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Don't use `static mut` (unsafe) for the test-mode flag: the public `internal_set_test_mode` is unsound because anyone could call it from any thread, so use an AtomicBool (or otherwise drop the unsafe).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
slint-ui__slint__10157 | slint-ui/slint | 10,157 | defect | 7c755ee17d162c690e3db3bc974f8ff85a0b3307 | ee215b72a5e7fa3de058d6e97a1b9d52fe76f224 | Translations: allow to opt out of default context | Fixes #9955 | diff --git a/api/cpp/cmake/SlintMacro.cmake b/api/cpp/cmake/SlintMacro.cmake
index cd0523ba0c50..d9d534d6f25b 100644
--- a/api/cpp/cmake/SlintMacro.cmake
+++ b/api/cpp/cmake/SlintMacro.cmake
@@ -63,6 +63,9 @@ function(SLINT_TARGET_SOURCES target)
set(translation_domain_prop "$<TARGET_GENEX_EVAL:${target},$<TAR... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new opt-out flag naming is inconsistent across tools (slint-tr-extractor uses --no-default-context while the compiler and viewer use --no-default-translation-context, and the Rust API mixes without_ and disable_), and the naming should be made more consistent, e.g. by renaming the slint-tr-e... | null |
slint-ui__slint__10267 | slint-ui/slint | 10,267 | defect | 6d080367981072364c2470e04cc160ae22bd341a | e5e1580eac8a93e479ad9f9482e7958678556247 | compiler: Fix the API for disabling the default translation context | Use an enum instead of a boolean flag
The cmake and slint-tr-extractor API remain unchanged.
| diff --git a/api/rs/build/lib.rs b/api/rs/build/lib.rs
index b6ba692d003a..4c234482ce31 100644
--- a/api/rs/build/lib.rs
+++ b/api/rs/build/lib.rs
@@ -59,6 +59,10 @@ use std::path::Path;
use i_slint_compiler::diagnostics::BuildDiagnostics;
+/// Argument of [`CompilerConfiguration::with_default_translation_context(... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment on the DefaultTranslationContext enum should read 'This enum specifies the default translation context when no context is explicitly specified' instead of 'This enum allow to configure what translation context to use'.", "category": "documentation", "verdict": "supported", "prior... | null |
slint-ui__slint__10399 | slint-ui/slint | 10,399 | defect | c18c90426d54d9238f42ac84c4971061d2c59bb9 | 928bccb8cdcaf7c4c1f822283b194fd6dc33461f | Fix animation not working for ListView | Reason: The ListView is handled differently than the ScrollView. The ListView does not load all item instances, but tries to estimate the position from the height to improve performance
Problem: When an animation is set after the mouse release and ensure_updated_listview() gets called due to the next mouse event, the ... | diff --git a/internal/backends/testing/internal_tests.rs b/internal/backends/testing/internal_tests.rs
index 536b07b370c..05fd30cdf2a 100644
--- a/internal/backends/testing/internal_tests.rs
+++ b/internal/backends/testing/internal_tests.rs
@@ -11,7 +11,7 @@ pub use i_slint_core::tests::slint_get_mocked_time as get_moc... | 3 | 3 | 1 | [{"id": "G0", "claim": "The test uses the ListView from the material library instead of the ListView from std-widgets with `mouse-drag-pan-enabled: true;`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The press-and-release helper should not be added to... | null |
slint-ui__slint__10478 | slint-ui/slint | 10,478 | defect | 62bdfcf1ad6468cefbc6da1dc3eafe4353e08eb5 | d1e6d388e5d491754cdc7135996d1a57249df438 | Slintpad: have the ability to enable experimental feature | Using `?EXPERIMENTAL=1` in the URL.
Note that the previous way to enable experimental feature was only meant to enable experimental UI feature like extra tabs, but there is no such experimental UI element right now, so disable that.
Also the LSP didn't enable experimental elements before, even when the env variab... | diff --git a/internal/compiler/lib.rs b/internal/compiler/lib.rs
index daa022ae16c9..f6f653f48366 100644
--- a/internal/compiler/lib.rs
+++ b/internal/compiler/lib.rs
@@ -320,13 +320,7 @@ fn prepare_for_compile(
diagnostics.enable_experimental = compiler_config.enable_experimental;
- let global_type_registr... | 1 | 1 | 1 | [{"id": "G0", "claim": "tronical asks whether the lsp.ts PreviewConnector.create call still passes a boolean argument that was removed from the wasm.rs constructor, leaving the experimental flag hardcoded to false and the call signature inconsistent.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
slint-ui__slint__10492 | slint-ui/slint | 10,492 | defect | ae65e5cf120fc76f0988120dba136b9892f04204 | 2fd5b18584cddc6d289613a67ebc5b4c55fd945b | Fix crashes with 0-length diagnostics | Previously, if the inner length was 0, it would return one, which may fall
in the middle of a character boundary. This might be confusing to
downstream consumers (like the LSP).
Closes #10273
<!--
- [ ] If the change modifies a visible behavior, it changes the documentation accordingly
- [ ] If possible, the change i... | diff --git a/internal/compiler/diagnostics.rs b/internal/compiler/diagnostics.rs
index 564bd190b91f..ea4f24542950 100644
--- a/internal/compiler/diagnostics.rs
+++ b/internal/compiler/diagnostics.rs
@@ -299,11 +299,9 @@ impl Diagnostic {
}
}
- /// Return the length of this diagnostic in characters.
+... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test in internal/compiler/tests covering the change to 0-length diagnostics.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The expected-error annotation in internal/compiler/tests/syntax/fuzzing/6588.slint disappeared (app... | null |
slint-ui__slint__10786 | slint-ui/slint | 10,786 | defect | 78f9b78488160cd6a8583414db9922ee26505cf4 | cfafb6ef8126e324e2c00399786e021c6acfaaae | Add PinchGestureHandler element (Path A: platform gestures) | ## Summary
Adds a new `PinchGestureHandler` element that receives platform-recognized pinch gestures (macOS/iOS trackpad via winit's `PinchGesture` event). This implements **Path A** of the [pinch-to-zoom plan](https://github.com/slint-ui/slint/issues/6704) — the OS has already recognized the gesture, so no state mach... | diff --git a/api/cpp/cbindgen.rs b/api/cpp/cbindgen.rs
index 3c5743e3617..2d0102a892c 100644
--- a/api/cpp/cbindgen.rs
+++ b/api/cpp/cbindgen.rs
@@ -300,6 +300,7 @@ fn gen_corelib(
"TouchArea",
"FocusScope",
"SwipeGestureHandler",
+ "PinchGestureHandler",
"Flickable",
... | 8 | 8 | 2 | [{"id": "G0", "claim": "The pinch-to-zoom example should follow the workspace conventions other examples use, and the reviewer questions whether it should be a standalone example at all instead of a small docs example or a feature added to the maps example.", "category": "design", "verdict": "supported", "priority": "P... | null |
slint-ui__slint__10812 | slint-ui/slint | 10,812 | defect | ecda3c7954042b7786278589cf38f48206217ce2 | 22ccbf1cff0eaf5daf34899397c98857512286ec | testing backend: use parley for text layout | Also, exclude the system fonts and merely include the noto sans font from tests/screenshots/fonts.
As a fallback, some tests are much easier written with fixed font metrics, so the FixedTestFont is an escape-catch that keeps the existing tests working.
<!--
- [ ] If the change modifies a visible behavior, it cha... | diff --git a/Cargo.lock b/Cargo.lock
index 58283c500d8..16b8fd3ac30 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4820,6 +4820,7 @@ dependencies = [
"i-slint-core",
"i-slint-core-macros",
"image",
+ "include_dir",
"pb-rs",
"quick-protobuf",
"slint",
@@ -5276,6 +5277,25 @@ version = "1.12.0"
source = "regist... | 5 | 3 | 1 | [{"id": "G0", "claim": "In configure_test_fonts() the closure passed to with_global_context uses unreachable!(\"platform was just set\") although at that point it is not known that the platform is set; it should panic with a message saying the platform is not set.", "category": "correctness", "verdict": "supported", "p... | null |
slint-ui__slint__10838 | slint-ui/slint | 10,838 | defect | 0dc870b3801e9c9322857a4df5da0cf3677d6aa1 | 1684bdd3e5966aefc06585116e39b0f24e44dde4 | PinchGestureHandler: Add rotation and smart-magnify support | ## Summary
- Add `rotation` property (cumulative degrees, positive = clockwise) and `smart-magnify` callback to `PinchGestureHandler`
- Forward winit's `RotationGesture` and `DoubleTapGesture` events through the input pipeline, extending the existing pinch gesture pattern
- Update documentation with rotation/smart-magn... | diff --git a/Cargo.lock b/Cargo.lock
index 7d4efa144a2a..2414c8593e15 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6374,6 +6374,14 @@ dependencies = [
"libloading 0.8.9",
]
+[[package]]
+name = "native-gestures"
+version = "1.16.0"
+dependencies = [
+ "slint",
+ "slint-build",
+]
+
[[package]]
name = "native-tls... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new rotation property of PinchGestureHandler should be typed as angle instead of float, for a nicer and type-safe API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
slint-ui__slint__10846 | slint-ui/slint | 10,846 | defect | 08d8e1e04752d879763c2b73015781fda65b43f2 | a11f1223351aef8b3e9965f50a90725c94e7fa14 | Flickable: smooth scrolling for wheel events (touch pads) | <!--
- [ ] If the change modifies a visible behavior, it changes the documentation accordingly
- [ ] If possible, the change is auto-tested
- [ ] If the changes fixes or close an existing issue, the commit message reference the issue with `Fixes #xxx` or `Closes #xxx`
- [ ] If the change is noteworthy, the commit m... | diff --git a/api/cpp/include/private/slint_window.h b/api/cpp/include/private/slint_window.h
index 64f32530691..fd6f4415a67 100644
--- a/api/cpp/include/private/slint_window.h
+++ b/api/cpp/include/private/slint_window.h
@@ -589,11 +589,15 @@ class Window
/// \a parameter represents the logical position of the poi... | 6 | 4 | 0 | [{"id": "G0", "claim": "The new test file listview_scroll_touch_pad2.slint duplicates listview_scroll_touch_pad.slint; merge the two files into one with two ```rust code fences so both tests are generated with only one compilation phase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
slint-ui__slint__10869 | slint-ui/slint | 10,869 | defect | ec0965f0b302ccdcc3bfe8adc936044769f02dcf | 8f1b9de61c4256938c92b189b5bc7822fba2e49e | Unify global and component Weak type | This unifies the `Weak` handle to support both `Global` and `ComponentHandle` types.
@bennysj Note that for now this means the `upgrade_in` function has been reverted, as this would need to be added to the main `Weak` handle and that should be a separate PR from the weak/strong globals.
For the moment you can use `... | diff --git a/internal/compiler/generator/rust.rs b/internal/compiler/generator/rust.rs
index baa32acbc814..dd04753b30d7 100644
--- a/internal/compiler/generator/rust.rs
+++ b/internal/compiler/generator/rust.rs
@@ -264,7 +264,7 @@ pub fn generate(
#[allow(unused_imports)]
pub use #generated_mod::{#(#c... | 3 | 2 | 0 | [{"id": "G0", "claim": "The associated type `Static` added to the `Global` trait could have a more descriptive name, such as `StaticSelf`, closer to its usage pattern.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `StrongHandle` trait shoul... | null |
slint-ui__slint__10910 | slint-ui/slint | 10,910 | defect | 94a2d485346593b3f7b0632af9da413613429353 | 7c6c5a114f5647c17d565e0095d26741f914ba8b | Expose layout kind through the test protocol | ## Summary
- Encodes layout kind (`h-box`, `v-box`, `grid`, `flex-box`) as a third field in the compiler's debug info string, making layout information available at runtime
- Adds `element_layout_kind()` to `ItemRc` and `layout_kind()` to `ElementHandle` for querying layout kind
- Extends the systest protobuf prot... | diff --git a/internal/backends/testing/search_api.rs b/internal/backends/testing/search_api.rs
index 8b6bffd2669..ac96464a333 100644
--- a/internal/backends/testing/search_api.rs
+++ b/internal/backends/testing/search_api.rs
@@ -499,6 +499,12 @@ impl ElementHandle {
})
}
+ /// Returns the layout kind... | 4 | 3 | 1 | [{"id": "G0", "claim": "The proto enum variant names should match the elements they represent (VerticalBox is a VerticalLayout with style metrics), so HorizontalBox/VerticalBox should be renamed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be... | null |
slint-ui__slint__10911 | slint-ui/slint | 10,911 | defect | 1c15bcf1950999cc59a5d8d3b2538fd4c31be987 | 69c5abe42608abe73c1621fef12c04fa92636e70 | Support for multiple @rust-attr | This PR adds support for multiple \@rust-attr.
Example:
```slint
@rust-attr(derive(Debug))
@rust-attr(derive(Clone))
struct Data {}
```
is converted to
```rust
#[derive(Debug)]
#[derive(Clone)]
struct Data {}
```
| diff --git a/internal/compiler/generator/rust.rs b/internal/compiler/generator/rust.rs
index ad83e64edce..2cd081d2bf0 100644
--- a/internal/compiler/generator/rust.rs
+++ b/internal/compiler/generator/rust.rs
@@ -550,24 +550,26 @@ fn generate_struct(name: &StructName, fields: &BTreeMap<SmolStr, Type>) -> Token
l... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request would benefit from a test for multiple @rust-attr support, like the existing rust_attr test in api/rs/slint/tests/simple_macro.rs.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
slint-ui__slint__10924 | slint-ui/slint | 10,924 | defect | 04f678ae6531d4b26778b0ec2d568108115a5288 | 1bc64c05d91106ed434be6c645c5bdc40f0cb1cb | Add weak/strong global handles | <!--
- [ ] If the change modifies a visible behavior, it changes the documentation accordingly
- [ ] If possible, the change is auto-tested
- [ ] If the changes fixes or close an existing issue, the commit message reference the issue with `Fixes #xxx` or `Closes #xxx`
- [ ] If the change is noteworthy, the commit m... | diff --git a/api/rs/slint/docs.rs b/api/rs/slint/docs.rs
index be54a2681e58..79cca4c69285 100644
--- a/api/rs/slint/docs.rs
+++ b/api/rs/slint/docs.rs
@@ -18,6 +18,7 @@ pub mod generated_code {
use crate::ComponentHandle;
use crate::Global;
+ use crate::StrongHandle;
use crate::Weak;
use crate:... | 7 | 2 | 0 | [{"id": "G0", "claim": "The StrongHandle trait documentation should convey to users what they can do with the trait and how it relates to the rest of the API, rather than only noting that it is automatically implemented (the reviewer first questioned why the trait implementation is documented at all).", "category": "do... | null |
slint-ui__slint__10951 | slint-ui/slint | 10,951 | defect | 74b2a8c7dbf59c4db6921fe4f37f4e1215903e1f | 68d10fffacc3b205b4b416d8bf3dc274a6137cc3 | Minor clippy fixes: comment typos, &'static, Error::other, is_err, unwrap_or_default, etc. | This commit has the ones that are trivial to review. Next one will have those a bit more "interesting". | diff --git a/internal/backends/linuxkms/display/swdisplay/linuxfb.rs b/internal/backends/linuxkms/display/swdisplay/linuxfb.rs
index d760ec6c98fb..f31d8fd30b62 100644
--- a/internal/backends/linuxkms/display/swdisplay/linuxfb.rs
+++ b/internal/backends/linuxkms/display/swdisplay/linuxfb.rs
@@ -331,7 +331,6 @@ const FBI... | 2 | 2 | 0 | [{"id": "G0", "claim": "The re-indented continuation lines of the doc comment need a blank line before them and their previous indentation, otherwise they attach to the second item in the list.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The re... | null |
slint-ui__slint__10978 | slint-ui/slint | 10,978 | defect | f3540039b0c6cf51480fdbabc8fdc4eb6db02c57 | e3e4ab379e71a038e9d95093a3f6c9095add4f82 | @keys: Ensure single grapheme cluster and unicode normalization | - **Add Unicode normalization and grapheme cluster validation for keyboard shortcuts**
- **Add string-based keyboard testing API and Unicode normalization test**
As discussed in #102, this ensures consistent handling for different languages.
Especially the unicode normalization is crucial to ensure keyboard shortcuts ... | diff --git a/Cargo.lock b/Cargo.lock
index 2f7c5c6d87ef..84400a921b5c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5037,6 +5037,8 @@ dependencies = [
"strum",
"swash",
"typed-index-collections",
+ "unicode-normalization",
+ "unicode-segmentation",
"url",
]
@@ -5091,6 +5093,7 @@ dependencies = [
"tr",
"tt... | 1 | 1 | 1 | [{"id": "G0", "claim": "The normalization added under i-slint-core's `unicode` feature may not take effect when building a Rust Slint application, since the slint crate does not enable that feature (not even via its default features); the reviewer suggests it perhaps belongs in `std` instead.", "category": "correctness... | null |
slint-ui__slint__11022 | slint-ui/slint | 11,022 | defect | 7f1b6239770e2ced225119d2df8459bccb390250 | 160a3d658711badc1ad541da824c6af46d0ddefa | Qt/Winit backend: Unified `quit_event_loop()` followed by `run()` behavior | Before, this used a quit event which would call the on_close_requested
handler which could prevent the quit.
As an additional issue, the winit backend would exit immediately if `run()` was called a second time.
In both of these cases, a programmatic close needs to be handled differently than a normal close event... | diff --git a/internal/backends/qt/lib.rs b/internal/backends/qt/lib.rs
index 1b8ff8e8051c..ca9a2cfcdc45 100644
--- a/internal/backends/qt/lib.rs
+++ b/internal/backends/qt/lib.rs
@@ -213,11 +213,13 @@ impl i_slint_core::platform::Platform for Backend {
fn quit_event_loop(&self) -> Result<(), i_slint_core::... | 1 | 1 | 1 | [{"id": "G0", "claim": "QCoreApplication::exit(0) is documented to not be thread-safe, and since the proxy can be moved between threads and quit_event_loop can be called from any thread, calling it directly may violate that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
slint-ui__slint__11386 | slint-ui/slint | 11,386 | defect | 2849fd99770c431cc22f83afea81cba593482ece | 27b9437eb83f5b7c5f578326dbcfbe89fc1b9561 | slint-tr-extractor: Fix bad default for plural rules in generated pot… | … file
Commit 348433f45fbee599a5e1ddfd0236c3339e83d7b7 regressed by replacing the previous default with an invalid entry. Restore the previous default.
<!--
- [ ] If the change modifies a visible behavior, it changes the documentation accordingly
- [ ] If possible, the change is auto-tested
- [ ] If the change... | diff --git a/tools/tr-extractor/main.rs b/tools/tr-extractor/main.rs
index a19c2f219509..bb13708f1527 100644
--- a/tools/tr-extractor/main.rs
+++ b/tools/tr-extractor/main.rs
@@ -80,7 +80,7 @@ fn main() -> std::io::Result<()> {
file.metadata.insert("Content-Type".into(), "text/plain; charset=UTF-8".into());
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The generated default Plural-Forms header should read `nplurals=1; plural=0;` instead of `plurals=1; plural=0;`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for slint-tr-extractor, which currently ha... | null |
slint-ui__slint__11441 | slint-ui/slint | 11,441 | defect | 189f0e74f7b370a458e89d702a6c9e20d7140447 | 1220b2cea9c670bf60c4a8ef55325f77549978d5 | Fix partial renderer culling items under scale/rotate transforms | ## Summary
- `PartialRenderer::filter_item` used only `translation()` (a simple vector offset) to map item bounds to screen coordinates for dirty-region culling, ignoring scale and rotation transforms entirely
- Items under `transform-scale < 1` with large local coordinates were incorrectly computed as outside the dir... | diff --git a/Cargo.lock b/Cargo.lock
index fe69953934f7..d023b49d4429 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11029,6 +11029,7 @@ dependencies = [
"i-slint-core",
"i-slint-renderer-skia",
"image",
+ "raw-window-handle",
"slint",
"slint-interpreter",
"spin_on",
diff --git a/internal/core/partial_rendere... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new tests/screenshots/partial_rendering.rs duplicates infrastructure from api/rs/slint/tests/partial_renderer.rs, so the test cases should be folded into that existing file — tests/screenshots is for screenshot tests and this file creates none.", "category": "maintainability", "verdict": "su... | null |
slint-ui__slint__11495 | slint-ui/slint | 11,495 | defect | f073c47b3fa70b1e8a6f7149803d006be6f6ffd1 | 8c640ef0b12198edeb3b53ecd78bd98a9fb3fdfd | Fix zero sized layers not re-rendering when they become non-zero | As creating the underlying rendering surface with a zero size tends to fail, we ended up not tracking the dependencies for the children, so once they become non-zero, we wouldn't re-render the layer.
This is a two-part PR:
- Introduce a layer abstraction to share the logic between FemtoVG and Skia, and more in the ... | diff --git a/internal/core/items.rs b/internal/core/items.rs
index 6161eed59d8..fc4a5f7d145 100644
--- a/internal/core/items.rs
+++ b/internal/core/items.rs
@@ -1069,6 +1069,88 @@ impl Item for Layer {
}
}
+/// Renderer-backend hooks for [`Layer::render`], which owns the caching and
+/// bounds computation; imp... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new LayerRenderer trait should live in the item_renderer module instead of items.rs, which should keep only the actual items.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Layer::render should be decoupled from the items::Lay... | null |
slint-ui__slint__11516 | slint-ui/slint | 11,516 | defect | d5364974c658785f04bc99cdf426bd40f83d6387 | d189d5bee1fa23f35a7c32d93b83801693d89bd1 | Remove i_slint_core::tests module and slint_interpreter::testing module | Move all test helper functions from i_slint_core::tests into i_slint_backend_testing where they belong. The debug_log macro and its helpers move to a new i_slint_core::debug_log module.
The test functions (mock_elapsed_time, get_mocked_time, send_mouse_click, send_keyboard_key_text, send_keyboard_char, send_keyboard... | diff --git a/api/node/rust/interpreter/component_instance.rs b/api/node/rust/interpreter/component_instance.rs
index f5c761cbc32..c99ff554a24 100644
--- a/api/node/rust/interpreter/component_instance.rs
+++ b/api/node/rust/interpreter/component_instance.rs
@@ -351,18 +351,48 @@ impl JsComponentInstance {
#[napi]... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Node.js send_mouse_click function should be a no-op when the testing feature is disabled and, when enabled, call the mouse-click helper in the testing backend instead of duplicating the dispatch code inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ... | null |
slint-ui__slint__11596 | slint-ui/slint | 11,596 | defect | b3e1180878037ed7e4fe299fb92a4988ed7cfb85 | 482ae67c164ae98cd72c0a5138c6a8ca30db0552 | fix(textlayout): restore text horizontal alignment broken by parley 0.9 upgrade | ## Summary
Parley 0.9 removed the width parameter from `Layout::align()`; alignment now uses the `max_advance` set by `break_all_lines()` as the container width. The previous code filtered the width to `None` for `NoWrap` text (the default wrap mode), so parley had no container width and silently produced zero alignme... | diff --git a/api/rs/slint/tests/text_alignment.rs b/api/rs/slint/tests/text_alignment.rs
new file mode 100644
index 000000000000..a803704726b3
--- /dev/null
+++ b/api/rs/slint/tests/text_alignment.rs
@@ -0,0 +1,185 @@
+// Copyright © SixtyFPS GmbH <info@slint.dev>
+// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request contains unrelated commits (from branch #11584) and the reviewer asks the author to move them out of this PR.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
slint-ui__slint__8837 | slint-ui/slint | 8,837 | defect | ced9a605441c191fadc8e9eb315698ae2bbd3dc9 | 9b5c1cb9e45b85084e9837ce00867ecde7c02dd5 | live-reload of .slint file for rust compiled app | This will generate API that calls the interpreter behind the scene.
And it will set a file system watcher so reload automatically
Can be tested by running an app like so:
```
SLINT_LIVE_RELOAD=1 cargo run -p gallery --features=slint/live-reload
```
`SLINT_LIVE_RELOAD=1` is needed at build time so the rust c... | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index c8f0db3eefd3..f8a319ae483e 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -94,7 +94,7 @@ jobs:
with:
toolchain: ${{ matrix.rust_version }}
key: x-v3
- - nam... | 4 | 4 | 2 | [{"id": "G0", "claim": "The test driver should also be run with this feature enabled in CI, so that accidental regressions in the new code generator are caught.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The live-reload feature's doc comment should be ... | null |
slint-ui__slint__9666 | slint-ui/slint | 9,666 | defect | 8ce8a94a26804b70feee7a3be9c3e5849758d2af | b15783ff685cb77c1bfdb09467fa3874356b468b | core: Do not panic when closing a popup during rendering | When some condition changes and that results in an open PopupWindow getting removed from the tree of ItemTrees, then do not panic. | diff --git a/internal/backends/qt/qt_window.rs b/internal/backends/qt/qt_window.rs
index c7a90990adc2..f38fba77e578 100644
--- a/internal/backends/qt/qt_window.rs
+++ b/internal/backends/qt/qt_window.rs
@@ -1612,13 +1612,15 @@ impl QtWindow {
metrics: RenderingMetrics { layers_created: Some(0) },
... | 7 | 7 | 2 | [{"id": "G0", "claim": "The pull request has no test reproducing the panic, and a reproducible example in the form of an auto-test is necessary.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commit message mentions fixing an issue (#6426/#3464) tha... | null |
slok__sloth__261 | slok/sloth | 261 | defect | 11d18f271f5f05f49989d63c0b1d20aaa931c948 | 09394d1c66f85ff47384ef07a4a8b1b61a06e71d | Helm support for disabling optimized flag | Chart support for #259.
Also reduced the amount edits needed to test cases with a helm version bump. Hope that is appreciated.
Let me know if you'd prefer something like `extraArgs` instead of enumerating all arg options in chart.
Will need a new docker release and a bit of testing as well
| diff --git a/deploy/kubernetes/helm/sloth/Chart.yaml b/deploy/kubernetes/helm/sloth/Chart.yaml
index bae39b15..35121957 100644
--- a/deploy/kubernetes/helm/sloth/Chart.yaml
+++ b/deploy/kubernetes/helm/sloth/Chart.yaml
@@ -4,4 +4,4 @@ description: Base chart for Sloth.
type: application
home: https://github.com/slok/... | 2 | 2 | 0 | [{"id": "G0", "claim": "The version-normalizing regex is compiled with MustCompile on every call to NormalizeVersion; it should be compiled once outside the function.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper NormalizeVersion is priv... | null |
slok__sloth__670 | slok/sloth | 670 | defect | 9056bfbec2ab38b8a250d89f90b368d00bbb8fbe | 8a36878ea8c518462957814c38dd3c5ed0027b39 | feat: error budget exhausted plugin | This adds a plugin that creates a new alert for total error budget exhaustion. It can be useful to initiate a change freeze, SLO review, retrospective, or whatever an organization does when an error budget is totally exhausted.
Everything is customizable and it'll pull in existing labels in line with the other SLOs.... | diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index c277bc1d..93449942 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -5,5 +5,6 @@
/internal/plugin/slo/contrib/ @slok
# Specific contrib SLO owners.
-/internal/plugin/slo/contrib/info_labels_v1/ @cxdy @slok @wbollock
-/internal/p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The config can be simplified by removing the ForDuration field and its manual parsing, since prom model.Duration already handles JSON unmarshalling.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hand-rolled labelMatcher shoul... | null |
slok__sloth__671 | slok/sloth | 671 | defect | 81da3a38b5d9552689e99623e4eae06e80b163c3 | c41ab01cade9e45921abfff799e4e4a960e60e9f | Add rule intervals SLO plugin | Adds a plugin for setting custom rule intervals for the recording rules generated by Sloth, this feature was used by @cxdy and @wbollock on their fork. So we are adding it as a contrib plugin. | diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index c277bc1d..2dcf570c 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -7,3 +7,4 @@
# Specific contrib SLO owners.
/internal/plugin/slo/contrib/info_labels_v1/ @cxdy @slok @wbollock
/internal/plugin/slo/contrib/validate_victoria_metric... | 1 | 1 | 0 | [{"id": "G0", "claim": "The usage example in the README should set the plugin id to `sloth.dev/contrib/rule_intervals/v1` instead of the validate_victoria_metrics one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
slok__sloth__719 | slok/sloth | 719 | defect | 9546aa8bb1e73acabbacb95ea62c671b61be9106 | 499dfe019e3ca67f43d11103f870cf67540f7d09 | feat: add remove_labels_v1 SLO plugin | Here's a suggestion for another SLO plugin: `remove_labels_v1`.
From the README.md:
> This SLO plugin removes custom labels from all SLI and metadata metrics except the `sloth_slo_info` metric. It will preserve the SLO ID labels (`sloth_service`, `sloth_slo`, `sloth_id`), the `sloth_window` label on SLI metrics, ... | diff --git a/internal/plugin/slo/contrib/remove_labels_v1/README.md b/internal/plugin/slo/contrib/remove_labels_v1/README.md
new file mode 100644
index 00000000..b1afb52b
--- /dev/null
+++ b/internal/plugin/slo/contrib/remove_labels_v1/README.md
@@ -0,0 +1,80 @@
+# sloth.dev/contrib/remove_labels/v1
+
+This SLO plugin ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The set-like maps in ProcessSLO should use map[string]struct{} instead of map[string]bool, since an unused bool value adds cognitive load for readers, while struct{} signals the value is only used for indexing as a set.", "category": "maintainability", "verdict": "supported", "priority": "P2", "... | null |
sloria__TextBlob__149 | sloria/TextBlob | 149 | defect | 90cc87ab0f9e25f37379079840ec43aba59af440 | 691ad4ecda876395ef0200348adedf895a955cd8 | Added subroutine to run an NLTK Stemmer | So I saw an issue about TextBlob using a lemmatizer but not a stemmer.
Wrote a function for the later.
@sloria | diff --git a/textblob/blob.py b/textblob/blob.py
index a7a48c25..e338838d 100644
--- a/textblob/blob.py
+++ b/textblob/blob.py
@@ -148,6 +148,16 @@ def lemmatize(self, pos=None):
lemmatizer = nltk.stem.WordNetLemmatizer()
return lemmatizer.lemmatize(self.string, pos)
+ #added 'stemmer' on lines o... | 6 | 5 | 3 | [{"id": "G0", "claim": "The new stem method should be documented with a docstring using Sphinx syntax like the other methods.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment lines added above and inside the stem method are unnecessary a... | null |
sloria__TextBlob__167 | sloria/TextBlob | 167 | defect | d4ce84f2f9bc0bf29b1a3a639f2327d8ea54081c | 871145b36ece2aca45d233b7a29bd547bade006e | Fix #166 to use specified tokenizer when tagging. | Let me summarise my approach; welcome any feedback.
For reference - the [pos_tag](https://github.com/sloria/TextBlob/blob/dev/textblob/blob.py#L450) method on BaseBlob populates both the **pos_tag** and **tags** properties.
Currently, **pos_tag** provides the raw string to the **pos_tagger** defined on the objec... | diff --git a/tests/test_blob.py b/tests/test_blob.py
index d63e5080..bb864034 100644
--- a/tests/test_blob.py
+++ b/tests/test_blob.py
@@ -752,6 +752,20 @@ def test_tokenize_method(self):
# Pass in the TabTokenizer
assert_equal(blob.tokenize(tokenizer), tb.WordList(["This is", "text."]))
+ def te... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use `textblob.compat` instead of `six` for the compatibility imports in textblob/en/taggers.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sloria__TextBlob__235 | sloria/TextBlob | 235 | defect | 14f22102251ce1f02e8bcb3e74f86c037e3df822 | fc9042b6f51def336ff946035855cbca741ca885 | Fixed issue with modifying WordLists | Fixed an issue where WordLists effectively stored two different lists (one as the instance variable `self._collection`, and one as the WordList itself, since it inherits the list class). This caused a variety of unexpected behavior, such as the `pop()` method appearing not to modify the appearance of WordList, because ... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index cb14c9ee..18fadc50 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -27,4 +27,5 @@ Contributors (chronological)
- Tyler James Harden `@tylerjharden <https://github.com/tylerjharden>`_
- `@pavelmalai <https://github.com/pavelmalai>`_
- Jeff Kolb `@jeffakolb <https://github.co... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a regression test for the WordList mutation fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sloria__TextBlob__41 | sloria/TextBlob | 41 | defect | a44d16892f9f62ca2635657abce8cc2da48ceb18 | 17ebb14c8f894b01e7cbed10095fa78af81851d7 | Word.lemma -> Word.lemmatize() | New Word.lemmatize() method passes POS-tag to WordNetLemmatizer. Previously any word has been interpreted as a noun.
| diff --git a/AUTHORS.rst b/AUTHORS.rst
index 08964ad3..d9ac95e3 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -12,4 +12,4 @@ Contributors (chronological)
- Pete Keen `@peterkeen <https://github.com/peterkeen>`_
- Matthew Honnibal `@syllog1sm <https://github.com/syllog1sm>`_
-
+- Roman Yankovsky `@RomanYankovsky <ht... | 2 | 1 | 1 | [{"id": "G0", "claim": "Keep the `lemma` property for backwards compatibility, equivalent to calling `lemmatize()` with no arguments (like `json` and `to_json()`).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The equality check for `None` should use `i... | null |
sloria__TextBlob__555 | sloria/TextBlob | 555 | defect | a1c8944b72bba97018ca5a490575a083facb5cb3 | 8f670d0312bf5d727ab5689e7b2eeffbce0f8961 | Use custom tokenizer for words property | ## Summary
- make the words property honor the configured tokenizer instead of always using the default word tokenizer
- preserve existing behavior for the default WordTokenizer path
- add a regression test showing words follows a custom WordPunctTokenizer while still excluding punctuation
## Why
Issue #316 reports th... | diff --git a/src/textblob/blob.py b/src/textblob/blob.py
index feb79631..db76aa8c 100644
--- a/src/textblob/blob.py
+++ b/src/textblob/blob.py
@@ -43,7 +43,7 @@
from textblob.sentiments import PatternAnalyzer
from textblob.taggers import NLTKTagger
from textblob.tokenizers import WordTokenizer, sent_tokenize, word_t... | 1 | 1 | 0 | [{"id": "G0", "claim": "Question whether the extra fallback logic that strips punctuation from custom-tokenizer output is necessary or desirable, since such behavior should go in the custom tokenizer class itself.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sloria__doitlive__246 | sloria/doitlive | 246 | defect | 357d086d93c567a3e107efad496e33d1ee90470a | 970c90ef0cf9cbc9b3b2c605d2a5c27018300c37 | Support modern IPython | Solves #91!
I had to jump through hoops to keep everything compatible with Python 2. It might be a good idea to remove support for it all together and bump the major version of `doitlive`.
| diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d0f1b9d..eb74bdd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,6 +5,11 @@ repos:
- id: black
exclude: docopt.py
language_version: python3
+ additional_dependencies:
+ # Python 2 shenanigans. Black v20-21... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Azure CI matrix needlessly tests every supported Python/IPython combination; the reviewer suggests trimming it to a representative subset (py27-ipython5, py36-ipython5/6, py310-ipython7/8).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
slovensko-digital__autogram__215 | slovensko-digital/autogram | 215 | defect | 415d43990709bc8c1b1e0a78057c0f06297ab7c3 | 6324dcd6bb270d52570e60fc5349774149cc8e35 | add release checklist | - pridavame RELEASE.md kde si vie kazdy precitat co chceme skontrolovat pred releaseom (mozno je to redundantne?)
- pridavame issue template pre Release issue
- automaticky sa vytvara pri workflowe package novy issue z Release template-u
- pridavame smoke testy ktorymi vyskusame cez API podpisat rozne subory s pouzi... | diff --git a/.github/ISSUE_TEMPLATE/release-checklist.md b/.github/ISSUE_TEMPLATE/release-checklist.md
new file mode 100644
index 000000000..fee5421d7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/release-checklist.md
@@ -0,0 +1,40 @@
+---
+name: Release checklist
+about: Použi tento checklist na testovanie artefaktov pre... | 6 | 4 | 2 | [{"id": "G0", "claim": "The host, origin and language parameters in the checklist's server-mode example URL `autogram --url=autogram://listen?protocol=http&host=localhost&port=37201&origin=*&language=sk` are not used; only protocol and port are used, so the documented command is wrong.", "category": "documentation", "v... | null |
slovensko-digital__autogram__228 | slovensko-digital/autogram | 228 | defect | 93d410cc257dc08bb628e80d4e7a34cdfb84dd44 | 91b2600ba77a8807c649b58919674de8ee014b74 | AG-132 use semantic version in updater | compare versions semantically when checking if there is new update available | diff --git a/src/main/java/digital/slovensko/autogram/core/Updater.java b/src/main/java/digital/slovensko/autogram/core/Updater.java
index d7de0ba6a..05d616bcd 100644
--- a/src/main/java/digital/slovensko/autogram/core/Updater.java
+++ b/src/main/java/digital/slovensko/autogram/core/Updater.java
@@ -8,7 +8,9 @@
import... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inline version parsing and comparison in Updater.newVersionAvailable should be extracted into a Version class and covered with unit tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
slovensko-digital__autogram__237 | slovensko-digital/autogram | 237 | defect | 3668ef3967fa27b86cd8d8a456dacb6460b03089 | c99c902327d2526271102f7316d6c007d3f61cd1 | show error when opening password protected pdf | related to https://github.com/slovensko-digital/autogram/issues/230 | diff --git a/src/main/java/digital/slovensko/autogram/core/Autogram.java b/src/main/java/digital/slovensko/autogram/core/Autogram.java
index 2b01f407d..efb6f21a9 100644
--- a/src/main/java/digital/slovensko/autogram/core/Autogram.java
+++ b/src/main/java/digital/slovensko/autogram/core/Autogram.java
@@ -10,6 +10,7 @@
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer would prefer the PDF password-protection check to be done one level higher, outside the PDFVisualization constructor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "How long the password-protection check takes should ... | null |
slovensko-digital__autogram__264 | slovensko-digital/autogram | 264 | defect | 3e90450e270cf0cf70badfa493de8d97bfa8b64e | c35d22dbb06efbbf3560352282e4ee405e4260cb | Fix Gemalto mandate cc | Takto vie fungovať mandátny certifikát, ktorý je v slote 8. Treba na to osobitnú classu, lebo treba špecifikovať iný slot na použitie. Je to zatiaľ taký rýchly fix.
Nerieši hromadný podpis v #263 . Má to tiež bug, že po každom podpise prestane podpisovanie fungovať a treba "zmeniť podpisový certifikát". | diff --git a/src/main/java/digital/slovensko/autogram/core/AppStarter.java b/src/main/java/digital/slovensko/autogram/core/AppStarter.java
index a27cf2ea3..cf9dfef32 100644
--- a/src/main/java/digital/slovensko/autogram/core/AppStarter.java
+++ b/src/main/java/digital/slovensko/autogram/core/AppStarter.java
@@ -20,7 +2... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of the quick fix, add the token slot as a parameter — but only for CLI mode, and support it for all tokens.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The gemalto_mandate shortname/driver entry is no longer needed an... | null |
slovensko-digital__autogram__297 | slovensko-digital/autogram | 297 | defect | 427dd35568e61dfa04ea73f0ebcb6850d0b719ac | d28c2adfa4019747648a90a89c8e13bb32a3ddb3 | AG-6 Add invalid certificate warning to certificate picker | Ešte to nevaliduje správne, ale chcem vyriešiť UX, tak vytváram PR.
Ktorý z potenciálnych návrhov, prípadne ako inak?

| diff --git a/src/main/java/digital/slovensko/autogram/core/SigningJob.java b/src/main/java/digital/slovensko/autogram/core/SigningJob.java
index a5b9f1975..ed3c70441 100644
--- a/src/main/java/digital/slovensko/autogram/core/SigningJob.java
+++ b/src/main/java/digital/slovensko/autogram/core/SigningJob.java
@@ -80,6 +8... | 1 | 1 | 0 | [{"id": "G0", "claim": "The NoValidKeysDetectedException message should say \"podpisové certifikáty\" instead of \"klúče\" and \"obslužného softvéru eID klient\" instead of \"eID klienta\", as worded in the attached suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int... | null |
slovensko-digital__autogram__47 | slovensko-digital/autogram | 47 | defect | c75e42c45b81024f483a4e86b05d788432ed8b4c | 28f993deccb437c2ba99cb6870490895694146cf | Feature: Signing other formats | ready to merge
ALDO
- other picture formats group (gif, jpg) :white_check_mark: (won't do)
- pom typo octosign :heavy_check_mark:
- image scale in visualization + general file visualization (discuss) :heavy_check_mark:
- edge cases - :white_check_mark: (won't do - will create issue if found any) | diff --git a/docs/static/api/server.yml b/docs/static/api/server.yml
index 1e7ca0991..1ad85cb67 100644
--- a/docs/static/api/server.yml
+++ b/docs/static/api/server.yml
@@ -76,33 +76,39 @@ paths:
schema:
$ref: '#/components/schemas/SignRequestBody'
examples:
- Plain... | 4 | 4 | 2 | [{"id": "G0", "claim": "BinaryDocument gates signable types with a forbidden-mimetype blocklist, but the check should be an allowlist instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new image-visualisation code carries only a bare '// TODO' w... | null |
slovensko-digital__autogram__517 | slovensko-digital/autogram | 517 | defect | 748d17c4c8d1b14516dba76bbb8f7beaadbc1bf6 | 1ffa31fceaae0ceef3d6e81e3fe9299687c6a6da | Add session timeout | Toto funguje pomerne OK, prijímam pripomienky. Testoval som s eID klientom prihlásením na sk.sk. V momente ako vyprší timeout sa pýta BOK na prihlásenie a teda token sa zjavne uvoľní tak ako chceme. Pri každom použití (čiže sign) sa timeout obnoví na 5 minút. | diff --git a/src/main/java/digital/slovensko/autogram/core/Autogram.java b/src/main/java/digital/slovensko/autogram/core/Autogram.java
index 37ca78fa2..50a285e2c 100644
--- a/src/main/java/digital/slovensko/autogram/core/Autogram.java
+++ b/src/main/java/digital/slovensko/autogram/core/Autogram.java
@@ -14,6 +14,8 @@
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The session timeout should be made configurable (put into settings, defaulting to 5 minutes) instead of hardcoded, or tied to how long the card session actually lasts.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
slovensko-digital__autogram__519 | slovensko-digital/autogram | 519 | defect | b202e3b72ef515ef305af32f793452c647b2da30 | 99086b2e488c5fa014c04bc79efa88fb240685a5 | tokenSessionTimeout - fix CLI and fix application shutdown | 1. Aplikácia sa dlho zatvárala, pretože ten timer tam zostal bežať.
2. V CLI bol timeout 0, takže to moc dobre nefungovalo. Zistil som inak, že v CLI nefunguje hromadné podpisovanie na 1x PIN, ale to nesúvisí s týmto, takže spíšem osobitnú issue. | diff --git a/src/main/java/digital/slovensko/autogram/core/Autogram.java b/src/main/java/digital/slovensko/autogram/core/Autogram.java
index bd5e91a3b..c37fdd347 100644
--- a/src/main/java/digital/slovensko/autogram/core/Autogram.java
+++ b/src/main/java/digital/slovensko/autogram/core/Autogram.java
@@ -273,7 +273,7 @@... | 3 | 2 | 1 | [{"id": "G0", "claim": "The comment on the serverFinal declaration still says the lambda needs a final variable, though the declaration no longer uses final.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "GUIApp reaching in to call autogram.stopTo... | null |
slovensko-digital__autogram__607 | slovensko-digital/autogram | 607 | defect | 5359ed2afb0db5105ffb4a9152e24511fc822d2d | fb5dee58990539b8863af78d03783e97c056c78e | add get certificates endpoint | ešte potrebujem doriešiť response statuses a messages | diff --git a/src/main/java/digital/slovensko/autogram/core/Autogram.java b/src/main/java/digital/slovensko/autogram/core/Autogram.java
index eb4479ae1..db3485e37 100644
--- a/src/main/java/digital/slovensko/autogram/core/Autogram.java
+++ b/src/main/java/digital/slovensko/autogram/core/Autogram.java
@@ -4,6 +4,7 @@
im... | 2 | 1 | 0 | [{"id": "G0", "claim": "The injected HostServices field in ConsentCertificateReadingDialogController is never used.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Runnable parameter named onError is misleading, since not picking a token is not... | null |
smackers__smack__188 | smackers/smack | 188 | defect | 89ee4e29904652c871824a07b52a32bc207e996c | 254d38f5e6f6e8ba3c2c7475c4b64ff6de6ab648 | Floating Point Type | Added verification of the floating point type using the "--bit-precise" option. | diff --git a/bin/build.sh b/bin/build.sh
index 8748b27c7..869f864a1 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -333,7 +333,7 @@ if [ ${BUILD_BOOGIE} -eq 1 ]
then
puts "Building Boogie"
- git clone https://github.com/boogie-org/boogie.git ${BOOGIE_DIR}
+ git clone https://github.com/Checkmate50/boogie ${BOO... | 7 | 7 | 1 | [{"id": "G0", "claim": "Use two spaces instead of tabs for indentation in the new code in include/smack/BoogieAst.h and lib/smack/SmackRep.cpp.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the Naming constant INTEGER_FLOAT_TYPE into UNINTERPRETED... | null |
smackers__smack__227 | smackers/smack | 227 | defect | 0a8628843591d7d380350f01bdeea0746fd31089 | ed45fb279696cf09762ead129dd5a6878dae5d27 | Emit timing information into metadata | This is a new pass which records data useful for future passes that can use timing analysis data (e.g. ctverif).
1. Annotate the metadata of each LLVM instruction with the timing cost in the LLVM architectural model
2. Annotate the metadata of each LLVM instruction with information about the name and type of the in... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index a8c47394f..e2541f441 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,6 +151,7 @@ add_library(dsa STATIC
)
add_library(smackTranslator STATIC
+ include/smack/AddTiming.h
include/smack/BoogieAst.h
include/smack/BplFilePrinter.h
include/smack/BplPri... | 7 | 6 | 4 | [{"id": "G0", "claim": "AddTiming.h declares nameInstruction but the function is never defined nor used.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The smack.LLVMInstructionName metadata is produced by a custom smack::Naming helper rather th... | null |
smackers__smack__233 | smackers/smack | 233 | defect | 87843b1667310639a2602326d33a1ddfb84aa2bc | 5b598a99dc8a5825d1580b81962752fab1e85947 | Added assumption to alloc that size is not negative | For some reason when size was negative we used to allocate an
object of size 1. This seems like a hack to me and I am not sure
why it was introduced in the first place. I cleaned this up now
by requiring that size is not negative, and blocking executions
with negative size. | diff --git a/share/smack/lib/smack.c b/share/smack/lib/smack.c
index 5f8954337..946fef4fb 100644
--- a/share/smack/lib/smack.c
+++ b/share/smack/lib/smack.c
@@ -2053,18 +2053,17 @@ void __SMACK_decls() {
D("procedure {:inline 1} $$alloc(n: ref) returns (p: ref)\n"
"modifies $Alloc, $CurrAddr;\n"
"{\n"
- ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Assuming n >= 0 in $$alloc may cause programs that call malloc(-1) to verify trivially when unbounded integers are used, unless averted by type conversions.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A regression test sho... | null |
smackers__smack__234 | smackers/smack | 234 | defect | 87843b1667310639a2602326d33a1ddfb84aa2bc | ce390adf620489cfa0307735a9ef9325a9aa01b9 | Generalize testing | Adding @checkbpl and @checkout fields to regression tests to check the generated Boogie file and verifier output against arbitrary shell-command predicates. | diff --git a/test/basic/checking-fail-bpl.c b/test/basic/checking-fail-bpl.c
new file mode 100644
index 000000000..70f742fd1
--- /dev/null
+++ b/test/basic/checking-fail-bpl.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "smack.h"
+
+// @expect error
+// @checkbpl grep -v "call bar"
+// @checkout... | 3 | 1 | 0 | [{"id": "G0", "claim": "Rename the newly added failing-test regressions to stick with the existing convention that failing regressions have file names ending in `_fail`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `checkbpl: []` (empty list) e... | null |
smackers__smack__251 | smackers/smack | 251 | defect | 7413bfe0636c73099b7cb39cacafa96ffa2b61c6 | 68c1ca96f0f88c258719c466a30d38c08e87bb8f | Split load/store instructions of LLVM struct types | This pull request intends to model load/store instructions of LLVM struct types. Previously, SMACK translates a load instruction to a variable with an aggregate type into a load function returning `ref` type and does not allow store instructions with aggregate store values. With this pull request, a load instruction o... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f96d2f26..34b0a8423 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,6 +169,7 @@ add_library(smackTranslator STATIC
include/smack/SmackRep.h
include/smack/MemorySafetyChecker.h
include/smack/SignedIntegerOverflowChecker.h
+ include/smack/SplitStructL... | 13 | 10 | 2 | [{"id": "G0", "claim": "The PR needs regression tests for the --split-structs flag, including a test that only verifies with the flag enabled, carrying the // @flag --split-structs directive.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pass shoul... | null |
smackers__smack__253 | smackers/smack | 253 | defect | 7413bfe0636c73099b7cb39cacafa96ffa2b61c6 | f2dacc2842eaa91f28636c0a61f87f1606e82d2b | Add support for constant structs being function returns | Consider the following example,
```LLVM
define { i32, i64 } @foo() {
ret { i32, i64 } { i32 1, i64 2 }
}
```
It triggers an [assertion failure](https://github.com/smackers/smack/blob/master/lib/AssistDS/StructReturnToPointer.cpp#L114). This pull request intends to extend this pass to handle functions returnin... | diff --git a/lib/AssistDS/StructReturnToPointer.cpp b/lib/AssistDS/StructReturnToPointer.cpp
index 230ea1c51..1e736358a 100644
--- a/lib/AssistDS/StructReturnToPointer.cpp
+++ b/lib/AssistDS/StructReturnToPointer.cpp
@@ -110,13 +110,28 @@ bool StructRet::runOnModule(Module& M) {
ReturnInst * RI = dyn_cast<Retu... | 5 | 4 | 0 | [{"id": "G0", "claim": "Storing the constant via an alloca, a store, a load and then a memcpy is wasteful; the constant should be stored into the target address fargs.at(0) with a single store instruction instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
smackers__smack__277 | smackers/smack | 277 | defect | ec82291c43b62ffe31aed4c810c55c1d377aea84 | f97ebf25b6080f0ac9befa3f5d87f15b98b1b778 | Rewrite select instruction encoding | The old encoding translates a select instruction to `havoc(x); assume(c==1==>x==v1 && c!=1==>x==v2);` where `c` is the condition and `v1`, `v2` is true value and false value, respectively.
The new encoding translates it to `x = if c ==1 then v1 else v2`.
This pull request addresses issue #174. | diff --git a/include/smack/BoogieAst.h b/include/smack/BoogieAst.h
index cb8205756..e3df026f8 100644
--- a/include/smack/BoogieAst.h
+++ b/include/smack/BoogieAst.h
@@ -38,6 +38,7 @@ class Expr {
static const Expr* not_(const Expr* e);
static const Expr* sel(const Expr* b, const Expr* i);
static const Expr* se... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rewritten select instruction encoding has no regression yet; the author should write a simple C program that generates select instructions to cover it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The old select encoding le... | null |
smackers__smack__298 | smackers/smack | 298 | defect | b4b3015d2ee04713ce1e65f48f6de612b9e72a0a | 97802751ccae16b2bf02668f0536757d9db21159 | Attempt to remove the struct-ret pass | This PR is an effort to consolidate the struct-ret pass and the split-aggregate-value pass. I just realized that if we always enable splitting aggregate value load/store, then we don't need the struct-ret pass any more. Furthermore, the struct-ret pass has been creating a number of trouble when SMACK is applied to C++/... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab90a872d..18bed29d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -175,7 +175,7 @@ add_library(smackTranslator STATIC
include/smack/VectorOperations.h
include/smack/MemorySafetyChecker.h
include/smack/IntegerOverflowChecker.h
- include/smack/SplitAggre... | 2 | 2 | 0 | [{"id": "G0", "claim": "Replace the explicit type `std::vector<std::pair<Value*, unsigned> >` in `lidxs` declarations with the `IndexT` synonym, since the spelled-out type is verbose and, without knowing the synonym exists, hides that this is a copy construction.", "category": "maintainability", "verdict": "supported",... | null |
smackers__smack__306 | smackers/smack | 306 | defect | 9a985c52a1192d4f9c689a962ab92569c0a1c4d1 | ca89a3f1371537130c0cf438b6079da31554f92b | Fixes for floating-point support | This pull request intends to fix issues in SMACK's floating-point support. It is not yet completed but I would like to create the pull request first because there are multiple design decisions worth of discussion.
The issues addressed are as follows,
- [x] Change the type of uninterpreted floats
- [x] Support half... | diff --git a/include/smack/Naming.h b/include/smack/Naming.h
index 70b9d01ad..969c8f28e 100644
--- a/include/smack/Naming.h
+++ b/include/smack/Naming.h
@@ -27,6 +27,7 @@ class Naming {
public:
static const std::string BOOL_TYPE;
static const std::string UNINTERPRETED_FLOAT_TYPE;
+ static const std::string HALF... | 5 | 3 | 1 | [{"id": "G0", "claim": "There is an extra `;` at the end of the new fp/int branch in SmackRep::cmp and it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please clarify (and ideally remove the need for) why floating-point compa... | null |
smackers__smack__327 | smackers/smack | 327 | defect | ebd1ec4bb4a962511cce788019dcf0c295891591 | f26f75ea255cebfd9e8a3ed256e29723a8bc2f3c | Rounding mode support | This adds support for Boogie's 'rmode' type and the fenv.h functions
fegetround() and fesetround(). | diff --git a/bin/versions b/bin/versions
index 0aeff4a97..0b2410ce0 100644
--- a/bin/versions
+++ b/bin/versions
@@ -1,7 +1,7 @@
MONO_VERSION=5.0.0.100
Z3_VERSION=4.6.0
-BOOGIE_COMMIT=8c262c1375
-CORRAL_COMMIT=053d05dc87
+BOOGIE_COMMIT=fc97aac639
+CORRAL_COMMIT=e67cd0a850
SYMBOOGLIX_COMMIT=7210e5d09b
LOCKPWN_COMMIT... | 9 | 9 | 6 | [{"id": "G0", "claim": "The initialization code should use the RMODE_VAR constant instead of the hard-coded \"$rmode\" variable name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fenv.c definitions should be formatted as `int fegetround(vo... | null |
smackers__smack__328 | smackers/smack | 328 | defect | ebd1ec4bb4a962511cce788019dcf0c295891591 | c72ebffbf94c7edddbc7e0b500779d6d67fb00b3 | Fixes to math.h functions | This fixes most of the functions in math.h and adds regressions for them.
Current known issues:
-The lround() and lrint() regressions are failing
-The fmod() regression results in Z3 memory blowup
-The regressions for the "float" versions of functions take much longer
than the "double" versions and/or result in Z3... | diff --git a/share/smack/include/math/math.h b/share/smack/include/math/math.h
index 88b543c4a..cf288f40f 100644
--- a/share/smack/include/math/math.h
+++ b/share/smack/include/math/math.h
@@ -8,11 +8,11 @@
float fabsf(float x);
float fdimf(float x, float y);
float roundf(float x);
+long lroundf(float x);
//The fol... | 9 | 8 | 0 | [{"id": "G0", "claim": "Questions where the RNE_BINARY_OP machinery will be used once rounding-mode support is added, implying it may not be needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment saying three functions are 'incomplete pending... | null |
smackers__smack__341 | smackers/smack | 341 | defect | 4ab7045ceae71535fcc74fe7e56fdc6923988805 | b43126aca50950334295067c631aa12f039bffb7 | Fixed fp2si and fp2ui function arguments | This changes fp2si and fp2ui to always use RTZ as the rounding mode so that
casting from floating-point types to integer types is modeled correctly. | diff --git a/lib/smack/SmackRep.cpp b/lib/smack/SmackRep.cpp
index f15c257c2..4e7c45274 100644
--- a/lib/smack/SmackRep.cpp
+++ b/lib/smack/SmackRep.cpp
@@ -821,9 +821,10 @@ const Expr* SmackRep::cast(const llvm::ConstantExpr* CE) {
const Expr* SmackRep::cast(unsigned opcode, const llvm::Value* v, const llvm::Type* ... | 5 | 5 | 0 | [{"id": "G0", "claim": "Split the long `if (opcode == ...)` condition line in SmackRep::cast into two lines.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the empty lines after `int main() {` and before the closing brace in test/float/double_to_in... | null |
smackers__smack__346 | smackers/smack | 346 | defect | 3c9ecd8481b790b7b661bd9c470e904ac63eba7a | b06a15381cc19d5aeaddc4d167ef9c51553053ee | Fixed implementations of copysign and __signbit | This fixes these two functions so that they are able to examine/set the
sign bit of NaN. | diff --git a/share/smack/include/math/math.h b/share/smack/include/math/math.h
index d5614f3fa..b3409a48b 100644
--- a/share/smack/include/math/math.h
+++ b/share/smack/include/math/math.h
@@ -17,6 +17,27 @@
#define fpclassify(x) (sizeof(x) == sizeof(double) ? __fpclassify(x) : __fpclassifyf(x))
#define isfinite(x) (... | 4 | 4 | 3 | [{"id": "G0", "claim": "Some regressions are failing and this should be fixed before the pull request is merged.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The sigAndExp bit-field (and the companion bit-fields) in the float/double unions should perh... | null |
smackers__smack__347 | smackers/smack | 347 | defect | 56ccd25885514e156e0a80389c50db5fc9519dc9 | 9c598730dd771288cc3c89aa47dc7790572c13ab | Support for long double math.h functions | This pull request adds support for the long double versions of the math.h functions. It also adds regressions for these functions. | diff --git a/lib/smack/SmackRep.cpp b/lib/smack/SmackRep.cpp
index 212c96429..d94496732 100644
--- a/lib/smack/SmackRep.cpp
+++ b/lib/smack/SmackRep.cpp
@@ -54,7 +54,7 @@ namespace smack {
const unsigned MEMORY_INTRINSIC_THRESHOLD = 0;
-const std::vector<unsigned> INTEGER_SIZES = {1, 8, 16, 24, 32, 40, 48, 56, 64,... | 2 | 1 | 1 | [{"id": "G0", "claim": "A regression test in the pthreads folder is failing, possibly because something got messed up with the integer bit-width declarations.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "unclear"}, {"id": "G2", "claim": "The integer-to-long-double conversion declarat... | null |
smackers__smack__383 | smackers/smack | 383 | defect | ac20a9049cee646af799ffb7739923a97630cf4c | 0b3c135e8f2113bbe08f7845c8a1032a4e74cffb | Add checking for left-shift overflows in C programs | Changes:
* `--integer-overflow` enables the clang option `-fsanitize=shift`.
* `__ubsan_handle_shift_out_of_bounds` is transformed to assert false with the `overflow` annotation.
* Tests for shifting with a negative negative LHS, left shifting non-negative signed-values, and unsigned values are included.
UBSan do... | diff --git a/include/smack/Naming.h b/include/smack/Naming.h
index 17c1d4fbc..24628d6a5 100644
--- a/include/smack/Naming.h
+++ b/include/smack/Naming.h
@@ -70,6 +70,7 @@ class Naming {
static const std::string BRANCH_CONDITION_ANNOTATION;
static const std::string LOOP_INVARIANT_ANNOTATION;
+ static const std:... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new UBSan shift-out-of-bounds handling would be better implemented inside the IntegerOverflowChecker pass than as a branch in SmackInstGenerator.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new expected-error test file ... | null |
smackers__smack__414 | smackers/smack | 414 | defect | c492d990f07c0f1a75165676f08311d2225d7102 | a08a9435f50ae58a3056016d013afa450677f361 | Got rid of quantified axioms related to floating-points | Now turning on precise reasoning about floats does not generate
Boogie files with quantifiers.
First, we realized that a bunch of axioms was not needed in the
first place, and so I just removed those.
Second, whenever a cast such as $bitcast.bvfloat.bv32(x) gets
introduced, which happens due to bitcast instruction... | diff --git a/include/smack/SmackRep.h b/include/smack/SmackRep.h
index 24c1bb424..7e3747590 100644
--- a/include/smack/SmackRep.h
+++ b/include/smack/SmackRep.h
@@ -156,6 +156,8 @@ class SmackRep {
std::string getString(const llvm::Value* v);
bool isExternal(const llvm::Value* v);
void addBplGlobal(std::string... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use `std::string` instead of the unqualified `string` in the new inverseFPCastAssume code, matching the rest of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
smackers__smack__435 | smackers/smack | 435 | defect | 1212a146d74d8a2bd30d3d20694459d13a3b867e | 9bd98f638194dd2969a4901ff28d3718f423fd9b | add type annotation to __SMACK_code | This PR implements the proposal in issue #413.
TODO:
- [x] update doc
- [x] add regressions
- [x] change math.c (optional) | diff --git a/docs/boogie-code.md b/docs/boogie-code.md
index 68be92614..39dcd71bb 100644
--- a/docs/boogie-code.md
+++ b/docs/boogie-code.md
@@ -38,6 +38,28 @@ void assume(bool v) {
}
````
SMACK interprets the `@` symbol by inserting the value of the C variable `v`.
+Since the arguments of variadic functions may be ... | 13 | 12 | 2 | [{"id": "G0", "claim": "The code should check that the source type of the CastInst operand matches the \"format\" type, and warn or error when an uncaught casted argument flows into __SMACK_code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ex... | null |
smackers__smack__443 | smackers/smack | 443 | defect | 230bee9f8035652289104b83d60b5d49dc52a729 | e048b570cb664664a23bd76bd777036274296cfa | fix floating-point conversions | We don't need functions like `dtf` so I removed them. And floating-point
conversions from/to half-precision numbers are also implemented. | diff --git a/share/smack/lib/smack.c b/share/smack/lib/smack.c
index 31d738b1f..a5a881924 100644
--- a/share/smack/lib/smack.c
+++ b/share/smack/lib/smack.c
@@ -613,18 +613,18 @@ void __SMACK_decls(void) {
DECLARE_EACH_FLOAT_TYPE(INLINE_BINARY_COMP, $ffalse, {false})
DECLARE_EACH_FLOAT_TYPE(INLINE_BINARY_COMP, $f... | 3 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks why the dtf conversion declaration is no longer needed, questioning the removal of the dtf/ftd wrapper functions.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It appears the pull request causes failing regression... | null |
smackers__smack__447 | smackers/smack | 447 | defect | 57779fb1befa574fe081ed20860f1caea59ddab1 | 10306a950d5d941442a5fda76874d3456b6501f2 | Add support for the LLVM half-conversion intrinsics | This adds support for the LLVM conversion intrinsics for converting: `f64`->`f16`, `f32`->`f16`, `f16`->`f64` and `f16`->`f32`.
Since the normal mode of LLVM is to use half precision as an IEEE binary16 storage format, this should be all we need for now. (BFloat16 hardware is a ways off apparently.)
Addresses #436. | diff --git a/lib/smack/SmackInstGenerator.cpp b/lib/smack/SmackInstGenerator.cpp
index 097ba7eb4..dfcf1304c 100644
--- a/lib/smack/SmackInstGenerator.cpp
+++ b/lib/smack/SmackInstGenerator.cpp
@@ -623,6 +623,22 @@ void SmackInstGenerator::visitCallInst(llvm::CallInst& ci) {
Value* val = ci.getArgOperand(0);
e... | 7 | 6 | 2 | [{"id": "G0", "claim": "The four half-conversion branches in visitCallInst have the same body and should be merged into one condition like `if (a || b || c ...)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The half-conversion models should u... | null |
smackers__smack__451 | smackers/smack | 451 | defect | d59f689c03afa457b69deefecd0906949be8160b | bac7faa2811c7fa10de7f9664e426283883381f7 | Refactor/improve LLVM intrinsic handling | - [x] Refactor existing intrinsic handling
- [x] Add FP intrinsic handling
- [x] Add BV intrinsic handling
- [ ] Add Fixed Point intrinsic handling
- [x] Add regressions | diff --git a/lib/smack/SmackInstGenerator.cpp b/lib/smack/SmackInstGenerator.cpp
index 85b0003bb..0d828aa9d 100644
--- a/lib/smack/SmackInstGenerator.cpp
+++ b/lib/smack/SmackInstGenerator.cpp
@@ -169,10 +169,20 @@ void SmackInstGenerator::processIntrinsicCall(llvm::IntrinsicInst* ii) {
return Stmt::call(funcName,... | 8 | 6 | 0 | [{"id": "G0", "claim": "The Rust-specific handling should be extracted into helpers like isSpecialFunction and processSpecialFunction, mirroring the intrinsic refactor.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Handling of debug intrinsics ... | null |
smackers__smack__468 | smackers/smack | 468 | defect | 5c1c469a613d472c87dfbbf92b1ffd407c24e92c | 7898e10d0c85ccc91bf3bd67b10f2632f128818d | Minor fix of Prelude.cpp | This commit fixes the declarations of load/store functions as follows,
1. type-safe load/store functions should always be generated.
2. type-unsafe load/store functions are generated according to the pointer size. | diff --git a/lib/smack/Prelude.cpp b/lib/smack/Prelude.cpp
index 5319d3f22..ef782e51f 100644
--- a/lib/smack/Prelude.cpp
+++ b/lib/smack/Prelude.cpp
@@ -281,19 +281,6 @@ FuncDecl* extractValue(unsigned width) {
return extractValue(resType);
}
-std::string getBytewisePointerStorageStr() {
- // TODO: add switch fo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should include a small regression test (an example) that triggers the bug it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smackers__smack__482 | smackers/smack | 482 | defect | 000c3cbd539ec9931a6abcace4fcfe2018f36f82 | e5ba7b254c6446b9680bb24db4e7ccc838cca031 | Remove duplicate conditional AST node | This removes the `CondExpr` class in favor of the more descriptively named `IfThenElseExpr` class. The printing of `IfThenElseExpr` now encloses the expression in parentheses to prevent precedence issues. | diff --git a/include/smack/BoogieAst.h b/include/smack/BoogieAst.h
index aa3c6b0aa..1e0ac7fe6 100644
--- a/include/smack/BoogieAst.h
+++ b/include/smack/BoogieAst.h
@@ -89,17 +89,6 @@ class BinExpr : public Expr {
void print(std::ostream &os) const;
};
-class CondExpr : public Expr {
- const Expr *cond;
- const... | 4 | 4 | 0 | [{"id": "G0", "claim": "A decision is needed on whether to remove the duplicate `cond`/`if_then_else` generator methods or leave them as is, now that both produce equivalent IfThenElseExpr nodes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the ... | null |
smackers__smack__499 | smackers/smack | 499 | defect | 374445cb725302136a3f5cf9afc0cee271123bd5 | 378e735f1f662fef430d2cc6945f215c6e0c9045 | Model C integer remainder operations | Fixes #496 | diff --git a/lib/smack/Prelude.cpp b/lib/smack/Prelude.cpp
index c2f2d2c99..8d19b380a 100644
--- a/lib/smack/Prelude.cpp
+++ b/lib/smack/Prelude.cpp
@@ -358,6 +358,44 @@ struct IntOpGen::IntArithOp : public IntOp {
auto pred = MIN ? Expr::lt(a1, a2) : Expr::lt(a2, a1);
return Expr::ifThenElse(pred, a1, a2);
... | 7 | 6 | 2 | [{"id": "G0", "claim": "sremExpr should build the zero operand as a proper constant expression instead of creating an integer variable via makeIntVarExpr.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The operands a1 and a2 of sremExpr should be re... | null |
smackers__smack__508 | smackers/smack | 508 | defect | ded2c20b2aa0e717ecd17b518ba14d3e6d9b00da | de8f58ba17cf81cb66149c4af0d7920cd159a981 | Fixed over-collapsing of regions when malloc is encountered | In order to establish whether a pointer returned from an external
function can alias program-allocated memory, we used to generate
regions for return values of pointer types of all functions. We
used to do that no matter how the pointers would end up being used.
In the case of malloc, this would almost always lead ... | diff --git a/lib/smack/Regions.cpp b/lib/smack/Regions.cpp
index c549d8bf5..778296f29 100644
--- a/lib/smack/Regions.cpp
+++ b/lib/smack/Regions.cpp
@@ -347,9 +347,6 @@ void Regions::visitCallInst(CallInst &I) {
Function *F = I.getCalledFunction();
std::string name = F && F->hasName() ? F->getName().str() : "";
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the region creation (idx(&I)) for every pointer-returning call instruction may not be safe and is not specific to malloc, so it should be kept but guarded to the malloc case rather than dropped altogether.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "... | null |
smackers__smack__563 | smackers/smack | 563 | defect | 0f86ebe82a7c53baaab2eafc1e5a735d93c1f916 | a435fbe57346a46eaba8346230a565215b2fca27 | Update installation procedures, vagrant, travis | This pull request tries to clean up the installation procedures, vagrant, and travis. | diff --git a/.travis.yml b/.travis.yml
index f8ff1c6ac..31c8d8fa3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,17 +10,9 @@ addons:
- python3-yaml
- python3-psutil
- unzip
- - libz-dev
- - libedit-dev
+ - ninja-build
- libboost-all-dev
-cache:
- directories:
- - $HOM... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Boogie/Corral installation block could be simplified: dotnet tools can share one tool path (replace BOOGIE_DIR and CORRAL_DIR with DOTNET_TOOL_PATH or the default global path), and the 'already installed' detection/reporting is redundant with 'dotnet tool install'.", "category": "maintainabi... | null |
smackers__smack__600 | smackers/smack | 600 | defect | a4edf15aa93d98df51c4af59e916d3141b7e8c71 | 4fe3acde0f3fcd73618733d42a625c75de7d3b5f | Decouple bit-precise-pointers from bit-precise | In the previous implementation, the former flag implies the latter flag, which
seems unnecessary. | diff --git a/lib/smack/Prelude.cpp b/lib/smack/Prelude.cpp
index c3bd83a9f..aa9551f73 100644
--- a/lib/smack/Prelude.cpp
+++ b/lib/smack/Prelude.cpp
@@ -327,7 +327,8 @@ struct IntOpGen::IntArithOp : public IntOp {
if (!SmackOptions::BitPrecise ||
(!SmackOptions::BitPrecisePointers && alsoUsedByPtr))
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add parentheses around the `SmackOptions::BitPrecisePointers && alsoUsedByPtr` operand so readability does not rely on operator precedence.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smackers__smack__601 | smackers/smack | 601 | defect | a4edf15aa93d98df51c4af59e916d3141b7e8c71 | f38c6084eb79954cf30f5c1e0ec90900672e66a6 | Assert false on loop exit | This partly addresses #434
This PR adds a pass that finds every loop exit and adds an `assert false` using `__SMACK_code` at each exit. The idea is that if a user is not sure if their loop is unrolling enough, then they can use the flag `--fail-on-loop-exit`, and if the program does not fail, that means the unroll ... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6ea010dc..aac2ef591 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -132,6 +132,7 @@ add_library(smackTranslator STATIC
include/smack/MemorySafetyChecker.h
include/smack/IntegerOverflowChecker.h
include/smack/NormalizeLoops.h
+ include/smack/AnnotateLoop... | 11 | 9 | 2 | [{"id": "G0", "claim": "The pass's scope should be reduced from a module pass to a function or loop pass.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Stick with the 'loop exit' terminology everywhere instead of 'loop end' — rename insertLoopEndAsserti... | null |
smackers__smack__604 | smackers/smack | 604 | defect | 5146e43d43e0952e78b5c63c1db17f9273f667f0 | 3d801f561bfde586ebb6b95093343813601af49d | Add integer encoding and pointer encoding options | This PR replaces old `--bit-precise`, `--bit-precise-pointers`, and `--wrapped-integer-encoding` flags with new `--integer-encoding` and `--pointer-encoding` flags. | diff --git a/lib/smack/Prelude.cpp b/lib/smack/Prelude.cpp
index fc3649299..bcb867aed 100644
--- a/lib/smack/Prelude.cpp
+++ b/lib/smack/Prelude.cpp
@@ -1203,33 +1203,42 @@ void PtrOpGen::generatePtrNumConvs(std::stringstream &s) const {
void PtrOpGen::generatePreds(std::stringstream &s) const {
describe("Pointer p... | 1 | 1 | 1 | [{"id": "G0", "claim": "Reviewer asks why the '-DBIT_PRECISE' compile define is no longer needed, since the pull request removed the 'if args.bit_precise: cmd += [\"-DBIT_PRECISE\"]' block from default_clang_compile_command without any replacement.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
smackers__smack__636 | smackers/smack | 636 | defect | a55f3ee839dcad912798d2e5afd7c04633d36896 | d545e47c8190d04563574a14c3897731ae1fbeb6 | Add a pass to transform certain bit-wise operations into integer operations | This pass approximates bit-wise operations by encoding them as integer operations. Specifically,
Masking by a constant value equal to 2^x-1, e.g., 0000111, is translated to a remainder operations.
A left shift by a constant is translated into a multiplication.
A right shift by a constant is translated into a divisio... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20b81f9c6..0134a919b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,6 +131,7 @@ add_library(smackTranslator STATIC
include/smack/VectorOperations.h
include/smack/MemorySafetyChecker.h
include/smack/IntegerOverflowChecker.h
+ include/smack/ConstantBV... | 7 | 5 | 3 | [{"id": "G0", "claim": "The pull request should add a couple of regression tests for the pass.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pass should not run when bitvector mode is enabled, and the guard's polarity is wrong (the ! should be remo... | null |
smackers__smack__75 | smackers/smack | 75 | defect | 84a93f013738e81c7164c5ce521ce53e8bba890b | a6200bc3b94a7d7b6bc1a026622cd163b235d82a | Initialization Function Support | Allows for initialization code to be inserted into main immediately after $static_init().
During function iteration, SmackModuleGenerator now looks for function definitions starting with "__SMACK_init_func_", and calls each such function from an additional generated function called $init_funcs().
After function itera... | diff --git a/include/smack/SmackRep.h b/include/smack/SmackRep.h
index d45bea52e..19db6de81 100644
--- a/include/smack/SmackRep.h
+++ b/include/smack/SmackRep.h
@@ -49,6 +49,7 @@ class SmackRep {
static const Expr* NUL;
static const string STATIC_INIT;
+ static const string INIT_FUNCS;
protected:
DSAAl... | 5 | 5 | 1 | [{"id": "G0", "claim": "Add an assertion that init functions take no arguments and return no values, enforcing this since arguments and return values should not be needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The init_funcs.c test should b... | null |
smallnest__rpcx__121 | smallnest/rpcx | 121 | defect | 53c67053b3f5678680ce75c3b360e1b28d5b8b2b | 6430437520c5ba51bd7cd20c3f377d87e3dd7514 | add TestKcpServe, demonstrate and enable kcp based rcp with encryption. | Add TestKcpServe; Demonstrate and enable encrypted rpc using kcp.
**Please answer these questions before sending pull requests. Thanks!**
### did you run tests in local?
Yes.
If there's a better way to add encryption for kcp based transport, let me know. | diff --git a/client.go b/client.go
index 31800e03f..bbd7a90b0 100644
--- a/client.go
+++ b/client.go
@@ -292,10 +292,13 @@ func (c *Client) wrapCall(client *core.Client, ctx context.Context, serviceMetho
//Go invokes the function asynchronously. It returns the Call structure representing the invocation.
//The done ... | 3 | 2 | 2 | [{"id": "G0", "claim": "kcp is a plugin that few use in production, so encryption should not be added as a blockCrypt parameter on Server.Serve/Start (and the package-level Serve/Start); a KCP-specific design such as separate KCP functions would be better.", "category": "design", "verdict": "supported", "priority": "P1... | null |
smallnest__rpcx__483 | smallnest/rpcx | 483 | defect | 4a2f39cc09704f8ad738411a3bcba55a1fdc8cf2 | 160ea0a253abd12e6529cd543bae5d667f6071b7 | add server heartbeat plugin | 目前服务端对客户端发起的 heartbeat 请求是直接丢弃,某些业务场景需要针对心跳来做一些特定处理;
因此希望能通过 HeartbeatPlugin 接口,可以实现 OnHeartbeat 的自定义处理。
单元测试:
```
go test -v -test.run TestPluginHeartbeat
```
如有需要改动,烦请告知。
以上,谢谢! | diff --git a/server/plugin.go b/server/plugin.go
index 005a84df..d688647c 100644
--- a/server/plugin.go
+++ b/server/plugin.go
@@ -34,6 +34,8 @@ type PluginContainer interface {
DoPreWriteRequest(ctx context.Context) error
DoPostWriteRequest(ctx context.Context, r *protocol.Message, e error) error
+
+ DoHeartbeat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The single-method interface should be named after its method so the method name appears at the beginning of the interface name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallnest__rpcx__836 | smallnest/rpcx | 836 | defect | 24009f789755ab28fe59de84ccc72ebec2c543fc | 6cd6940d268dc877e0d373feeca8113498a68665 | Smmoth_round_roubine:Performance improvement | ### update smmoth_round_roubine
rewrite this part code.
when initional i calc the server's weight ,and then add them to a ring.
and then select the server ,only get it from ring.
benchmark
from
```
goos: linux
goarch: amd64
pkg: github.com/smallnest/rpcx/client
cpu: AMD Ryzen 5 3500U with Radeon Vega Mobil... | diff --git a/client/selector.go b/client/selector.go
index 1688b934..10dfd52c 100644
--- a/client/selector.go
+++ b/client/selector.go
@@ -1,6 +1,7 @@
package client
import (
+ "container/ring"
"context"
"math"
"math/rand"
@@ -111,12 +112,16 @@ func (s *roundRobinSelector) UpdateServer(servers map[string]stri... | 1 | 1 | 1 | [{"id": "G0", "claim": "After UpdateServer replaces the servers, the weighted round-robin ring should be rebuilt so Select serves the updated server list.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__jandex__129 | smallrye/jandex | 129 | defect | 006bf03aeb277cdcd19ad7fd4d901c095ec1fcec | 6b177c9f3c0f00e1e5d8ac37e2a2b4eabee2952e | Read RuntimeInvisible*Annotations in Indexer | Fixes #120 - I'm hoping they were not excluded deliberately originally :-) This also includes a refactoring of `processAttributes` to use a switch statement for readability. | diff --git a/core/src/main/java/org/jboss/jandex/AnnotationInstance.java b/core/src/main/java/org/jboss/jandex/AnnotationInstance.java
index 1236beb3..5159b65c 100644
--- a/core/src/main/java/org/jboss/jandex/AnnotationInstance.java
+++ b/core/src/main/java/org/jboss/jandex/AnnotationInstance.java
@@ -46,6 +46,7 @@ pub... | 7 | 6 | 3 | [{"id": "G0", "claim": "In IndexReaderV2.readAnnotationEntry, `boolean visible = (version >= 11) && stream.readBoolean()` evaluates to false for index versions <= 10, but older indexes contain only runtime-visible annotations, so `visible` should be true for versions <= 10.", "category": "correctness", "verdict": "supp... | null |
smallrye__jandex__173 | smallrye/jandex | 173 | defect | 3127b09fa9b7ce66863ea01f60d34a550d47bf91 | bbaa542b19e9f1c24306169129a8821d62e2dd86 | introduce the notion of equivalence | Resolves #158 | diff --git a/core/src/main/java/org/jboss/jandex/EquivalenceKey.java b/core/src/main/java/org/jboss/jandex/EquivalenceKey.java
new file mode 100644
index 000000000..3d259badb
--- /dev/null
+++ b/core/src/main/java/org/jboss/jandex/EquivalenceKey.java
@@ -0,0 +1,571 @@
+package org.jboss.jandex;
+
+import java.util.Arra... | 4 | 3 | 0 | [{"id": "G0", "claim": "It might be useful to make this kind of constant public, and other candidates such as DotName.OBJECT_NAME declared on DotName.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The class javadoc is hard to follow and should be reph... | null |
smallrye__jandex__346 | smallrye/jandex | 346 | defect | 0cf691c26cb98d08a362ae33f458da8692a5bdd0 | f0ee2bdd68dc448c008e65a6ba233b133a2e3c26 | Add empty and stacked indexes | Fixes #142 | diff --git a/core/src/main/java/org/jboss/jandex/CompositeIndex.java b/core/src/main/java/org/jboss/jandex/CompositeIndex.java
index 2f5ca50d..2f5b5a33 100644
--- a/core/src/main/java/org/jboss/jandex/CompositeIndex.java
+++ b/core/src/main/java/org/jboss/jandex/CompositeIndex.java
@@ -190,10 +190,10 @@ public Collecti... | 3 | 1 | 0 | [{"id": "G0", "claim": "Since the empty index is not used internally and has no clear advantage over Index.of(Collections.emptyList()) without a use case, the new API should probably be promoted -- e.g. mention/link EmptyIndex in IndexView, maybe add IndexView.empty() -- and EmptyIndex should be used in similar scenari... | null |
smallrye__jandex__563 | smallrye/jandex | 563 | defect | 98013056aef6cb0dadd3c63ab55161393dfe905f | 9300f1490522d820d5bf04d89b093b15973bafd0 | add `MethodSignatureKey` | Method signature key is an opaque token that only provides equality and hash code. These operations are based on a method signature, that is, the method name, parameter types and return type. Everything else is ignored.
Fixes #561 | diff --git a/core/src/main/java/org/jboss/jandex/FieldInfo.java b/core/src/main/java/org/jboss/jandex/FieldInfo.java
index cdc81a34..2dfea5cf 100644
--- a/core/src/main/java/org/jboss/jandex/FieldInfo.java
+++ b/core/src/main/java/org/jboss/jandex/FieldInfo.java
@@ -428,6 +428,7 @@ public String genericSignature(Functi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Given how many of these objects are created, the length == 0 case should be treated specially and point to a reused constant empty array instead of allocating a new DotName[] each time.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__jandex__609 | smallrye/jandex | 609 | defect | 4b0b2246f9b9cb75c45acb05a32388103893a16d | aca8b583ca067c399a7ad67e947dde51ee517603 | add `DotName.startsWith()` | Fixes #607 | diff --git a/benchmarks/src/test/java/org/jboss/jandex/DotNameStartsWithBenchmark.java b/benchmarks/src/test/java/org/jboss/jandex/DotNameStartsWithBenchmark.java
new file mode 100644
index 00000000..8493a385
--- /dev/null
+++ b/benchmarks/src/test/java/org/jboss/jandex/DotNameStartsWithBenchmark.java
@@ -0,0 +1,59 @@
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The javadoc of the new startsWith(DotName) method should declare an @since tag (3.5.2).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-config__1000 | smallrye/smallrye-config | 1,000 | defect | 32de20e0ffe564cec7494d983768d72fe07e5fdd | 3650fd8cef756a6a1a8484f4a71122939c16acf5 | Reimplement handling of environment variables names to improve performance and allocation | - With a dedicated representation that can use equals and hashcode
- With filtering and matching only what is required | diff --git a/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java b/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java
index 4a007c7fa..580351987 100644
--- a/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java
+++ b/common/src/main/java/io/smallrye/config/common/utils... | 4 | 3 | 0 | [{"id": "G0", "claim": "Use a switch instead of the if-chain when skipping the special characters in EnvProperty.hashCode, because the JVM can optimize a switch very effectively.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inline what equals will... | null |
smallrye__smallrye-config__1220 | smallrye/smallrye-config | 1,220 | defect | e768190eee50a3e0fe4efe28d39441086e08dffd | 8e47fc1f0ced3a5b4d194ee23ff15d75a37aeaf9 | Support a fixed list of Map keys statically @WithKeys | Add a new annotation `@WithKeys` to be used with `Map` in ` @ConfigMapping`.
The purpose is to provide a list of keys to populate the `Map` instead of relying on the list of property names (which may not include all the defined keys in the configuration).
Inspired by
- https://github.com/quarkusio/quarkus/pull/... | diff --git a/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java b/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java
index 2f6818b39..d9987b9f2 100644
--- a/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java
+++ b/implementation/src/main/java/io/small... | 2 | 1 | 1 | [{"id": "G0", "claim": "WithKeys should declare only ElementType.TYPE_USE as its @Target instead of both METHOD and TYPE_USE, because having both forces the annotation to be checked in two very different, painful ways.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
smallrye__smallrye-config__1232 | smallrye/smallrye-config | 1,232 | defect | 5c88f7b352059c62a71089ae9f6c248b01fce097 | 0122acbc495628458a6397158a0979048d61f555 | Secret type to represent secrets and integrate with the secrets handling | - Fixes #1199
Adds a new wrapper type, `Secret<T>`, to represent a secret. When a `Secret` is part of a mapping, the path is added to the Secrets interceptor, to not include the secret in property names or access the secret without calling `SecretKeys.doUnlocked`.
This is initial work to support more advanced sce... | diff --git a/implementation/src/main/java/io/smallrye/config/ConfigMappingGenerator.java b/implementation/src/main/java/io/smallrye/config/ConfigMappingGenerator.java
index 7992604d4..a5fa954f9 100644
--- a/implementation/src/main/java/io/smallrye/config/ConfigMappingGenerator.java
+++ b/implementation/src/main/java/io... | 5 | 1 | 1 | [{"id": "G0", "claim": "The `Secret` type is really a text password and should support the existing credential types (e.g. `Key` subclasses, the Elytron `Password` hierarchy), perhaps via a generic wrapper like `Secret<PrivateKey>`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
smallrye__smallrye-config__1270 | smallrye/smallrye-config | 1,270 | defect | 1ee672abe1080f3ce212d6f9451f1a3b5a71585f | c9ccf3c444417eb49605a1cf1bae5d00c724ec2c | check duplicate keys | - Fixes #1269
Edit :
Only for properties config source : duplicate keys found in te same config source will be logged as warning.
NOTE: this is just a proposal of implementation. | diff --git a/documentation/src/main/docs/config/getting-started.md b/documentation/src/main/docs/config/getting-started.md
index 1024e441e..c9ac7f79f 100644
--- a/documentation/src/main/docs/config/getting-started.md
+++ b/documentation/src/main/docs/config/getting-started.md
@@ -40,6 +40,26 @@ greeting.message=hello
... | 4 | 3 | 3 | [{"id": "G0", "claim": "Do not gate duplicate-key handling behind the smallrye.config.forbid-duplicate-keys configuration (and the ConfigValuePropertiesUtils class built around it); a simple warning should be enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
smallrye__smallrye-config__1272 | smallrye/smallrye-config | 1,272 | defect | 940c5a5ba7dee3a8c47eb825f4d20c8d7abe1b03 | 3036e37247f0339e236fd772d060ceff067c44eb | fix: avoid out of range error with long profile names | Long profile names, such as `test-with-native-agent` may cause string length overruns on short properties.
This introduces a check to avoid that. | diff --git a/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java
index e91a0f6f4..6def94f33 100644
--- a/implementation/src/main/java/io/smallrye/config/ProfileConfigSourceInterceptor.java
+++ b/impleme... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added covering the pull request's fix for the out-of-range error with long profile names.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-config__1284 | smallrye/smallrye-config | 1,284 | defect | 2bcff37855ce61a6b44bcacfc4128ce3601be094 | d0478b27fc3b3b6c6d70b421ff7d796f9dcc9b8a | Builtin Converters for `File` and `URI` | It seems counter productive to throw so many NoSuchMethodExceptions for these common uses cases.
These are the ones I could identify in the flame graph, let me know if you see more. | diff --git a/implementation/src/main/java/io/smallrye/config/Converters.java b/implementation/src/main/java/io/smallrye/config/Converters.java
index f6985d58f..0d95468c3 100644
--- a/implementation/src/main/java/io/smallrye/config/Converters.java
+++ b/implementation/src/main/java/io/smallrye/config/Converters.java
@@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The File and URI converters should be added as BuiltInConverter instances (like PATH_CONVERTER, with trimming) instead of the shortcut getConverterFromConstructor branches added in getConverter(Class).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-config__152 | smallrye/smallrye-config | 152 | defect | a72000162dcb3e0d37921164ab2bfe8ba5e461e5 | 76e97e09f74eb6850460550163b71a3257fc29e7 | Donation from MicroProfile-ext: Config Events | Signed-off-by:Phillip Kruger <phillip.kruger@gmail.com>
Donation from MicroProfile-ext. Changed test to use smallrye and not TT as requested. | diff --git a/converters/json/src/test/java/io/smallrye/config/converter/json/JsonArrayConverterTest.java b/converters/json/src/test/java/io/smallrye/config/converter/json/JsonArrayConverterTest.java
index 37f4c5543..2fe097cb4 100644
--- a/converters/json/src/test/java/io/smallrye/config/converter/json/JsonArrayConverte... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unrelated fix switching the JSON converter tests from Thorntail to SmallRye Config should be removed from this PR and done in a separate PR, as it is unrelated to adding Config Events.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-config__161 | smallrye/smallrye-config | 161 | defect | 8ce3a1685020ceb0afb3b7ef0523ccd6835da944 | 19a6b0e41ef1504ef343940b7f50b6477e515b76 | Add HOCON configuration file format support | Using Lightbend's config library to support HOCON file format. I disabled much of what the lib can do (config file merge...), I limited it to looks at these files only:
- `META-INF/microprofile-config.conf`
- `WEB-INF/classes/META-INF/microprofile-config.conf`
The default ordinal for these files is `60` and `50`, ... | diff --git a/pom.xml b/pom.xml
index 8ef7ebb47..cf1dc5934 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,6 +61,7 @@
<module>implementation</module>
<module>testsuite</module>
<module>docs</module>
+ <module>sources/lightbend</module>
<module>sources/zookeeper</module>
<module>converters/json</mod... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new config source should be named after the HOCON file format (e.g. HoconConfigSource) instead of the LightBend company name, and the JSON config source should be dropped since a JSON ConfigSource is already being moved into SmallRye.", "category": "design", "verdict": "supported", "priority... | null |
smallrye__smallrye-config__197 | smallrye/smallrye-config | 197 | defect | eca6e6c9a7e9f8242757d37b8ab6d1b940575140 | a5816ba81100713e25e6d3cd4ba5e49e83c0d214 | Introduce YAML configuration source | Fixes #171; partially replaces #174. | diff --git a/common/src/main/java/io/smallrye/config/MapBackedConfigSource.java b/common/src/main/java/io/smallrye/config/MapBackedConfigSource.java
index 83edac625..9e456628c 100644
--- a/common/src/main/java/io/smallrye/config/MapBackedConfigSource.java
+++ b/common/src/main/java/io/smallrye/config/MapBackedConfigSou... | 4 | 4 | 4 | [{"id": "G0", "claim": "In streamToMap the caught close-failure t2 is never used: the code calls t.addSuppressed(t) (self-suppression) instead of suppressing the secondary exception, so t2 should be used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
smallrye__smallrye-config__270 | smallrye/smallrye-config | 270 | defect | 03c8ba0f9d27eb7d5e8f5daf33b0e403d705b9b7 | 08dd53af23e8f9446339279a8cf07b5220900032 | Fixes #268. Added interceptor to Relocate configuration properties. | Still missing documentation. Add if we are happy with this approach. | diff --git a/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/RelocateConfigSourceInterceptor.java
new file mode 100644
index 000000000..5da8a0085
--- /dev/null
+++ b/implementation/src/main/java/io/smallrye/config/RelocateConfigSourc... | 4 | 3 | 3 | [{"id": "G0", "claim": "The %relocate. value-prefix interceptor is functionally identical to a value that is an expression referencing the new key name, so the pull request should stick with the one existing expression mechanism rather than introducing a second one (the reviewer first asks what use case the interceptor... | null |
smallrye__smallrye-config__419 | smallrye/smallrye-config | 419 | defect | 96041695798416a3d10c1c16d9f0389697756cd2 | 367c67436b2461c0d40f9bc0121a844b62f2374f | Use application classloader for proxies | Signed-off-by: tevans <tevans@uk.ibm.com>
fixes #418 | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 78d92d322..c829f3463 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
+ - mpconfig20
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
@@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Keep a separate method for defining the proxy class instead of inlining the ClassDefiner call into loadClass, so the method can be substituted in GraalVM without keeping the body in sync between the implementation and the substitution.", "category": "design", "verdict": "supported", "priority": ... | null |
smallrye__smallrye-config__420 | smallrye/smallrye-config | 420 | defect | 96041695798416a3d10c1c16d9f0389697756cd2 | bb2dff456d47b414291e36046360885b66adcbb6 | Ensure injected Config is serializable | Ensure that an injected `Config` object is serializable, regardless of
whether the config sources it uses are serializable or not.
Fixes #405 | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 78d92d322..c829f3463 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
+ - mpconfig20
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
@@ ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR's separate injected config class breaks anyone casting the instance produced by the producer to (SmallRyeConfig) (e.g. in Quarkus), and the suggested way out is to convert SmallRyeConfig itself into the injected delegating class and move its current code into a new implementation class.",... | null |
smallrye__smallrye-config__424 | smallrye/smallrye-config | 424 | defect | 3cc4f3c8a1cf2450eef462ea9137cf01134adacb | a5dab4048bbf53d8733cfb22115709fb933256c5 | Keep validating if injection point name missing | If an injection point name is missing, record the error and continue
validating, rather than allowing the exception to be thrown.
Enhancement to #409 | diff --git a/implementation/src/main/java/io/smallrye/config/inject/ConfigExtension.java b/implementation/src/main/java/io/smallrye/config/inject/ConfigExtension.java
index 0b7c4d1a6..35dfdcb8d 100644
--- a/implementation/src/main/java/io/smallrye/config/inject/ConfigExtension.java
+++ b/implementation/src/main/java/io... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leftover System.out.println(\"Hello!\") debug line in the new methodUnnamedProperties test should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-config__431 | smallrye/smallrye-config | 431 | defect | 6d5536d22d435aba7158ad6c087312ccae264d34 | 68529cdcfcaff6f5739d4b286fb3ab460191338a | Support loading additional configurations locations. | A lot of users have been requesting the ability to load external configuration files:
https://github.com/quarkusio/quarkus/issues/12419
https://github.com/quarkusio/quarkus/issues/11273
https://github.com/quarkusio/quarkus/issues/9869
Also it seems to be a recurring topic in Zulip:
https://quarkusio.zulipchat.co... | diff --git a/implementation/pom.xml b/implementation/pom.xml
index cfefd635f..385608d02 100644
--- a/implementation/pom.xml
+++ b/implementation/pom.xml
@@ -115,6 +115,11 @@
<groupId>io.smallrye.testing</groupId>
<artifactId>smallrye-testing-utilities</artifactId>
</dependency>
+ <dependency>
+ ... | 15 | 11 | 3 | [{"id": "G0", "claim": "Building a native image against this smallrye-config build fails with 'could not find target method: static java.lang.Class io.quarkus.runtime.configuration.Substitutions$Target_ConfigMappingLoader.loadClass(java.lang.String,byte[])', an error the tester does not get without the changes.", "cate... | null |
smallrye__smallrye-config__504 | smallrye/smallrye-config | 504 | defect | 8e0aa9440270825ce6c08a0136973e2b10e33e3b | 59a74bd10ffd2d6908375b0b117f67900c5bf47d | Add more Exception messages for Config.getValue() | Partly addresses #485
In particular, resolves:
- https://github.com/smallrye/smallrye-config/issues/485#issuecomment-762208755
- https://github.com/smallrye/smallrye-config/issues/485#issuecomment-772418418
Under the current implementation all of the tests from `ConfigValueConversionRulesExceptionsTest.java` wo... | diff --git a/implementation/src/main/java/io/smallrye/config/ConfigMessages.java b/implementation/src/main/java/io/smallrye/config/ConfigMessages.java
index 5f880db56..fc8d62abe 100644
--- a/implementation/src/main/java/io/smallrye/config/ConfigMessages.java
+++ b/implementation/src/main/java/io/smallrye/config/ConfigM... | 2 | 2 | 0 | [{"id": "G0", "claim": "The exception-list comment inside getValue would read better moved into a javadoc section for the method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The propertyNotFound message should say 'in any config source' rathe... | null |
smallrye__smallrye-config__579 | smallrye/smallrye-config | 579 | defect | eb121a18850579cd4bbe664f57d0d79a50148c8a | 39e9b0ad2a62afb312c6333f0d40d24f935e5e4b | Allow to fetch multiple config parameters as a Map | fixes #578
## Motivation
When we need a dynamic configuration, it can be very helpful to use a map. For example, let's say that I want to keep in my configuration the custom reason phrases to return to the enduser according to the http status code.
I would like to have:
The expected code
```
@ConfigPro... | diff --git a/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java b/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java
index 1751febbd..f2b92d4c6 100644
--- a/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java
+++ b/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java... | 7 | 7 | 5 | [{"id": "G0", "claim": "When injecting a Map, properties under subnamespaces (keys with more than one level below the prefix, e.g. my.map.sub.something) should be ignored rather than included as composed keys like 'sub.something'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.