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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
akveo__react-native-ui-kitten__315 | akveo/react-native-ui-kitten | 315 | defect | b688ee8aa03ce7fac3f4d9b5d485d81b556bbbdc | 923b3134ca9c1daa68c2ffca4e9b02654fcb3caf | feat(theme): styles validation | ### Please read and mark the following check list before creating a pull request:
- [x] I read and followed the [CONTRIBUTING.md](https://github.com/akveo/react-native-ui-kitten/blob/master/CONTRIBUTING.md) guide.
- [x] I read and followed the [New Feature Checklist](https://github.com/akveo/react-native-ui-kitte... | diff --git a/src/framework/theme/component/style/styleConsumer.component.tsx b/src/framework/theme/component/style/styleConsumer.component.tsx
index e803eb116..be329c19e 100644
--- a/src/framework/theme/component/style/styleConsumer.component.tsx
+++ b/src/framework/theme/component/style/styleConsumer.component.tsx
@@ ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Prefer refactoring getReducedMapping, validate and showWarning into a single function with a more understandable name, called before createThemedStyle so that createThemedStyle only walks mapping keys and applies theme values, with the new function just filtering mapping keys and showing a warni... | null |
akveo__react-native-ui-kitten__376 | akveo/react-native-ui-kitten | 376 | defect | 2925e70f3d7b2d6a3531975fb18b1e2cf31b46f1 | e1302e66443ae7fc28503c2782f0680f5e857262 | refactor(ui): button-group layout refactor | ### Please read and mark the following check list before creating a pull request:
- [x] I read and followed the [CONTRIBUTING.md](https://github.com/akveo/react-native-ui-kitten/blob/master/CONTRIBUTING.md) guide.
- [x] I read and followed the [New Feature Checklist](https://github.com/akveo/react-native-ui-kitte... | diff --git a/src/framework/ui/buttonGroup/buttonGroup.component.tsx b/src/framework/ui/buttonGroup/buttonGroup.component.tsx
index 2c7ddf063..6375ddb23 100644
--- a/src/framework/ui/buttonGroup/buttonGroup.component.tsx
+++ b/src/framework/ui/buttonGroup/buttonGroup.component.tsx
@@ -9,10 +9,6 @@ import {
StyleType,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable `testStyle` in `renderComponentChild` should be given another name, e.g. `borderStyle`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
akveo__react-native-ui-kitten__492 | akveo/react-native-ui-kitten | 492 | defect | 852005688711c7571dcd1e19c4741c6ba45f9b71 | 7d148cccb89384eb8394811bb31575904532507e | feat(ui): input - icon press handler | ### Please read and mark the following check list before creating a pull request:
- [x] I read and followed the [CONTRIBUTING.md](https://github.com/akveo/react-native-ui-kitten/blob/master/CONTRIBUTING.md) guide.
- [x] I read and followed the [New Feature Checklist](https://github.com/akveo/react-native-ui-kitte... | diff --git a/src/framework/ui/input/input.component.tsx b/src/framework/ui/input/input.component.tsx
index be6715144..23f6863a8 100644
--- a/src/framework/ui/input/input.component.tsx
+++ b/src/framework/ui/input/input.component.tsx
@@ -6,12 +6,15 @@
import React from 'react';
import {
+ GestureResponderEvent,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider using TouchableOpacity with activeOpacity={1.0} instead of TouchableWithoutFeedback for the pressable icon.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
akveo__react-native-ui-kitten__561 | akveo/react-native-ui-kitten | 561 | defect | e5285d73ad3891a6c606ae27e1fd21418aa7f000 | 07a5cf1faf11aab0f93b967e121ae46f5a78efbb | fix(ui): add rtl fixes and demo | #### Short description of what this resolves: this will add RTL demo in playground and fix RTL problems. the fixes includes:
- some text align left in playground fix label and section label
- add RTL/LTR button in playground's header
- fix checkmark
- fix input description and label text align
- fix list... | diff --git a/src/framework/ui/input/input.component.tsx b/src/framework/ui/input/input.component.tsx
index 112babb2d..b6930b0b1 100644
--- a/src/framework/ui/input/input.component.tsx
+++ b/src/framework/ui/input/input.component.tsx
@@ -382,12 +382,17 @@ const styles = StyleSheet.create({
flexGrow: 1,
flexShr... | 4 | 3 | 1 | [{"id": "G0", "claim": "The RTL checkmark is rendered by swapping the two elements and rotating them 180 degrees, which is wrong — it would be better to actually make a checkmark for RTL instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The popover... | null |
akvorado__akvorado__1922 | akvorado/akvorado | 1,922 | defect | c31e0616c30d43713e9f5a77a5b4478f2e7a5475 | 900a18b9bfa272fbf7365dd868724154c847796c | outlet/kafka: expose consumer lag as a prometheus metric | # Summary
Monitoring consumer lag is useful to troubleshoot performance/scaling issues. It can currenctly be seen through kafka-ui, but a proper metric is more practical.
Unfortunately, JMX metrics on the broker don't expose this. It seems that people usually resort to monitoring from the consumer side, or throug... | diff --git a/outlet/kafka/functional_test.go b/outlet/kafka/functional_test.go
index d2ed97607..21cb47ca2 100644
--- a/outlet/kafka/functional_test.go
+++ b/outlet/kafka/functional_test.go
@@ -106,12 +106,13 @@ func TestFakeKafka(t *testing.T) {
t.Errorf("Didn't received the expected messages (-got, +want):\n%s", di... | 9 | 9 | 4 | [{"id": "G0", "claim": "The consumer-lag metric should live in the outlet/kafka component, with the computation spawned as a goroutine via c.t.Go(...).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The lag computation interval is hardcoded to 1s; the autho... | null |
akvorado__akvorado__1942 | akvorado/akvorado | 1,942 | defect | ec3c6e8ffaa4fca818b58b16e853aabce1b424d5 | 5110a6f08f539a6c7d33480ab198863b6fd5be3b | console/filter: add autocomplete for the SrcPort and DstPort filters | Hello
This PR adds autocomplete functionality for the ```SrcPort``` and ```DstPort``` filters.
Example: if we enter ```SrcPort = http``` , it will display a list of all ports whose protocol name begins with ```http```.
<img width="301" height="190" alt="image" src="https://github.com/user-attachments/assets/b14... | diff --git a/console/filter.go b/console/filter.go
index 05fe1adbd..9c4ca05b0 100644
--- a/console/filter.go
+++ b/console/filter.go
@@ -278,6 +278,61 @@ UNION DISTINCT
})
}
input.Prefix = "" // We have handled this internally
+ case "srcport", "dstport":
+ results := []struct {
+ Label string `ch:"... | 1 | 1 | 0 | [{"id": "G0", "claim": "To avoid repetition between TCP and UDP, the duplicated flows subqueries should be merged into one using Proto IN (6, 17) with dictGet chosen by if(Proto = 6, ...), and the second part should select from a single subselect unioning tcp and udp port names.", "category": "maintainability", "verdic... | null |
akvorado__akvorado__2109 | akvorado/akvorado | 2,109 | defect | f6042144f5354290f77727406d498cc3ae4f7481 | 16d00ed20f4c2924ea4e175a2789078cbd0f8e90 | orchestrator: add manage-topic flag and document skip-migrations | - Add ManageTopic flag to orchestrator/kafka configuration (default: true)
- Skip Kafka initialization when ManageTopic is false
- Add tests for ManageTopic configuration
- Document manage-topic flag in Kafka section
- Document skip-migrations flag in ClickHouse section (documentation was missing)
This allows ru... | diff --git a/console/data/docs/02-configuration.md b/console/data/docs/02-configuration.md
index 5529ac9fe..138325c0e 100644
--- a/console/data/docs/02-configuration.md
+++ b/console/data/docs/02-configuration.md
@@ -769,7 +769,8 @@ flows. It accepts the following keys:
- `tls` defines the TLS configuration to connect... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new TestManageTopicDisabled test should start and stop the component with the helpers.StartStop helper instead of calling c.Start() manually.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "New() should return nil, nil early w... | null |
akvorado__akvorado__2319 | akvorado/akvorado | 2,319 | defect | f589794f79b3cd7533cf7b163f1b89b45c562074 | 0a153bfc03e426ba3b7061569924fd5b61489de6 | Support skip missing interfaces for remote metadata sources | References https://github.com/akvorado/akvorado/discussions/2318
This MR adds support for `skipmissinginterfaces` to remote metadata sources. | diff --git a/console/data/docs/99-changelog.md b/console/data/docs/99-changelog.md
index 204c5b05f..eabc63556 100644
--- a/console/data/docs/99-changelog.md
+++ b/console/data/docs/99-changelog.md
@@ -13,6 +13,7 @@ identified with a specific icon:
## Unreleased
- ✨ *console*: add a heatmap visualisation
+- ✨ *outle... | 3 | 2 | 1 | [{"id": "G0", "claim": "The changelog entry should spell the field `skip-missing-interfaces` instead of `skipmissinginterfaces` and should say that this is a field in the values returned by remote data sources, not a configuration setting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope"... | null |
akvorado__akvorado__2329 | akvorado/akvorado | 2,329 | defect | 28fba6075b76de07834e8600b3b24c3fef61d150 | 9a7fb652be57f77da270a440739d445128b5f839 | Add url-prefix configuration to console | Fixes #2328 | diff --git a/console/assets.go b/console/assets.go
index 628ae8e67..709a9f1b6 100644
--- a/console/assets.go
+++ b/console/assets.go
@@ -4,12 +4,40 @@
package console
import (
+ "fmt"
+ "io/fs"
"net/http"
+ "strings"
+ "time"
)
-func (c *Component) defaultHandlerFunc(w http.ResponseWriter, req *http.Request) {... | 8 | 7 | 2 | [{"id": "G0", "claim": "Setting base: \"\" in vite.config.ts is a simpler solution than the PR's current approach for making asset and API paths resolve relative to the hosting URL.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The router base fallback ... | null |
akvorado__akvorado__2382 | akvorado/akvorado | 2,382 | defect | 00a9ecd36635ea54f1eb4af3eb1fb7bdda33fa31 | 272c22aa70ea953b6ef19b871fff1da3a38c2545 | feat: Support SrcCommunities and SrcLargeCommunities columns with filtering in Akvorado | Currently Akvorado only exposes destination‑community information (`DstCommunities` / `DstLargeCommunities`). Since the destination columns already exist, it makes sense to add equivalent source‑community columns.
Adding `SrcCommunities` and `SrcLargeCommunities` would be a huge benefit for our use case. With these ... | diff --git a/common/schema/definition.go b/common/schema/definition.go
index 89ee84344..fa4c08999 100644
--- a/common/schema/definition.go
+++ b/common/schema/definition.go
@@ -180,6 +180,8 @@ const (
ColumnDst1stAS
ColumnDst2ndAS
ColumnDst3rdAS
+ ColumnSrcCommunities
+ ColumnSrcLargeCommunities
ColumnDstCommun... | 7 | 7 | 1 | [{"id": "G0", "claim": "The Src/SrcLarge communities columns should be defined but disabled by default and documented in 02-configuration.md so users know how to enable them knowing the information may be incorrect.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
alacritty__alacritty__2664 | alacritty/alacritty | 2,664 | defect | 76dd84bef87f77c67bf5c23ee627163e93786b5d | 2ade2516a980c9bfb5079e72abc9a6651d9bc4f4 | Ignore unsupported CSI sequences | I came from https://github.com/akinomyoga/ble.sh/issues/28, https://github.com/jwilm/alacritty/issues/2652, https://github.com/jwilm/alacritty/issues/2171 .
For details of the problem, please refer to these issues. If it does not support some control functions, it should ignore them rather than triggering random con... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac9d857b775..92b35b2e9cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Debug ref tests are now written to disk regardless of shutdown method
- Cursor color setting with es... | 14 | 9 | 2 | [{"id": "G0", "claim": "Travis CI's clippy fails with 'the function has a cognitive complexity of 32' on csi_dispatch, and the complexity needs to be reduced.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An entry for this change should be adde... | null |
alacritty__alacritty__2985 | alacritty/alacritty | 2,985 | defect | 561063b5606746936ee64d2f25a8b49c05a8d52e | 8bdb87b1e10be55eadb2ad5bbe91950e48e96129 | Fix `CSI Ps M` deleting lines above cursor | Fixes #2984. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 006000b0bdd..3fc0456e904 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -80,6 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Terminal going transparent during visual bell
- Selection not being cleared when sending chars throu... | 2 | 2 | 1 | [{"id": "G0", "claim": "The two conditions in `delete_lines` should be swapped, so the `lines.0 > 0` guard is checked before the scroll-region containment check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A regression test is needed for the ... | null |
alacritty__alacritty__6660 | alacritty/alacritty | 6,660 | defect | d5b2dac73a57ac72c1e9587ee5b53f9ca9f4a6e3 | 6fa773a6a7beb49613a1969b469e1f332442573c | Update winit to 0.28 | Fixes #6644.
Fixes #6558.
Fixes #6515.
Fixes #3187. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9281f20c3da..1130e4b0e6c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Uppercase `-T` short form for `--title`
- Support for horizontal scrolling in mouse mode and alter... | 2 | 2 | 0 | [{"id": "G0", "claim": "winit's `Theme` would presumably need serialize/deserialize to be used directly, and it would be easier to use that enum in the config instead of the string-based decorations_theme_variant with manual string-to-Theme matching added by this PR.", "category": "design", "verdict": "supported", "pri... | null |
alacritty__alacritty__7349 | alacritty/alacritty | 7,349 | defect | 3ffd6c8f26f9788466b9ba95659b8de970a10f08 | c087086132fe3021a3e8546c9fbcb855332232f9 | Add `--option` argument to `create-window` | This patch adds a new CLI parameter to the `create-window` subcommand,
matching the existing `--option` parameter when creating a new Alacritty
instance.
This parameter allows setting up the initial window configuration from
the CLI without having to call `alacritty msg config`, making sure that
all options are ... | diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs
index c9890b9b744..0c4a1ec3e67 100644
--- a/alacritty/src/cli.rs
+++ b/alacritty/src/cli.rs
@@ -1,15 +1,19 @@
use std::cmp::max;
+use std::ops::{Deref, DerefMut};
use std::path::PathBuf;
+use std::rc::Rc;
+use alacritty_config::SerdeReplace;
use clap::{ArgAc... | 5 | 5 | 4 | [{"id": "G0", "claim": "The PR should not use an unsafe `static mut` to track logging initialization; a `OnceCell`/`Atomic` would do the same safely.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The invalid-CLI-option warning is logged so that it becom... | null |
alacritty__alacritty__7519 | alacritty/alacritty | 7,519 | defect | 78fa4d6febe25962be1068562ecaa0465bac445c | 69bd94c32e442e4ba6c088766886a0cd6b4fa908 | cfg-guard tests which rely on the serde feature | Encountered this test failure when updating Debian's alacritty packaging.
<details><summary>test failure when using "--no-default-features"</summary>
```
Compiling alacritty_terminal v0.20.0 (/Users/runner/work/alacritty/alacritty/alacritty_terminal)
error[E0277]: the trait bound `grid::Grid<term::cell::Cell>: ser... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c0a3b788b23..0a0b5f6fe27 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,6 +17,8 @@ jobs:
- uses: actions/checkout@v3
- name: Stable
run: cargo test
+ - name: Stable (no default features)
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests relying on the serde feature should be cfg-guarded more simply: a crate-level `#![cfg(feature = \"serde\")]` in ref.rs instead of the PR's per-item attributes (with a `#[cfg(feature = \"serde\")]` on grid_serde).", "category": "maintainability", "verdict": "supported", "priority": "P2"... | null |
alacritty__alacritty__7729 | alacritty/alacritty | 7,729 | defect | f1853a031d52f6964bbf368d2975767449fc4814 | 044325282420b91f1ed7716b3e6aebd93e7f34f3 | Replace takes into account alias attribute | Fixes #7720 | diff --git a/alacritty_config_derive/src/serde_replace.rs b/alacritty_config_derive/src/serde_replace.rs
index 0a703b4c5a5..41fbbd87616 100644
--- a/alacritty_config_derive/src/serde_replace.rs
+++ b/alacritty_config_derive/src/serde_replace.rs
@@ -98,9 +98,26 @@ fn match_arms<T>(fields: &Punctuated<Field, T>) -> Token... | 4 | 4 | 2 | [{"id": "G0", "claim": "The alias-extraction comment should be reworded to 'Extract `#[config(alias = \"...\")]` attribute values.' (a suggestion block proposes that wording).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using `find` only supp... | null |
alacritty__alacritty__8192 | alacritty/alacritty | 8,192 | defect | 8dfd2e56ad7aaeaf09aaf9f680420cc5988155b0 | 8caaf12eb590f53e49f22f15800009c6ed5b08f3 | Move root config fields to `[general]` section | Some users struggle with TOML, since root options must always be at the top of the file, since they're otherwise associated with the last table.
To avoid misunderstandings, all root-level fields have been removed. A new `general` section was added to allow housing configuration options that do not fit into any more ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 20df64f0dc1..164aedfbbcb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,9 @@ Notable changes to the `alacritty_terminal` crate are documented in its
- Pressing `Alt` with unicode input will now add `ESC` like for ASCII input
- Decorations use opaque style and ... | 4 | 4 | 0 | [{"id": "G0", "claim": "Remove the now-unneeded braces around the cfg(unix) block in cli.rs's override_config, since the new if carries the attribute itself.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Could `alacritty migrate` get a way to h... | null |
alan-turing-institute__trustchain__116 | alan-turing-institute/trustchain | 116 | defect | 9c3f73b243e6adc55b3338646dcbc3a63019795f | 710a7e8512adc6bc32e3860c9c19627210165ef3 | Verifiable presentation API for ION attestor | Closes #59. | diff --git a/trustchain-api/Cargo.toml b/trustchain-api/Cargo.toml
index 9afcb1de..efdccd78 100644
--- a/trustchain-api/Cargo.toml
+++ b/trustchain-api/Cargo.toml
@@ -13,3 +13,7 @@ async-trait = "0.1"
serde_json = "1.0"
ssi = "0.4"
did-ion = "0.1.0"
+futures = "0.3.28"
+
+[dev-dependencies]
+tokio = {version = "1.20... | 21 | 21 | 2 | [{"id": "G0", "claim": "The doc comment on `TrustchainVPAPI::sign_presentation` should read \"Signs a presentation constructing a verifiable presentation.\" instead of \"As a holder issue a verifiable presentation.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
alan-turing-institute__trustchain__125 | alan-turing-institute/trustchain | 125 | defect | b9d0c675b5c0bd15f239d37d95ab656d196c04b3 | 6326fece1482767548e59964f67204e321a85155 | Root event date | Server-side code to support [trustchain-mobile #26](https://github.com/alan-turing-institute/trustchain-mobile/issues/26).
Adds an HTTP endpoint for getting candidate root DIDs (each with a corresponding Bitcoin transaction ID) that were timestamped on a given a calendar date.
Does **not** address the related #13... | diff --git a/trustchain-api/src/api.rs b/trustchain-api/src/api.rs
index 1a77ccb3..601b0706 100644
--- a/trustchain-api/src/api.rs
+++ b/trustchain-api/src/api.rs
@@ -257,7 +257,7 @@ mod tests {
use trustchain_ion::verifier::IONVerifier;
// The root event time of DID documents in `trustchain-ion/src/data.rs... | 11 | 8 | 1 | [{"id": "G0", "claim": "Remove the unnecessary .into() on root_event_time in the CLI verify call, as flagged by clippy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_did_from_suffix body should use format!(\"did:{method_and_network}:{di... | null |
alan-turing-institute__trustchain__151 | alan-turing-institute/trustchain | 151 | defect | b704ea2af20ecf300795a58b1f9c7da970c1c4bb | 8bf2de42a285c4c058f1c5c336edd423231b8b94 | DID resolution including >1kB keys | Closes #148. | diff --git a/trustchain-api/src/api.rs b/trustchain-api/src/api.rs
index e03c27de..0f3d02e4 100644
--- a/trustchain-api/src/api.rs
+++ b/trustchain-api/src/api.rs
@@ -14,7 +14,7 @@ use trustchain_core::{
chain::DIDChain,
holder::Holder,
issuer::{Issuer, IssuerError},
- resolver::{Resolver, ResolverRes... | 9 | 9 | 0 | [{"id": "G0", "claim": "Delete the commented-out #[derive(Error, Debug, PartialEq, Eq, PartialOrd, Ord)] attribute left above KeyManagerError in trustchain-core/src/key_manager.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stale ... | null |
alan2207__bulletproof-react__162 | alan2207/bulletproof-react | 162 | defect | 05992c4e2232991c224c454d4f95fcc4e1d12f71 | 580640e40394763e84363cf96f13a96241412b14 | support filename check | We can also enforce the file naming conventions. For example, you can enforce that all files should be named in `kebab-case`. This can help you to keep your codebase consistent and easier to navigate. | diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index ae91b587..028f7ea9 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -11,6 +11,7 @@ module.exports = {
'generators/*',
],
extends: ['eslint:recommended'],
+ plugins: ['check-file'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
@@ -125,6 +126,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should also enforce a folder naming convention using check-file/folder-naming-convention, in addition to the filename convention it adds.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file-naming-convention d... | null |
alandtse__alexa_media_player__3232 | alandtse/alexa_media_player | 3,232 | defect | a005a5d49d7fa12504457144a21648808193e42c | 081d76fe218d830f5eea256e810a51a2e6a94855 | fix: alexa_media version in log info | - Moved log info from `async_setup_entry` to `async_setup`.
- Logs the correct version info for `alexa_media` and `alexapy`.
- Removed version logging from `config_flow.py`.
- ~~Eliminate deprecated YAML configuration in `async_setup`.~~
Fixes issue #3231
<!-- This is an auto-generated comment: release notes b... | diff --git a/custom_components/alexa_media/__init__.py b/custom_components/alexa_media/__init__.py
index f4e86b6ec..7a701ef94 100644
--- a/custom_components/alexa_media/__init__.py
+++ b/custom_components/alexa_media/__init__.py
@@ -51,6 +51,7 @@
from homeassistant.helpers.dispatcher import async_dispatcher_send
from... | 5 | 3 | 2 | [{"id": "G0", "claim": "async_setup no longer processes YAML configuration, so users with existing alexa_media entries in configuration.yaml lose automatic loading (a breaking change); ensure proper migration guidance is documented and that async_step_import converts YAML configs.", "category": "correctness", "verdict"... | null |
alandtse__alexa_media_player__3238 | alandtse/alexa_media_player | 3,238 | defect | 7ab762b9d7765d69e13fddce06639dbc921770ca | 678974b262846bd342cc6c9b51b52246ffb5efda | chore: release 2025-12-28 |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Documentation**
- Restructured GitHub issue templates with enhanced forms for improved bug reports and feature requests
* **Chores**
- Updated alexapy dependency to 1.29.13
- Added dictor dependency for mo... | diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 2725cb929..000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ""
-labels: ""
-assignees: ""
-... | 9 | 5 | 0 | [{"id": "G0", "claim": "The type check in safe_get uses isinstance(result, type(default)), which accepts a bool result when the default is an int (bool subclasses int) and so behaves inconsistently with the expected type-mismatch semantics; the reviewer asks to use exact type matching or explicitly handle the bool/int ... | null |
alandtse__alexa_media_player__3289 | alandtse/alexa_media_player | 3,289 | defect | 2fa9f46077a79dddf84e431d9366b3a032dea8da | d0cb5aeacc72be8c7c2f4514c6862cc0e4be3026 | fix(config_flow): add missing data_schema to 2fa_key_invalid error form | When AlexapyPyotpInvalidKey is raised during login initialization, async_show_form was called without data_schema parameter. This caused the error form to display without any input fields, leaving users unable to correct their invalid OTP key.
Add data_schema=vol.Schema(self.proxy_schema) to the exception handler, m... | diff --git a/custom_components/alexa_media/config_flow.py b/custom_components/alexa_media/config_flow.py
index 5d72a2ce9..08221a3fa 100644
--- a/custom_components/alexa_media/config_flow.py
+++ b/custom_components/alexa_media/config_flow.py
@@ -301,6 +301,7 @@ async def async_step_user(self, user_input=None):
... | 7 | 2 | 0 | [{"id": "G0", "claim": "The AlexapyPyotpInvalidKey class in tests/test_config_flow.py carries a redundant `pass` statement below its docstring.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The documentation test in tests/test_config_flow.py co... | null |
alandtse__alexa_media_player__3292 | alandtse/alexa_media_player | 3,292 | defect | 995677f712c871547f315eb08d70baa47bfec1c9 | f27f42e41f72df09de18566cd63b8460b9cf6bf7 | chore: resolve ai issues | Fixes these @coderabbit created issues:
- #3276
- #3277
- #3279
- #3280
- #3281
- #3278
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved diagnostics resilience with guarded lazy imports and safe fallbacks when optional redactio... | diff --git a/custom_components/alexa_media/diagnostics.py b/custom_components/alexa_media/diagnostics.py
index 4f8ff9523..2e922b052 100644
--- a/custom_components/alexa_media/diagnostics.py
+++ b/custom_components/alexa_media/diagnostics.py
@@ -6,14 +6,18 @@
from dataclasses import fields, is_dataclass
from datetime... | 6 | 4 | 0 | [{"id": "G0", "claim": "Add a fallback test for async_get_device_diagnostics verifying it falls back to _obfuscate_identifier when alexapy is unavailable, for parity with the hide_email fallback test.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Prefi... | null |
alandtse__alexa_media_player__3372 | alandtse/alexa_media_player | 3,372 | defect | 03399a41ca171d751090daf227dd7f60c4467f25 | a52533505641a6ad4b6efca35cbd3189635656f6 | fix: include/exclude filter handling and restore switch matching | - Fix incorrect filter handling when include/exclude was passed as a string, which could cause unintended matches (e.g. Temperature sensors being excluded).
- Restore filtering for AMP media player switches by reconstructing the legacy "<device> <suffix> switch" name during add_devices(), since HA now derives the fin... | diff --git a/custom_components/alexa_media/helpers.py b/custom_components/alexa_media/helpers.py
index e99f5551b..3b9fb9abf 100644
--- a/custom_components/alexa_media/helpers.py
+++ b/custom_components/alexa_media/helpers.py
@@ -29,19 +29,80 @@
ArgType = TypeVar("ArgType")
+def _norm_filter_token(value: Any) -> st... | 5 | 5 | 0 | [{"id": "G0", "claim": "The `_coerce_filter` helper declares `out: set[str] = set()` identically in two mutually exclusive branches (lines 56 and 64), which some linters flag as a redefinition; declare `out` once before the branches or drop the annotation on the second occurrence.", "category": "maintainability", "verd... | null |
alandtse__alexa_media_player__3450 | alandtse/alexa_media_player | 3,450 | defect | 572177de9d040c910c6fb7a61faf94fd8370659f | b37ed30a4bcd7e9de69a77a23288dc7efdcd7eb0 | chore: release 2026-05-10 |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Optimized cookie-based authentication to skip a full login when valid.
* Bluetooth streaming state detection with automatic playback state updates.
* **Bug Fixes**
* Reauthentication persis... | diff --git a/custom_components/alexa_media/__init__.py b/custom_components/alexa_media/__init__.py
index 67c0feb7c..4c1ceb313 100644
--- a/custom_components/alexa_media/__init__.py
+++ b/custom_components/alexa_media/__init__.py
@@ -16,6 +16,7 @@
import time
from typing import Optional
+import aiohttp
from alexapy... | 3 | 3 | 2 | [{"id": "G0", "claim": "Build the cookie-auth bootstrap probe URL from the configured account/login domain instead of hardcoding https://alexa.amazon.com, since accounts configured against other Amazon regions will never take the cookie-auth fast path and will always drop back to the full login flow.", "category": "cor... | null |
alandtse__tesla__127 | alandtse/tesla | 127 | defect | 33663fb9942d7d6f0ef4a119446132527a090e10 | 5cf43caf7a5ec7961ce877d2996a8d3fd309be88 | Set polling policy in configuration | This is a follow up of https://github.com/zabuldon/teslajsonpy/pull/167
Polling Policy can now be set when configuring the integration.
I also added quite extensive documentation on how polling works and what the different knobs will influence.. | diff --git a/custom_components/tesla_custom/__init__.py b/custom_components/tesla_custom/__init__.py
index df1fb1fb..857bce28 100644
--- a/custom_components/tesla_custom/__init__.py
+++ b/custom_components/tesla_custom/__init__.py
@@ -28,9 +28,11 @@
from .const import (
CONF_EXPIRATION,
CONF_WAKE_ON_START,
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "pyproject.toml also needs its teslajsonpy dependency updated (with a poetry update run) to match the manifest.json bump to teslajsonpy 1.5.0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "pytest should be pulled out of .pre-... | null |
alandtse__tesla__391 | alandtse/tesla | 391 | defect | 1f60bd5e6aad79910bfb4ef1683bc8f2ecb90e02 | 3873b9d1d9a474712758e024dab2d486ba0b26e1 | fix: default pressure from Bar to PSI | closes https://github.com/alandtse/tesla/issues/388 | diff --git a/custom_components/tesla_custom/sensor.py b/custom_components/tesla_custom/sensor.py
index 12dec02a..7da0551d 100644
--- a/custom_components/tesla_custom/sensor.py
+++ b/custom_components/tesla_custom/sensor.py
@@ -19,7 +19,7 @@
SPEED_MILES_PER_HOUR,
TEMP_CELSIUS,
TIME_HOURS,
- PRESSURE_BA... | 2 | 2 | 1 | [{"id": "G0", "claim": "The TPMS pressure conversion should use Home Assistant's built-in unit conversion utility (e.g. PressureConverter) instead of a hand-rolled BAR_TO_PSI constant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rounding applied b... | null |
alanjds__drf-nested-routers__97 | alanjds/drf-nested-routers | 97 | defect | d364ce86142b812c39306e389ecfa8ab72121460 | 39c0e3b5cfd729adcb918467ca0b7e4f3e2a7cfb | Fix nested multi-level lookups | When trying to use nested multi-level lookups in my application, I encountered a couple of issues with it.
Initially, there was this error:
```
Exception Type: FieldError at /api/enrollments/studies/
Exception Value: Cannot resolve keyword 'faculty_pk' into field. Choices are: faculty, faculty_id, id
```
I thi... | diff --git a/rest_framework_nested/relations.py b/rest_framework_nested/relations.py
index 1a942180..d7de79b5 100644
--- a/rest_framework_nested/relations.py
+++ b/rest_framework_nested/relations.py
@@ -58,6 +58,9 @@ def get_url(self, obj, view_name, request, format):
return self.reverse(view_name, kwargs=kw... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test to the PR that demonstrates the wrong behavior, so the nested multi-level lookup fix will not bite again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Travis fails flake8 on the extra blank line at tests/serializers/... | null |
alastair__python-musicbrainzngs__183 | alastair/python-musicbrainzngs | 183 | defect | afa9784fb7df756fd6ac257309c55558ec5ede7f | 7221839b4e0b3ffbaeeb29fc164c4a41abdca1d7 | Parse support for instrument requests | https://github.com/alastair/python-musicbrainzngs/issues/182 and https://github.com/alastair/python-musicbrainzngs/issues/142
Still need tests, and parsing of search results (`instrument-list`).
Documentation http://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#Browse mentions browse instruments by releas... | diff --git a/musicbrainzngs/mbxml.py b/musicbrainzngs/mbxml.py
index c96bf7a..cb0b39f 100644
--- a/musicbrainzngs/mbxml.py
+++ b/musicbrainzngs/mbxml.py
@@ -135,6 +135,7 @@ def parse_message(message):
result = {}
valid_elements = {"area": parse_area,
"artist": parse_artist,
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new 'instrument' entry in VALID_INCLUDES should also list the annotation, tag, and rating includes that other entities support.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alchemmist__lazy-tmux__17 | alchemmist/lazy-tmux | 17 | defect | a36e1115116f9e9af4f5afde3a27b842892b36aa | c7ec235f68ddf5c69b7f4f73b7127d8679c7f3f8 | Sorting of sessions in picker | Close: #7
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* New picker sorting options (--session-sort, --window-sort) to customize session/window ordering
* Sessions record last-access timestamps for improved recency-based sorting and restor... | diff --git a/README.md b/README.md
index 659c242..26c7577 100644
--- a/README.md
+++ b/README.md
@@ -68,12 +68,71 @@ After reloading tmux config (`tmux source-file ~/.tmux.conf`):
```bash
lazy-tmux save [--all] [--session NAME] [--data-dir DIR]
lazy-tmux restore --session NAME [--switch=true]
-lazy-tmux picker [--fz... | 2 | 2 | 1 | [{"id": "G0", "claim": "splitSortExpr silently drops empty chunks, so malformed sort expressions like `name,,captured` are accepted; instead it should fail fast and surface the input error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a focuse... | null |
alchemmist__lazy-tmux__23 | alchemmist/lazy-tmux | 23 | defect | f9215da3c85bbac9af928d8260418d458e9bbc56 | 004dd2057236d55b034cbf98eccdd4fd4c36569e | Fix picker window size adaptive | Close #22
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Dynamic, width-aware table layout for the picker: columns adapt to viewport width, required columns remain visible, optional columns appear as space permits. Rendering now uses a singl... | diff --git a/internal/app/picker.go b/internal/app/picker.go
index e823fb8c..7936056a 100644
--- a/internal/app/picker.go
+++ b/internal/app/picker.go
@@ -109,9 +109,10 @@ func (m pickerModel) View() string {
var b strings.Builder
b.WriteString(m.queryInput.View())
b.WriteString("\n")
- itemW := m.itemWidth()
+ l... | 2 | 2 | 1 | [{"id": "G0", "claim": "When totalWidth is smaller than the required columns' minimum widths, each active column is initialized to MinWidth unconditionally and extra goes negative with nothing reducing the widths, so rendered rows can exceed the width budget in narrow layouts.", "category": "correctness", "verdict": "s... | null |
alchemmist__lazy-tmux__24 | alchemmist/lazy-tmux | 24 | defect | a77f9ad14592552ab5e581eafc0a63fbe526e8eb | d3b44c175895d447d2b5f08d157a6ac96542e68b | Setup saving shell logs in pane | Close #14
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Optional per-pane shell scrollback capture and replay via --scrollback (disabled by default) and --scrollback-lines (default 5000); saved sidecars are restored during session playback.... | diff --git a/README.md b/README.md
index 26c75770..fa82b2ac 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@
- `daemon` mode for periodic autosave (single-instance lock per tmux socket).
- `picker` with built-in TUI tree (`session -> windows`) and fuzzy search in a tmux popup (default).
- Optional `fzf` pick... | 8 | 8 | 7 | [{"id": "G0", "claim": "Validate --scrollback-lines at CLI parse time instead of accepting non-positive values and silently coercing them later, in both runSave and runDaemon.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "hydrateScrollback could re... | null |
alchemmist__lazy-tmux__52 | alchemmist/lazy-tmux | 52 | defect | dce6e809c63f5baedc3e267f47e0d5d1f0fd8258 | 2f55cd4bc801837876459915da8b144425773a9b | Setup releaseing and installation | Close: #21
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* fzf-only binary variant as an alternative to the TUI picker.
* Installer script with --fzf-engine to download/install the chosen binary.
* README: expanded Installation section an... | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..7e77768a
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,29 @@
+name: release
+
+on:
+ push:
+ tags:
+ - 'v*.*.*'
+
+permissions:
+ contents: write
+
+jobs:
+ goreleaser:
+ runs-on:... | 9 | 9 | 7 | [{"id": "G0", "claim": "install.sh line 2 uses `set -euo pipefail` under #!/bin/sh, which makes the installer exit immediately on dash/ash systems and breaks the new install path before argument parsing runs.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl... | null |
alchemmist__lazy-tmux__63 | alchemmist/lazy-tmux | 63 | defect | 90ded3b83423ee0b846db9cf961ee6d75195f339 | d6eaf93a4d06faaad7cbaadb9d9c2aeedfd81f8a | Add sleep/wakeup interfaces to cli and TUI picker | Close #61
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added wakeup and sleep CLI commands to restore or save+close sessions; TUI picker now exposes Wakeup and Sleep actions with Alt+W / Alt+S shortcuts.
* **Documentation**
* CLI help a... | diff --git a/cmd/lazy-tmux/main.go b/cmd/lazy-tmux/main.go
index a7b0332..44dcae0 100644
--- a/cmd/lazy-tmux/main.go
+++ b/cmd/lazy-tmux/main.go
@@ -66,6 +66,16 @@ func runCLI(args []string, stdout, stderr io.Writer) int {
case "setup":
setupConfigTo(stdout)
return 0
+ case "wakeup":
+ if err := runWakeup(cfg,... | 5 | 5 | 3 | [{"id": "G0", "claim": "The wakeup help text is misleading: line 317 says wakeup switches to the session, but the implementation restores it without switching clients, and the suggested wording fix should be applied.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
alchemmist__lazy-tmux__92 | alchemmist/lazy-tmux | 92 | defect | 9b781f0ba7f564397900126dcfad3304507df0f3 | f5774a86a4779a3ea1f5a9830c0eb6b774320fd5 | Add `forget` command | Close #79
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added a "forget" CLI command to remove stored sessions from disk; supports --help and requires a session name.
* App-level support to delete persisted sessions and associated storage... | diff --git a/cmd/lazy-tmux/main.go b/cmd/lazy-tmux/main.go
index 85eeb6b..2c56d7b 100644
--- a/cmd/lazy-tmux/main.go
+++ b/cmd/lazy-tmux/main.go
@@ -94,6 +94,13 @@ func runCLI(args []string, stdout, stderr io.Writer) int {
return writeFatalErr(stderr, err)
}
+ return 0
+ case "forget":
+ err := runForget(cfg... | 3 | 3 | 2 | [{"id": "G0", "claim": "TestForgetNonexistent should use a temp DataDir instead of the default config/storage path so it cannot leak state across runs or touch real local data.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Forget should not gate deleti... | null |
alchemmist__lazy-tmux__94 | alchemmist/lazy-tmux | 94 | defect | fc9c861eeb69340c8f40900b9794941dd442b30f | f34d03374b94b2a121c48782b7485465e2a7f436 | Refactor tests. Split unit and integration with skip | Close #78
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Tests**
* Many tests now skip by default unless integration mode is enabled; runtime checks gate tests on external tools (tmux, fzf).
* Added test helpers to make integration/tool gating consistent.
... | diff --git a/.gitignore b/.gitignore
index 46f5d209..f9f46a8e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ dist/
coverage.out
cover.out
.DS_Store
+cover.html
diff --git a/Makefile b/Makefile
index c23dee44..4dcd98af 100644
--- a/Makefile
+++ b/Makefile
@@ -7,48 +7,40 @@ MAKEFLAGS += --no-builtin-rules
... | 8 | 7 | 5 | [{"id": "G0", "claim": "Basic CLI contract tests in cmd/lazy-tmux/main_test.go (argument validation, help, store-only flows) should run in the default unit suite instead of being gated behind SkipIfNotIntegration.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
alchemy-run__alchemy-effect__241 | alchemy-run/alchemy-effect | 241 | defect | 933190673c125299fc2be4ac8b502f9b45bb26aa | 3d313276681a1428c44982c2832fe87b3dcfb334 | feat(cloudflare/r2): add bucket custom domains | Adds R2 bucket custom-domain support to the existing Cloudflare R2Bucket resource.
- accepts `domains` as a single custom domain or an array
- supports `{ zoneId }`, zone ID strings, and hostname strings for zone selection
- creates, updates, and removes only domains tracked by the bucket resource state
- recreates a ... | diff --git a/packages/alchemy/src/Cloudflare/R2/R2Bucket.ts b/packages/alchemy/src/Cloudflare/R2/R2Bucket.ts
index cece512493..ad618945d9 100644
--- a/packages/alchemy/src/Cloudflare/R2/R2Bucket.ts
+++ b/packages/alchemy/src/Cloudflare/R2/R2Bucket.ts
@@ -1,7 +1,10 @@
import * as r2 from "@distilled.cloud/cloudflare/r2... | 11 | 10 | 3 | [{"id": "G0", "claim": "The read() block that lists and filters existing custom domains can probably be removed entirely since its result is never actually read.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The per-domain delete loop and the apply... | null |
alchemy-run__alchemy-effect__276 | alchemy-run/alchemy-effect | 276 | defect | 38319fa09e00297bc1921a4434f3efa6003fbe19 | 26baa82243b77f45150d9fbb6f426977830cc5e0 | feat(cloudflare): empty r2 bucket on destroy | Cloudflare's `deleteBucket` rejects non-empty buckets, so destroying an `R2Bucket` with objects in it currently fails. This drains the bucket first.
```ts
const emptyBucket = (bucketName, jurisdiction) =>
r2.listObjects
.items({ accountId, bucketName, cfR2Jurisdiction: jurisdiction, perPage: 1000 })
.pipe(
... | diff --git a/bun.lock b/bun.lock
index 7572e146ff..cfca7f4e5b 100644
--- a/bun.lock
+++ b/bun.lock
@@ -451,7 +451,7 @@
"@cloudflare/workers-types": "^4.20250805.0",
"@distilled.cloud/aws": "^0.18.2",
"@distilled.cloud/axiom": "^0.18.2",
- "@distilled.cloud/cloudflare": "^0.18.2",
+ "@distilled.clou... | 5 | 5 | 0 | [{"id": "G0", "claim": "The test should use the distilled SDK putObject instead of bypassing the SDK and signing raw fetch with the API token.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multi-line explanatory comment about draining the bucket bef... | null |
alecthomas__chroma__120 | alecthomas/chroma | 120 | defect | 563aadc53c53292c4c1def1b0a547be498bba83e | e77ae1c5d76f49f2ef04b7bc09f5cd2ac350bde3 | Render HTML class prefixes. | Currently `html.ClassPrefix()` sets `f.prefix`, but nothing in the rendering path reads this value. This PR emits the prefix when rendering element class names and the CSS styles. | diff --git a/formatters/html/html.go b/formatters/html/html.go
index ac419f4c6..9d17c327f 100644
--- a/formatters/html/html.go
+++ b/formatters/html/html.go
@@ -243,11 +243,11 @@ func (f *Formatter) class(t chroma.TokenType) string {
for t != 0 {
cls, ok := chroma.StandardTypes[t]
if ok {
- return cls
+ ret... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the HTML class-prefix behaviour introduced by this pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__chroma__1223 | alecthomas/chroma | 1,223 | defect | dccba78ffcb6dac5d3d53e39f4ffa81369cd8dc1 | f9dcb36d06b638c1b32d5079e5b071102244fdfb | styles: case-insensitive style registration and lookup | Normalize style names to lowercase during registration and lookup to provide case-insensitive access across the library, CLI, and web interface.
Changes:
- Normalize keys to lowercase in `styles.Register()`.
- Convert input names to lowercase in `styles.Get()`.
- Update `cmd/chroma` and `cmd/chromad` to use the... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e89156542..a46ab11ad 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,7 +11,11 @@ jobs:
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- uses: cashapp/activate-hermit@e49f5... | 1 | 1 | 0 | [{"id": "G0", "claim": "In cmd/chroma/main.go's selectStyle, switch to the existing styles.Get() helper instead of the direct styles.Registry lookup, and delete main_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__chroma__300 | alecthomas/chroma | 300 | defect | 3aaf3e542f6703b0811a248571839856d4a6de03 | bcba8596de800d247ffd86c052284560b6e9779e | Add WithPreWrapper option | I'm working on cleaning up Hugo's highlighting code and use https://github.com/yuin/goldmark-highlighting. We have had some ugly replace logic to get the "correct" HTML wrappers. We tried to fix this with a "wrapper func" in goldmark-highlighting, but I totally forgot the `LineNumbersInTable` option I assume that `Prev... | diff --git a/formatters/html/html.go b/formatters/html/html.go
index 3f68a7db9..6631c6864 100644
--- a/formatters/html/html.go
+++ b/formatters/html/html.go
@@ -26,7 +26,18 @@ func WithClasses() Option { return func(f *Formatter) { f.Classes = true } }
func TabWidth(width int) Option { return func(f *Formatter) { f.ta... | 1 | 1 | 1 | [{"id": "G0", "claim": "Change the PreWrapper methods to just return a string rather than take a writer, and rename them to Start and End.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__chroma__420 | alecthomas/chroma | 420 | defect | 9eb358bc3ff83f00328f08fa5634f931664eb409 | 2e09afc8c0425b6dc6d926380bc924acde3b49d9 | Make linkeable lines a link to themselves | Currently its already possible to make line lumbers linkeable. Getting
such a link however requires the end user to look at the pages source
and then to manually edit the URL, which is not a great UX.
This PR changes that to make the line numbers a link to themselves, so
clicking on them gives a link to that line... | diff --git a/README.md b/README.md
index fc33a2e6f..fb22a4fa2 100644
--- a/README.md
+++ b/README.md
@@ -183,7 +183,7 @@ following constructor options:
- `ClassPrefix(prefix)` - prefix each generated CSS class.
- `TabWidth(width)` - Set the rendered tab width, in characters.
- `WithLineNumbers()` - Render line numbe... | 2 | 2 | 0 | [{"id": "G0", "claim": "The fmt.Sprintf() formatting of the line number is identical in both call locations, so it should be pushed down into lineWithLinkIfNeeded.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The full-output equality assertion... | null |
alecthomas__chroma__497 | alecthomas/chroma | 497 | defect | dcfd826b25e6c55af6c665514e72a5813a77b03b | 58a1d260ba7e2790e7201bd4a1cab5ec5ea0e179 | Allow several tests for a same lexer | This PR makes it possible to have several test files for a same lexer, by placing them in a directory—named after the lexer—in `testdata/`.
The underlying reasons for this PR are:
* make it easier to create independent tests for a same lexer, and therefore improve the overall robustness;
* make debugging easier in... | diff --git a/lexers/README.md b/lexers/README.md
index 2421710ef..b4ed292b1 100644
--- a/lexers/README.md
+++ b/lexers/README.md
@@ -3,6 +3,9 @@
The tests in this directory feed a known input `testdata/<name>.actual` into the parser for `<name>` and check
that its output matches `<name>.exported`.
+It is also possi... | 1 | 1 | 0 | [{"id": "G0", "claim": "TestLexers should use filepath.Glob(\"testdata/*.actual\") instead of the manual ReadDir loop with extension filtering, which would be simpler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__chroma__508 | alecthomas/chroma | 508 | defect | 4d453005571511d520a74ee5c12640efa80fb2ed | 3988971ef48d88deae0d1c0aebb366c2b704a046 | Add set text analyser for MySQL lexer | This PR adds text analysis to MySQL lexer. This is an exact port of pygments text analysis implementation (https://github.com/pygments/pygments/blob/master/pygments/lexers/sql.py#L747).
Testing follows the standard chroma approach for testing lexer tokenization.
------------------
Hey Alec, since we talked la... | diff --git a/lexers/lexers_test.go b/lexers/lexers_test.go
index 6fbb90003..79816d96f 100644
--- a/lexers/lexers_test.go
+++ b/lexers/lexers_test.go
@@ -5,6 +5,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
+ "strconv"
"strings"
"testing"
@@ -79,6 +80,11 @@ func TestLexers(t *testing.T) {
assert.NoError(t... | 4 | 4 | 0 | [{"id": "G0", "claim": "The reviewer asks that the new test start using Glob() for enumerating test files, as he has been meaning to switch the lexer tests to.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test body duplicates logic that appears ag... | null |
alecthomas__chroma__636 | alecthomas/chroma | 636 | defect | 7cc13cf2323a3899c9389fdd3b6ab33c299b425a | 938b98b3a4a82240f16edd0c6b147f54671e3b90 | [html formatter] Add option to let users provide custom CSS styles | Example:
``` go
WithCustomCSS(map[chroma.TokenType]string{chroma.Line: `display: inline;`})
```
Should fix the second issue of #617!
This with #618 should fix both issues of #617 unless I missed something. | diff --git a/formatters/html/html.go b/formatters/html/html.go
index e2fb6f995..52577da2f 100644
--- a/formatters/html/html.go
+++ b/formatters/html/html.go
@@ -25,6 +25,13 @@ func WithClasses(b bool) Option { return func(f *Formatter) { f.Classes = b } }
// WithAllClasses disables an optimisation that omits redundant... | 2 | 1 | 1 | [{"id": "G0", "claim": "The custom-CSS lookup should walk the token hierarchy (t.SubCategory() and t.Category()) so that custom CSS can be applied to an entire category or subcategory of tokens, e.g. `Text` or `Comment`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
alecthomas__chroma__662 | alecthomas/chroma | 662 | defect | cde381803aa13d950a5e33d50cd952b4fd995318 | 08d12428c2c11916e063d7d14f47a1098c36cf28 | Add Colour.ClampBrightness and StyleBuilder.Transform. | These functions can make it easier to to update a style's
contrast when viewed against light and dark backgrounds.
See #353.
Also avoid a segfault when Get is called on a StyleBuilder
that was created using NewStyleBuilder (as opposed to
Style.Builder). | diff --git a/colour.go b/colour.go
index 15d794ce2..309868777 100644
--- a/colour.go
+++ b/colour.go
@@ -92,7 +92,7 @@ func (c Colour) Brighten(factor float64) Colour {
return NewColour(uint8(r), uint8(g), uint8(b))
}
-// BrightenOrDarken brightens a colour if it is < 0.5 brighteness or darkens if > 0.5 brightness... | 1 | 1 | 0 | [{"id": "G0", "claim": "ClampBrightness should not be a method on Style creating a secondary code path for deriving a style; that functionality should live as a Transform function on StyleBuilder, the established pattern for creating a new style from an existing one.", "category": "design", "verdict": "supported", "pri... | null |
alecthomas__chroma__869 | alecthomas/chroma | 869 | defect | 9ae4daed01cdc32a292c4ba3901d83ec6dcff8c8 | 6af3b9f49d13ac8b527a071e17c5cd7e1af05c6b | Make `tty_indexed.go` respond to `None` like `tty_truecolour.go` | Before this change, asking `tty_indexed.go` for the `None` type ("No highlighting") returned an empty string.
With this change in place, asking `tty_indexed.go` for the `None` type returns (the closest it can get to) the same colour as `tty_truecolor.go`.
Relates to https://github.com/walles/moar/issues/161#issue... | diff --git a/formatters/tty_indexed.go b/formatters/tty_indexed.go
index 2393f58da..d383d9850 100644
--- a/formatters/tty_indexed.go
+++ b/formatters/tty_indexed.go
@@ -242,12 +242,21 @@ func (c *indexedTTYFormatter) Format(w io.Writer, style *chroma.Style, it chroma
theme := styleToEscapeSequence(c.table, style)
f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should not rely on an existing registry style (\"gruvbox\"); instead, a style should be created specifically for this test using the StyleBuilder.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__entityx__17 | alecthomas/entityx | 17 | defect | fa9296278020834d660c9fcc05c32c719263fce3 | 9119c560108b4640e4e55e91d9066ec59d23e251 | Removed boost as a primary dependency | (No idea how I fixed the line endings!)
Boost is now removed as a primary dependency - it is still required for benchmarks and python.
| diff --git a/.travis.yml b/.travis.yml
index 5b5024f..611553a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,6 @@ before_install:
- sudo apt-add-repository -y ppa:jkeiren/ppa
- if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- sudo apt-get update -qq
- - sudo apt-get ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Move the -stdlib=libc++ compile test from the deleted CheckCXX11SharedPtr.cmake into the main CMakeLists.txt (where, with Boost gone, it could largely be automatic) instead of dropping it, since without it EntityX won't build on OSX, and nor will gtest.", "category": "design", "verdict": "suppor... | null |
alecthomas__entityx__76 | alecthomas/entityx | 76 | defect | a71d2eebe4ea615b3650d999f9c18110390455e1 | 38a9e1d2b4d297bd4e3302cccea56d97b84326a4 | Add SystemManager::update_all() Method | _work for #74_
- Added an `updateAll()` method to the `SystemManager` that updates all systems in the manager.
- Added a test for `SystemManager::updateAll()`.
| diff --git a/entityx/System.cc b/entityx/System.cc
index 278629e..fb020fd 100644
--- a/entityx/System.cc
+++ b/entityx/System.cc
@@ -17,6 +17,13 @@ BaseSystem::Family BaseSystem::family_counter_;
BaseSystem::~BaseSystem() {
}
+void SystemManager::updateAll(TimeDelta dt) {
+ assert(initialized_ && "SystemManager::c... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename SystemManager::updateAll() to update_all() for consistency with the rest of the naming conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment describing what the new update_all() method does.", "... | null |
alecthomas__kingpin__106 | alecthomas/kingpin | 106 | defect | 8cccfa8eb2e3183254457fb1749b2667fbc364c7 | 0b7f9746614a165c1ed9f54b85f5ed4e98745316 | Autocomplete a command's args | This change handles autocompleting scenarios like `program command <tab>` where `command` has arguments with completion options or an action-fn. For ex, if git used kingpin, `git checkout <tab>` could complete branch names.
| diff --git a/app.go b/app.go
index 9909131..f31ecd5 100644
--- a/app.go
+++ b/app.go
@@ -670,10 +670,10 @@ func (a *Application) completionOptions(context *ParseContext) []string {
}
}
return options
- } else {
- // Perform completion for sub commands.
- return target.CmdCompletion()
}
+
+ // Perform comp... | 3 | 2 | 1 | [{"id": "G0", "claim": "Since args are positional (unlike flags), at the point after the command name the completer should be completing only arg-1, which has no hints, so the arg-2/arg-3 hints the new test case expects should not be offered there.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
alecthomas__kingpin__196 | alecthomas/kingpin | 196 | defect | 0319b142a9acebc100fce9a4a63a355b92762fdc | bc0dcfcadfd438da97875c0cceb3ced5f0ab3062 | Add optional subcommands | Also introduces a helper function in the ParseContext that determines
if a ParseElement is the currently executing command. | diff --git a/app.go b/app.go
index adaf950..acc8ab1 100644
--- a/app.go
+++ b/app.go
@@ -465,7 +465,10 @@ func (a *Application) setValues(context *ParseContext) (selected []string, err e
}
}
- if lastCmd != nil && len(lastCmd.commands) > 0 {
+ if lastCmd == nil || lastCmd.optionalSubcommands {
+ return
+ }
+ if... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new `if cmd.OptionalSubcommands` branch in FlattenedCommands might need an `else`, so that a command is not also appended by the following `len(cmd.Commands) == 0` check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tes... | null |
alecthomas__kingpin__313 | alecthomas/kingpin | 313 | defect | f024f0c4376385bf6318d43c2a6937ccf6253fea | e95823f1d2a270cc42e615a2d3216eb97e38dace | Add env var to --help output for flags and args | Fixes #270 | diff --git a/model.go b/model.go
index 035d536..cc69676 100644
--- a/model.go
+++ b/model.go
@@ -90,6 +90,13 @@ func (f *FlagModel) FormatPlaceHolder() string {
return strings.ToUpper(f.Name)
}
+func (f *FlagModel) HelpWithEnvar() string {
+ if f.Envar == "" {
+ return f.Help
+ }
+ return fmt.Sprintf("%s (env var... | 1 | 1 | 0 | [{"id": "G0", "claim": "The env-var suffix in the help text produced by FlagModel.HelpWithEnvar and ArgModel.HelpWithEnvar should be `($VAR)` instead of `(env var: VAR)`, because it is shorter and still clear.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alecthomas__kingpin__99 | alecthomas/kingpin | 99 | defect | 46aba6af542541c54c5b7a71a9dfe8f2ab95b93a | 02d3a222768e553dd26891a596e7c302741fc31b | Add Bash Completion Support | I've implemented deep bash completion integration within the library. Work towards #75. A bash completion script can call into any tool using Kingpin by using a new flag `--help-bash-completion` as the first argument, followed by subsequent user-entered arguments.
Opening this PR to get some eyes on it, and see how ... | diff --git a/README.md b/README.md
index d2e1358..3dba398 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@
- [Default Values](#default-values)
- [Place-holders in Help](#place-holders-in-help)
- [Consuming all remaining arguments](#consuming-all-remaining-arguments)
+ - [Bash/ZSH Shell Completion](#ba... | 9 | 6 | 2 | [{"id": "G0", "claim": "The entirety of the completion script should be generated by Kingpin itself (e.g. via a --completion-script-bash flag) rather than shipped as a separately installed script.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The reviewer ... | null |
alecthomas__kong__12 | alecthomas/kong | 12 | defect | ab5cf7e6ef7323c2c6726612f06181833ed123b4 | c03a8973c767301d1e64c1b5a7ff786a503c4b46 | Kong tag PR fixes | A continuation of PR https://github.com/alecthomas/kong/pull/10 | diff --git a/build.go b/build.go
index 2e70d9d7..b3299cc1 100644
--- a/build.go
+++ b/build.go
@@ -61,11 +61,7 @@ func buildNode(v reflect.Value, seenFlags map[string]bool, cmd bool) *Node {
name = strings.ToLower(dashedString(ft.Name))
}
- tag, err := parseTag(fv, ft.Tag.Get("kong"))
- if err != nil {
- f... | 3 | 3 | 1 | [{"id": "G0", "claim": "TestParseHandlingBadBuild should restore the original os.Args after running, just in case.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parseCSV should use the map[string]string{} literal instead of make(map[string]string) when... | null |
alecthomas__kong__169 | alecthomas/kong | 169 | defect | 9c81441ae0020a12d3d8f315f3650e72e77f35f2 | 1963c5dcd3a03c7f14f601bfe1bdafdf2c96b57a | Fixes #125: Support custom per-mapper placeholder text | Fixes #125
This allows things like having the placeholder text be `--config=/path/to/file or "-"` or listing enumerations like `--level=trace|debug|info|warn`, dates like `--start-time="2000-11-01 23:00:00"` etc. None of these are implemented out of the box - this is only for new custom mappers.
To use this imp... | diff --git a/help.go b/help.go
index b0fc81d1..0e1d4d91 100644
--- a/help.go
+++ b/help.go
@@ -65,6 +65,11 @@ type HelpProvider interface {
Help() string
}
+// PlaceHolderProvider can be implemented by mappers to provide custom placeholder text.
+type PlaceHolderProvider interface {
+ PlaceHolder() string
+}
+
//... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new PlaceHolderProvider interface should pass the *kong.Flag through to PlaceHolder(), since users will likely need it to format the placeholder.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__kong__252 | alecthomas/kong | 252 | defect | 7533b11d0669e164d6a73834e219fa8c759f27f6 | db384070b0ef013b688babb502501d5ddbbaeea4 | Add ChangeDirFlag to allow changing the current working directory | It allows one to do have something like `git -C` does. | diff --git a/util.go b/util.go
index 154aebcc..af381919 100644
--- a/util.go
+++ b/util.go
@@ -2,6 +2,8 @@ package kong
import (
"fmt"
+ "os"
+ "reflect"
)
// ConfigFlag uses the configured (via kong.Configuration(loader)) configuration loader to load configuration
@@ -33,3 +35,20 @@ func (v VersionFlag) Befor... | 2 | 1 | 0 | [{"id": "G0", "claim": "The working-directory side effect would be better placed in an AfterApply() hook than in Decode().", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename ChangeToFlag to ChangeDirFlag so the name is clearer.", "category": "maintainab... | null |
alecthomas__kong__262 | alecthomas/kong | 262 | defect | 76d5ed9ac1061ed237f42b2810d0efee10da2a97 | 7bf3c817956eb714aa2fbd9bd91bdc720db867de | Cmd can be passthrough now, too | Fixes #253. | diff --git a/README.md b/README.md
index de49d9b7..e15ef2a6 100644
--- a/README.md
+++ b/README.md
@@ -474,7 +474,7 @@ Tag | Description
`envprefix:"X"` | Envar prefix for all sub-flags.
`set:"K=V"` | Set a variable for expansion by child elements. Multiples can occur.
`embed:""`... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new passthrough validation error messages in build.go say \"placeholder command\" where they should say \"passthrough command\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__kong__32 | alecthomas/kong | 32 | defect | a6ce719390d3ddafc7c3697367f7599f07cdd653 | 51a2863d6e46868454981e861fd6498be6a9bb88 | feat: add a command tree help view | Following up #29 and #30, I noticed that the default help looks quite duplicative since only the help text of the last command in chain is viewed. I needed an option to also show the help text of the command nodes in an appropriate way. This is what I came up with.
It introduces an additional help option that overr... | diff --git a/help.go b/help.go
index d640efb3..fb43d17e 100644
--- a/help.go
+++ b/help.go
@@ -37,6 +37,9 @@ type HelpOptions struct {
// Write help in a more compact, but still fully-specified, form.
Compact bool
+
+ // TreeView writes command chains in a tree structure instead of listing them separately.
+ Tree... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new HelpOptions field \"TreeView\" should just be named \"Tree\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded \"|-\" tree prefix looks bad; the reviewer asked whether it was tried with just spaces.", "category... | null |
alecthomas__kong__35 | alecthomas/kong | 35 | defect | 0548c6b1afaea7616098cec708d9bbf49eef2cd6 | 925777cee9b1b0105de46453f3ba2d9cba3dc62e | XOR groups for flags. | Prevents more than one flag from being used at once within an xor group:
```
var cli struct {
One bool `xor:"group"`
Two string `xor:"group"`
}
``` | diff --git a/README.md b/README.md
index 68a8afb8..c0e5bcc1 100644
--- a/README.md
+++ b/README.md
@@ -403,6 +403,7 @@ Tag | Description
`sep:"X"` | Separator for sequences (defaults to ","). May be `none` to disable splitting.
`enum:"X,Y,..."` | Set of valid values allowed for t... | 3 | 2 | 1 | [{"id": "G0", "claim": "The XOR duplicate check walks all paths so xor groups can conflict across subcommands, which may cause collisions when composing hierarchies of flags/commands; a non-hierarchical xor restricted to the same scope (same command) is preferable.", "category": "design", "verdict": "supported", "prior... | null |
alecthomas__kong__394 | alecthomas/kong | 394 | defect | 815ba68265f037d13e032ba5617b3b37b4a5e41c | ea972dd6c755831b55107ff6a3e5a9a6527fbaa3 | Fix Windows tests, verify in CI | This adds testing against Windows to CI.
Hermit doesn't support Windows,
so the setup for that is done with GitHub Actions.
The following additional fixes were needed:
- filecontent mapper returned ioutil.ReadAll error as-is.
This is less informative on Windows when the source is a directory:
"Invalid function."
... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 334898cd..0d34ae4c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,9 +12,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
- run: ./bin/hermit env -r >> $GITHUB_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Windows mapper test could use assert.NotZero() instead of assert.True(t, cli.File != nil, ...) for the non-nil assertion, if the author prefers.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alecthomas__kong__409 | alecthomas/kong | 409 | defect | 30e84613fe34bbc57e9421303b14af459d845f74 | e17f43ddbd1e7a0ec95312041c583e057ac19878 | Support aliases for flags | Fixes #303
Aliases are currently only supported for sub-commands, but they're useful for flags as well. E.g., when migrating from an old flag name to a new flag name, while still supporting the old value. | diff --git a/README.md b/README.md
index ba8275bd..22e00f06 100644
--- a/README.md
+++ b/README.md
@@ -566,7 +566,7 @@ Both can coexist with standard Tag parsing.
| `default:"1"` | On a command, make it the default. ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the newCandidate closure in parseFlag and just inline the candidates = append(candidates, s) calls.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix up the linting issues in the pull request's added code before i... | null |
alecthomas__kong__416 | alecthomas/kong | 416 | defect | 30e84613fe34bbc57e9421303b14af459d845f74 | 5ff1bd1262883e4accaf244355760d7fd61fdc5d | feat: Add info about optional flags to usage | Closes #413 | diff --git a/help_test.go b/help_test.go
index 8e07aedb..8e5efb18 100644
--- a/help_test.go
+++ b/help_test.go
@@ -51,7 +51,7 @@ func TestHelpOptionalArgs(t *testing.T) {
assert.NoError(t, err)
})
assert.True(t, exited)
- expected := `Usage: test-app [<one> [<two>]]
+ expected := `Usage: test-app [<one> [<two>]]... | 1 | 1 | 0 | [{"id": "G0", "claim": "The summary marker for non-required flags should be `[<flags>]` — just `<flags>` wrapped in the existing `[]` — for consistency with `<command>`/`<arg>` notation, instead of the literal text \" [optional flags]\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
alecthomas__kong__428 | alecthomas/kong | 428 | defect | 2ab5733f117949ba9d1e24c1123d9c977d1808e6 | cd6c6a7741436cd51b575a6bf404aba4fc951871 | feat: allow non-structs to be used as commands | This small MR allows using the func-to-interface trick to implement a command (see commandFunc in kong_test.go).
This is useful e.g. for commands that have no flags or arguments of their own, but instead receive all required information via bound parameters.
:question: we could (but don't need to) also provide a... | diff --git a/build.go b/build.go
index 1cfe1c31..aed1f72a 100644
--- a/build.go
+++ b/build.go
@@ -51,6 +51,9 @@ type flattenedField struct {
func flattenedFields(v reflect.Value, ptag *Tag) (out []flattenedField, err error) {
v = reflect.Indirect(v)
+ if v.Kind() != reflect.Struct {
+ return out, nil
+ }
for i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change should be more selective about what it allows as a command — as written it now allows any value at all — and an explicit check for allowed types, probably in DynamicCommand, should be added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__kong__435 | alecthomas/kong | 435 | defect | d315006dcaba7a02249e1ad151962365410b601e | be56a49aedb4b91d5373c770aa80338367b7f2f6 | fix: When a Grammar combines flags with passthrough args, see if an unrecognized flag may be treated as a positional argument | ### Issue
Given a grammar like this:
```golang
var cli struct {
Args []string `arg:"" optional:"" passthrough:""`
}
```
The first positional argument implies that it was preceded by `--`, so subsequent flags are not parsed.
If Kong parses `cli 1 --unknown 3`, it will populate `Args` with `[]string{"... | diff --git a/context.go b/context.go
index b2bfea69..b4f116de 100644
--- a/context.go
+++ b/context.go
@@ -420,12 +420,22 @@ func (c *Context) trace(node *Node) (err error) { //nolint: gocyclo
case FlagToken:
if err := c.parseFlag(flags, token.String()); err != nil {
- return err
+ if isUnknownFlagError(... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new UnknownFlagError type does not need to be exported, so it should be unexported.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "boblail asks whether alecthomas would prefer extracting something from trace() or reworking it ... | null |
alecthomas__kong__494 | alecthomas/kong | 494 | defect | 9c08a58eb2064527bc5f6f2e1e5f58e116224ea6 | a736709a3c49232b0bc5682b365945fe7038b885 | hooks: Recursively search embedded fields for methods | Follow up to #493 and 840220c
Kong currently supports hooks on embedded fields of a parsed node,
but only at the first level of embedding:
```
type mainCmd struct {
FooOptions
}
type FooOptions struct {
BarOptions
}
func (f *FooOptions) BeforeApply() error {
// this will be called
}
type BarOptions str... | diff --git a/callbacks.go b/callbacks.go
index e541f5a..17f18d6 100644
--- a/callbacks.go
+++ b/callbacks.go
@@ -68,35 +68,60 @@ func getMethod(value reflect.Value, name string) reflect.Value {
return method
}
-// Get methods from the given value and any embedded fields.
+// getMethods gets all methods with the gi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The iterative pending-queue implementation of getMethods would be much much simpler using recursion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__kong__507 | alecthomas/kong | 507 | defect | 0c495e4936b62e3599434bb9938cb5eb4e20ab53 | 06a689b0620e3dd955578d9ad4905d5ae8178ba1 | feat: Allow Kong to exit with semantic exit codes | feat: Allow Kong to exit with semantic exit codes
At Block, we've instrumented a number of commandline tools and set SLOs on some tools' reliability. To do that effectively, we had to partition usage errors from reliability issues. We looked at [prior art](https://github.com/square/exit?tab=readme-ov-file#reserved-c... | diff --git a/go.mod b/go.mod
index 411174d..ba0efe2 100644
--- a/go.mod
+++ b/go.mod
@@ -3,6 +3,7 @@ module github.com/alecthomas/kong
require (
github.com/alecthomas/assert/v2 v2.11.0
github.com/alecthomas/repr v0.4.0
+ github.com/square/exit v1.2.0
)
require github.com/hexops/gotextdiff v1.0.3 // indirect
di... | 3 | 3 | 2 | [{"id": "G0", "claim": "Kong should let errors override exit codes idiomatically by having the error itself implement an ExitCode interface (e.g. ParseError returning 80) instead of pulling in the external square/exit dependency.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
alecthomas__kong__511 | alecthomas/kong | 511 | defect | 1edf069f4a1ad7499f6d4cc34b1e7af0d06d89b1 | 11f88bf34cc4f3c077417b0dd9951f95cbd63d27 | feat: Allow configuring hooks via Kong's functional options | Lets you pass `kong.WithBeforeApply` along with a function that supports dynamic bindings to register a `BeforeApply` hook without tying it directly to a node in the schema.
Also updates the README.md to [list a table of hooks with their meanings](https://github.com/boblail/kong/tree/lail/register-hooks-via-Options?... | diff --git a/hooks.go b/hooks.go
index 9fdf24c..f132c97 100644
--- a/hooks.go
+++ b/hooks.go
@@ -24,3 +24,5 @@ type AfterRun interface {
// AfterRun is called after Run() returns.
AfterRun(args ...any) error
}
+
+type hook func(args ...any) error
diff --git a/kong.go b/kong.go
index a09b711..3f41ee2 100644
--- a/k... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new option should be named WithBeforeApply, and the fn parameter must be any (instead of the hook type) so that it correctly matches any function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__localcache__3 | alecthomas/localcache | 3 | defect | 58f96d593dc4d35a4c3b93ae9daf8a2e622ef9a2 | 3601b6f4301b79c18c702c2ad8bb0afab5ffaf22 | Add cache.PurgeKey method | Add cache.PurgeKey(key, older) method that only purges an entry for a
given key if older than expiry given.
This method should be useful in global caches for bigger application
where not every cache entry should follow the same expiry deadlines. | diff --git a/localcache.go b/localcache.go
index cfa49ca..2bdd8ca 100644
--- a/localcache.go
+++ b/localcache.go
@@ -249,6 +249,21 @@ func (c *Cache) ReadFile(key string) ([]byte, error) {
return ioutil.ReadFile(path)
}
+// Purge entry for given key if older than given age.
+func (c *Cache) PurgeKey(key string, ol... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new removeEntry helper should be de-duplicated from Purge(), which still contains the same entry-removal logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The os.Stat call in PurgeKey is usually unnecessary; it sh... | null |
alecthomas__voluptuous__185 | alecthomas/voluptuous | 185 | defect | 7386b1d94e2ab2121266ef6f2b35b940c9e216fa | cd7f5df3e28e39e9920817635b2a6e45b28e8395 | Argument validation decorator | Introducing decorator that is able to validate input arguments and return value
of the decorated function.
Before calling the wrapped function, the validators specified in the
decorator's argument list will be tested against the values passed at
the function call.
```
@validate_schema(arg1=int, arg2=int)
def foo(arg1... | diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index 5f686c99..e0d053bd 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -1017,16 +1017,75 @@ def wrapper(*args, **kwargs):
return decorator
+def _args_to_dict(func, args):
+ """
+ Returns argumen... | 6 | 6 | 2 | [{"id": "G0", "claim": "The decorator's usage is more verbose than it needs to be; the maintainer would prefer a concise form like @validate(arg0=int, arg1=int, __returns__=string).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The decorator should use ... | null |
alecthomas__voluptuous__207 | alecthomas/voluptuous | 207 | defect | 6802ce06fd77c3b6bc0ef453f06441e8573330f6 | e74954045fd8cdbb41cc0c57f7e244e4519dcdfa | Feature | Varify the maximum number of digits that are present in the number(Precision),
and the maximum number of decimal places(Scale)
```
:raises Invalid: If the value does not match the provided Precision and Scale.
>>> s = Schema(Number(precision=6, scale=2))
```
| diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index 86a43ceb..0ad38948 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -5,7 +5,7 @@
Schema, Required, Extra, Invalid, In, Remove, Literal,
Url, MultipleInvalid, LiteralInvalid, NotIn, Match, Email,
Replace, Ran... | 6 | 6 | 4 | [{"id": "G0", "claim": "With default arguments the comparison against self.precision or self.scale breaks with a TypeError when precision or scale is None.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "max_digits should be a constant rather than a ... | null |
alecthomas__voluptuous__260 | alecthomas/voluptuous | 260 | defect | 9daf6867bd39ea2c7da92324aa162f6b5abe28ba | 63fb8cf7e2a0f169e55dd1d5a352f8bf04457da8 | #259 Fix performance issue of large dict validation | A fix for performance issue [#259](https://github.com/alecthomas/voluptuous/issues/259) | diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index 0bcd2c9f..fc2b912d 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -5,6 +5,8 @@
import sys
from contextlib import contextmanager
+import itertools
+
try:
import error as er
except ImportError:
@@ -2... | 1 | 1 | 1 | [{"id": "G0", "claim": "The CI tests are failing on this pull request and must be fixed before merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
alecthomas__voluptuous__279 | alecthomas/voluptuous | 279 | defect | 2a690a8e2102b5cfafe8f7b309ac5efcafcfd162 | a40494432ab913b2d4166ac5cf6f75d390e06922 | Better old-style class support | Treat old-style classes like types when validating. Prior to this patch, old-style classes in Python 2 would be treated like callables, leading to unexpected behavior.
```
>>> from plistlib import Data # old-style class from standard library
>>> from voluptuous import Schema
>>> schema = Schema(Data)
>>> schem... | diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index 8b498145..da3b31df 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -237,7 +237,7 @@ def _compile(self, schema):
elif isinstance(schema, tuple):
return self._compile_tuple(schema)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Update CHANGELOG.md mentioning the changes made by this PR.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
alecthomas__voluptuous__285 | alecthomas/voluptuous | 285 | defect | a3ac0dd7f5bcb446385d80b9da6a547ef8f7fe90 | f9b4da9fbab0941e235b52ef1ae5dd0ffd046f93 | Allow all schemas in Maybe | The `Maybe` validator is only limited to types now. With this change it will be backwards compatible but also allow any type of schema to be passed in.
My only concern is that i don't know what to do with the msg parameter and so for my initial version I have removed it. We could make `__call__` be something like th... | diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index 2148acb1..aed2e50c 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -549,8 +549,6 @@ def test_unordered():
def test_maybe():
- assert_raises(TypeError, Maybe, lambda x: x)
-
s = Schema(Maybe(int))
assert ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add more test cases that show the change being made (Maybe accepting an arbitrary validator/schema, not just a type).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alecthomas__voluptuous__342 | alecthomas/voluptuous | 342 | defect | 44f5ace320a0e1f38307e6953e29d6bc01ab724d | fb81f167f9e0a0799ec0f8d4853074686188c1e0 | Added support for sets and frozensets | Hi there, this is a proposed fix for #292.
The docstring was done slightly differently than the others as the behaviour differs in the Python shell between Python 2.7 and Python 3.1+ (`set([42])` vs `{42}`):
```pycon
>>> set([42])
set([42])
```
```pycon
>>> set([42])
{42}
```
The raised `Invalid` exc... | diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index 9f3a0221..5915a634 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -286,6 +286,8 @@ def _compile(self, schema):
return self._compile_list(schema)
elif isinstance(schema, tuple):
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The inclusion of sets and frozensets should also be documented in README.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The type name should be derived via `type_.__name__` so user-defined subclasses of set are handled ... | null |
alecthomas__voluptuous__368 | alecthomas/voluptuous | 368 | defect | 961f85fd809261cbe80ac037105a317db484cbe4 | 901f155449d7c1a2f568abef7b97af9eff2a99f0 | Allow a discrminant field in validators | Attempts to fix #360
The accepted solution was to add a `Union` type which requires a discriminant. What I have done is check for a `discrminant` argument, and run the `value` and alternatives through the discriminant function to obtain a filtered list of alternatives. This allows a discriminant field to be included ... | diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index 1c144eb5..3ff71e4a 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -11,7 +11,7 @@
Replace, Range, Coerce, All, Any, Length, FqdnUrl, ALLOW_EXTRA, PREVENT_EXTRA,
validate, ExactSequence, Equal, Unordered, Number,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The doctest does not actually test the discriminant feature, so it is hard to tell whether the feature works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The signature description should be moved into the :param discriminant: com... | null |
alecthomas__voluptuous__377 | alecthomas/voluptuous | 377 | defect | c2e1cfd3e1d01f07dfcc8b4ffeec3e06e04a4fa6 | c8be8f18ee9a428a298dec2dc0416b5dbb001ca9 | Preserve Unicode strings when passed to utility functions | First of all, best wishes for 2019.
This updates the string utility functions to return a Unicode string when a Unicode string is passed in. In Python 2 this would raise an error due to the use of str(v).
This is a change related to issue #374.
The tests also check for other types (int) to preserve existing fu... | diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index f847bc98..0335892a 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -13,7 +13,7 @@
Contains, Marker, IsDir, IsFile, PathExists, SomeOf, TooManyValid, Self,
raises)
from voluptuous.humanize import humanize_error
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The repeated Python 2 / unicode-handling fragment repeated across Lower, Upper, Capitalize, Title and Strip should be replaced with a mini helper function such as _fix_str(v).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alecthomas__voluptuous__380 | alecthomas/voluptuous | 380 | defect | 7e18e1cf505f3a5d859546871e096481636fa21f | cf3e2dc4d0eed2b4589812fd832b1ee2130cef01 | Fix #379: Regression with Any and required | In 0.9.3, the `Schema`s associated to the `Any` validators where setup with the
`required` argument given to `Any`
https://github.com/alecthomas/voluptuous/blob/0.9.3/voluptuous/validators.py#L218
This allow us to write something like:
```
Schema(Any({'a': int}, {'b': str}, required=True))
```
In recent ... | diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py
index bc16a122..af0b546f 100644
--- a/voluptuous/tests/tests.py
+++ b/voluptuous/tests/tests.py
@@ -1322,3 +1322,15 @@ def test_strip_util_handles_various_inputs():
assert Strip(u"3") == u"3"
assert Strip(b'\xe2\x98\x83'.decode("UTF-8")) == b'... | 2 | 2 | 1 | [{"id": "G0", "claim": "In _WithSubValidators.__init__ the required flag should be consumed from the kwargs with kwargs.pop('required', False) instead of the conditional expression 'required' in kwargs and kwargs['required'].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
alecthomas__voluptuous__382 | alecthomas/voluptuous | 382 | defect | 806d1c5954b82b51e69f03c80ec3bfbb4c6b3192 | 1e23b2dbd51e3453b00baa6367e52494567c23bb | Added support for default values in Inclusive schemas | This is a trivial implementation of a fix for #381.
| diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index c98f20dd..4bbe70fd 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -1127,8 +1127,10 @@ class Inclusive(Optional):
True
"""
- def __init__(self, schema, group_of_inclusion, msg=None, description=... | 2 | 2 | 2 | [{"id": "G0", "claim": "A test case should be added so that the new default-values behaviour of Inclusive is automatically tested and continues to behave as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "New parameters should be added at the e... | null |
alecthomas__voluptuous__475 | alecthomas/voluptuous | 475 | defect | 1105b31432ac5ebb3b0e3238be94b4231c427c67 | 803f7dbafbd8192a30f6bdef20d42a2238ce4dc5 | add typing information | add typing stubs to help IDE's and type checkers such as `mypy` and `pyright`
This deprecates the outdated https://github.com/ryanwang520/voluptuous-stubs | diff --git a/setup.py b/setup.py
index be6b6b3a..32e3ab09 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,9 @@
license='BSD-3-Clause',
platforms=['any'],
packages=['voluptuous'],
+ package_data= {
+ 'voluptuous': ['py.typed'],
+ },
author='Alec Thomas',
author_email='alec@swapoff... | 3 | 3 | 1 | [{"id": "G0", "claim": "The type annotations should be added directly to the voluptuous .py sources instead of separate .pyi stubs, even if that means dropping support for older Pythons.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The CI failure comes... | null |
alecthomas__voluptuous__503 | alecthomas/voluptuous | 503 | defect | 095322559b0a525c90c99d34bc233a93a3b54332 | a69e4142bd32e5429b02e966e8f8adc68c13a25e | Add linters configuration, reformat whole code | Hi,
As black and isort became the standard tools to enforce uniform style within the whole codebase, I've came to a conclusion that these may be helpful also here, as the style currently varies in different parts of the codebase.
I've added:
- black
- isort
- moved the pytest config to pyproject.toml
I've r... | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 515ee98e..c6111320 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -14,8 +14,10 @@ jobs:
fail-fast: false
matrix:
include:
+ - { python-version: "3.11", session: "black" }
... | 13 | 11 | 1 | [{"id": "G0", "claim": "Keep black's default line length (80 + 10% wrap margin) instead of configuring 120 columns, since 120 does not fit two side-by-side terminals.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the changes minimal when introducin... | null |
alecthomas__voluptuous__513 | alecthomas/voluptuous | 513 | defect | 1fcf849f16279d43010c89c5d8cf69d5de96a800 | 72ac391fc97ad8dffa544b00ec818accf92deec7 | Only calculate hash once for Marker objects | before

after

| diff --git a/voluptuous/__init__.py b/voluptuous/__init__.py
index 3138aaf..e333603 100644
--- a/voluptuous/__init__.py
+++ b/voluptuous/__init__.py
@@ -8,5 +8,5 @@
# fmt: on
-__version__ = '0.14.2'
+__version__ = '0.13.1'
__author__ = 'alecthomas'
diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_bui... | 3 | 2 | 1 | [{"id": "G0", "claim": "The version string was downgraded from 0.14.2 to 0.13.1 and should be restored to 0.14.2.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new per-instance __hash__ override on Remove seems unnecessary, and the author is as... | null |
alecthomas__voluptuous__534 | alecthomas/voluptuous | 534 | defect | c5b63f80f156deeb4ef9646555eb41413edad7f5 | ff95a367f99dd42d667eeb84ef64c04da15a87bb | Feature: Support requiring anyOf a list of keys | This adds a new feature to Voluptuous, which is somewhat akin to what json-schema does with the special key `anyOf`.
`Schema({Required(Any('color', 'temperature', 'brightness')): object})` will validate that AT LEAST ONE of these three values is present. That doesn't preclude any individual validation on each of tho... | diff --git a/voluptuous/schema_builder.py b/voluptuous/schema_builder.py
index da20737..b3996b4 100644
--- a/voluptuous/schema_builder.py
+++ b/voluptuous/schema_builder.py
@@ -248,6 +248,12 @@ def _compile_mapping(self, schema, invalid_msg=None):
)
)
+ # Complex required keys that need s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request adds a large set of mostly redundant tests; reduce them to the minimal set.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alekseysidorov__tower-http-client__32 | alekseysidorov/tower-http-client | 32 | defect | bfedfe36585c4eea4877e40a81ebe179b694b4b7 | 2f9fd081c530c801212838fbf41d619a9a63c07d | Add query feature | - Added a `query` method to `ClientRequestBuilder` and `RequestBuilderExt` for
setting URL query parameters from any `serde::Serialize` type. The method
replaces any existing query string entirely. Available behind the `query`
feature flag. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a13528..d187efd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,31 +8,43 @@ and this project adheres to
## [Unreleased]
+- Added a `query` method to `ClientRequestBuilder` and `RequestBuilderExt` for
+ setting URL query parameters from any `serde::Serialize` type... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `query` feature enables `serde_urlencoded` while the query API requires `serde::Serialize`, so building with `--no-default-features --features query` fails to compile; add `dep:serde` to the `query` feature as `form`/`json` do.", "category": "correctness", "verdict": "supported", "priority":... | null |
alekseysidorov__tower-http-client__9 | alekseysidorov/tower-http-client | 9 | defect | 9ad5fe3080b611749a3ab6df8db645804a8320a6 | eb6bbe57c1dab5fe8c218617bf5d4c88d1b015ba | Add `typed_header` feature | This MR adds a `typed_header` method to the `ClientRequest` and `RequestBuilderExt` for typed header insertion. | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7a4a2c9..29fffea 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,8 +20,8 @@ jobs:
- name: "Run linters"
run: nix run .#ci-lints
- - name: "Run semver checks"
- run: nix run .#ci-semver-checks... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in CHANGELOG.md: 'Maked' should be 'Made'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alewin__useWorker__98 | alewin/useWorker | 98 | defect | 9cf52798a7041bfac0fcef02fbcce32a8a6cdb35 | 796feeff41499660b451bba5c53c37bc6601dac6 | Local dependencies | A new (and better) implementation of #77 thanks to @101arrowz and his cool lib [isoworker](https://github.com/101arrowz/isoworker).
Improvements over previous implementation:
- Support for more primitives (classes, objects, symbols etc)
- No need to use an object to access the functions, just using them normally (... | diff --git a/README.md b/README.md
index bd3ebb5..e8430e2 100644
--- a/README.md
+++ b/README.md
@@ -125,10 +125,10 @@ More examples: https://github.com/alewin/useWorker/tree/develop/example
- [x] Kill Web Worker
- [x] Reactive web worker status
- [x] Add timeout option
-- [x] import and use remote script inside `us... | 3 | 1 | 0 | [{"id": "G0", "claim": "The PR imports the whole isoworker default export when only `createContext` is used; importing only that function (e.g. via a named or subpath ESM import) would avoid bundling the workerization code.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {... | null |
alex-courtis__xlayoutdisplay__9 | alex-courtis/xlayoutdisplay | 9 | defect | 68b8f5811707ea72479b97c00fccf3e9385a790a | 0be7db27b1c2400def87a6384e23f14d204e176e | add feature to limit refresh rate | Added a feature to override refresh rate of all outputs. I hope the implementation is good enough. Feedback is welcome. | diff --git a/main.cpp b/main.cpp
index 4d73f6c..458b71f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -34,6 +34,7 @@ int main(int argc, const char **argv) {
po::options_description options("CLI, /etc/xlayoutdisplay and ~/.xlayoutdisplay");
options.add_options()
("dpi,d", po::value<long>(), ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The user-provided refresh rate is applied to every monitor, and applying different rates per output would be better.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "test-xrandrutil.cpp:76 still calls renderXrandrCmd with the old th... | null |
alexa__alexa-skills-kit-sdk-for-java__155 | alexa/alexa-skills-kit-sdk-for-java | 155 | defect | b197ded614582d2ca3a7719dfd995e0622c6f517 | a1961928524fb6672a292d2b26f9ddbb319cba6a | Add Card in ResponseBuilder | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
Add Card in ResponseBuilder so that pre-constructed Card object and its children classes can be passed to ResponseBuilder.
## Motivation and Context
<!--- Why is this change required?... | diff --git a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
index f88e0ae1..4ef22380 100644
--- a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
+++ b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
@@ -85,6 +85,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The withCard javadoc should not say 'Card' in plaintext next to the {@link Card} tag; keep only the link.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-java__174 | alexa/alexa-skills-kit-sdk-for-java | 174 | defect | 6e55adc618da8f688bb0fdbc328e95cb35e0dde4 | 6722564d1d45178a46237f2add73bd135efe8767 | Add a constructor to support tolerance for various time units | ## Description
Added overloaded constructor with an additional TimeUnit field which would convert the given tolerance to milli seconds
## Motivation and Context
https://github.com/alexa/alexa-skills-kit-sdk-for-java/issues/173
## Testing
Modified the test class to run with Parameterized.class to run all the ex... | diff --git a/ask-sdk-servlet-support/src/com/amazon/ask/servlet/verifiers/SkillRequestTimestampVerifier.java b/ask-sdk-servlet-support/src/com/amazon/ask/servlet/verifiers/SkillRequestTimestampVerifier.java
index 7fc330b3..df4764d5 100644
--- a/ask-sdk-servlet-support/src/com/amazon/ask/servlet/verifiers/SkillRequestTi... | 4 | 4 | 2 | [{"id": "G0", "claim": "The combined `@params tolerance, timeUnit` Javadoc tag prevents the Javadoc generator from resolving the parameters individually and results in a build failure on TravisCI.", "category": "documentation", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
alexa__alexa-skills-kit-sdk-for-java__188 | alexa/alexa-skills-kit-sdk-for-java | 188 | defect | bf1e9ccc50d1f3f8408f887f70197ee288fd4bd9 | 66f24bf65c69e9fe4d57a9882b29f752767ee171 | Add delete attributes feature to Persistence Adapter | <!--- Provide a general summary of your changes in the Title above -->
The changes include adding delete attributes feature to the persistence layer.
## Description
Added overloaded methods to facilitate deleting few/all persistence attributes.
## Motivation and Context
Non-existent feature till now. Not havi... | diff --git a/ask-sdk-core/src/com/amazon/ask/attributes/AttributesManager.java b/ask-sdk-core/src/com/amazon/ask/attributes/AttributesManager.java
index d7ca9cf9..efb70111 100644
--- a/ask-sdk-core/src/com/amazon/ask/attributes/AttributesManager.java
+++ b/ask-sdk-core/src/com/amazon/ask/attributes/AttributesManager.ja... | 2 | 2 | 2 | [{"id": "G0", "claim": "The attributes parameter on the new PersistenceAdapter.deleteAttributes method is unnecessary — the RequestEnvelope should be sufficient to key the item to delete.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The key-providing d... | null |
alexa__alexa-skills-kit-sdk-for-java__215 | alexa/alexa-skills-kit-sdk-for-java | 215 | defect | 9a09fbe517b81acf6a803abe36662621f8685206 | 906a41b5e697235cae6f5032cb87e8c68e68086c | Add abstraction layer over servlet interface when calling Verifiers | <!--- Provide a general summary of your changes in the Title above -->
## Description
Providing interface over `HttpServletRequest` in order to use verifiers non-servlet contexts - like reactive solutions, gateways etc.
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->... | diff --git a/ask-sdk-servlet-support/src/com/amazon/ask/servlet/SkillServlet.java b/ask-sdk-servlet-support/src/com/amazon/ask/servlet/SkillServlet.java
index 7b598107..4ae7d709 100644
--- a/ask-sdk-servlet-support/src/com/amazon/ask/servlet/SkillServlet.java
+++ b/ask-sdk-servlet-support/src/com/amazon/ask/servlet/Ski... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ServerRequest interface should be renamed to something more descriptive, e.g. AlexaHttpRequest.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-java__222 | alexa/alexa-skills-kit-sdk-for-java | 222 | defect | d9de63c1206ccca107b9a0f0e9b580c587cd304c | 659118b47d851e9ed6e7023f0b2394481131d9cf | Handle null directive properly | Handle null directive properly in ResponseBuilder
## Description
Checking if directive is not null
## Motivation and Context
Makes API more resilient for invalid input
## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests... | diff --git a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
index 499288e7..3aa23734 100644
--- a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
+++ b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
@@ -104,7 +10... | 2 | 1 | 1 | [{"id": "G0", "claim": "The null check for card in withCard() adds no value (a null card is not serialized back to Alexa) and breaks the rare case of clearing an already-set card by explicitly passing null, so the PR should keep only the null check for the directive.", "category": "correctness", "verdict": "supported",... | null |
alexa__alexa-skills-kit-sdk-for-java__288 | alexa/alexa-skills-kit-sdk-for-java | 288 | defect | 07ddbac6e975116b1d3da6b0d820853843d5005e | fc93398d8dc7474e931becd3eaf85a91df05e270 | feat: new method in response builder to add a play directive with metadata | <!--- Provide a general summary of your changes in the Title above -->
## Description
I just add a new method to the response builder to be able to pass as param an audio metadata to the play directive.
## Motivation and Context
I have a skill where I need to display metadata on AudioPlayer. At first, I did thi... | diff --git a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
index 7a8a0eee..8c933cbf 100644
--- a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
+++ b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
@@ -13,6 +13,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added import of the nested type AudioItem.Builder is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-java__294 | alexa/alexa-skills-kit-sdk-for-java | 294 | defect | 8131219bef4a51e80d61fca271934d94d4058ab9 | d77a04b66a885bf18bc77b0d4cb6cbba0b013b48 | Support reprompt with directives | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open [issue][issues], please link to the issue here -->
## Testing... | diff --git a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
index f03de478..33cec0b0 100644
--- a/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
+++ b/ask-sdk-core/src/com/amazon/ask/response/ResponseBuilder.java
@@ -214,7 +21... | 1 | 1 | 0 | [{"id": "G0", "claim": "Do not use wildcard (`*`) imports in ResponseBuilderTest.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-nodejs__522 | alexa/alexa-skills-kit-sdk-for-nodejs | 522 | defect | 0c0c7b29bcfc66322d6d5aaa025182898d2e35b2 | 4560a404ebcc5538a2d18cbfd3d0e25945817f14 | feat: auto escape invalid SSML characters | This commit fixes #472
<!--- Provide a general summary of your changes in the Title above -->
This commit contains changes that adds auto-escaping invalid SSML character feature to the responsebuilder as well as exposing the utility function for other developer usages
## Description
<!--- Describe your cha... | diff --git a/ask-sdk-core/lib/index.ts b/ask-sdk-core/lib/index.ts
index 9f4e5484..203336bc 100644
--- a/ask-sdk-core/lib/index.ts
+++ b/ask-sdk-core/lib/index.ts
@@ -45,6 +45,9 @@ export {
ViewportSizeGroup,
ViewportSizeGroupOrder,
} from './util/ViewportUtils';
+export {
+ escapeXmlCharacters,
+} from '... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hardcoded reverse mapping should not be redefined; derive it by reversing the existing `invalidXmlCharactersMapping` instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-nodejs__605 | alexa/alexa-skills-kit-sdk-for-nodejs | 605 | defect | 59002f423a13fe3d59e7882d013bde40501d3f79 | e429950ef1b41c26a76bd506911c408c437fead2 | fix: Retrieve case-insensitive header values |
## Description
<!--- Describe your changes in detail -->
Since header keys can be case-insensitive as per the RFC 2616 doc, we need to retrieve them correctly before retrieving the certificate for request verification.
## Testing
Unit tests run successfully.
## Screenshots (if appropriate)
## Types of cha... | diff --git a/ask-sdk-express-adapter/lib/verifier/index.ts b/ask-sdk-express-adapter/lib/verifier/index.ts
index 5b133824..47dd0b0a 100644
--- a/ask-sdk-express-adapter/lib/verifier/index.ts
+++ b/ask-sdk-express-adapter/lib/verifier/index.ts
@@ -70,8 +70,17 @@ export class SkillRequestSignatureVerifier implements Veri... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new case-insensitive header-value retrieval in SkillRequestSignatureVerifier.verify has no corresponding test-case updates.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alexa__alexa-skills-kit-sdk-for-nodejs__657 | alexa/alexa-skills-kit-sdk-for-nodejs | 657 | defect | 148fad253df605fbc1d6c83db11668317cfc9ee5 | da7c7fc3f774e95618c4763a420e1868bab4d3de | feat: add UserAgentManager | ## Description
Adds a static UserAgentManager which manages environment level SDK user agent information. User agent component registration and full user agent string retrieval is encapsulated by this new class rather than being registered and computed at the CustomSkill layer.
The manager does not allow for duplic... | diff --git a/ask-sdk-core/lib/skill/CustomSkill.ts b/ask-sdk-core/lib/skill/CustomSkill.ts
index c6c302f3..a98d92c3 100644
--- a/ask-sdk-core/lib/skill/CustomSkill.ts
+++ b/ask-sdk-core/lib/skill/CustomSkill.ts
@@ -22,7 +22,8 @@ import {
createAskSdkUserAgent,
GenericRequestDispatcher,
RequestDispatcher,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added beforeEach call in CustomSkill.spec.ts has a space before the function parentheses, which lint rejects (unexpected space before function parentheses).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The JSDoc comment on Us... | null |
alexa__alexa-skills-kit-sdk-for-nodejs__694 | alexa/alexa-skills-kit-sdk-for-nodejs | 694 | defect | ef6b97e9deaeb902856c33e570f56da8a2ff998a | 5840f9224316a14a29eda63bd696000a4f5f8b67 | feat: add util function addDirectiveToReprompt | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open [issue][issues], please link to the issue here -->
## Testing... | diff --git a/ask-sdk-core/lib/response/ResponseBuilder.ts b/ask-sdk-core/lib/response/ResponseBuilder.ts
index af2fffe4..36d48048 100644
--- a/ask-sdk-core/lib/response/ResponseBuilder.ts
+++ b/ask-sdk-core/lib/response/ResponseBuilder.ts
@@ -182,6 +182,12 @@ export interface ResponseBuilder {
* @returns {Respons... | 3 | 2 | 0 | [{"id": "G0", "claim": "The JSDoc for addDirectiveToReprompt should read 'the directive sent back to Alexa device' instead of 'send'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "addDirectiveToReprompt should call this.withShouldEndSession(false... | null |
alexandrevicenzi__go-sse__21 | alexandrevicenzi/go-sse | 21 | defect | fcf9dcef90b06336afdab9ff5027d61279b39710 | 3d437e36673fa391e1ed2756e772f5ba9d743650 | Fix use of fmt.Fprintf when writing messages | On line 95 of `sse.go`, `fmt.Fprintf` should be `fmt.Fprint` to properly handle messages containing `%` characters.
This PR also refactors the message serialization part to save a []byte/string conversion, with a test added. | diff --git a/go.mod b/go.mod
index 55d2b76..d823035 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module github.com/alexandrevicenzi/go-sse
+module github.com/wdscxsj/go-sse
go 1.11
diff --git a/message.go b/message.go
index 6bf6381..69f7691 100644
--- a/message.go
+++ b/message.go
@@ -29,7 +29,7 @@ func NewMess... | 1 | 1 | 1 | [{"id": "G0", "claim": "The module path in go.mod should not be changed from github.com/alexandrevicenzi/go-sse to github.com/wdscxsj/go-sse.", "category": "correctness", "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.