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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
splunk__splunk-library-javalogging__50 | splunk/splunk-library-javalogging | 50 | defect | 0ab32bea0773543c4885fab456965a14fe413979 | a0a9b262a373f16ec212311053c01c8bda60d0bf | Issue #48 Fix - Added handling for JSON messages | The Splunk appenders for HTTP Event collector does not handle messages in Json format properly. The format literals are escaped in the Json message and sent over to Http event collector which, due to escape characters, treats the incoming message as normal text.
I have introduced a new appender configuration propert... | diff --git a/.gitignore b/.gitignore
index 0d95f93b..40ab57de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,8 @@ target
pom.xml.old
pom.xml.orig
TODOS
+
+# Ignore Eclipse IDE config files
+.classpath
+.project
+.settings
diff --git a/README.md b/README.md
index f69e2f8b..3bb1b80c 100644
--- a/README.md
+++ b/R... | 1 | 1 | 0 | [{"id": "G0", "claim": "Encapsulate message parsing within the MessageFormat enum (adding a parse method to it) so the parseEventMessage helper in HttpEventCollectorSender can be removed and new formats become easier to add.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
splunk__splunk-sdk-javascript__151 | splunk/splunk-sdk-javascript | 151 | defect | 0db108d997ad434f99e24f220ac592fabe51aa4c | 8debed5140526c34436ed94e3d1566e0391014cb | Added 'User-Agent' header in REST API calls for the telemetry | - Added a "User-Agent" header in the client and server REST API calls
- To test: use the JavaScript SDK to make a request to the REST API (execute client or server side test cases/examples), then search `index=_internal "splunk-sdk-javascript/1.11.0"` to make sure the event appears as expected | diff --git a/bin/cli.js b/bin/cli.js
index bd502b741..4cb6059ed 100755
--- a/bin/cli.js
+++ b/bin/cli.js
@@ -103,7 +103,8 @@
headers: {
"Content-Length": req.headers["content-length"] || 0,
"Content-Type": req.headers["content-type"] || '',
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The browser clients under lib/platform/client also need to follow the same logic, and the authors want to test to make sure the User-Agent isn't being overwritten by browser information in those scenarios.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
splunk__splunk-sdk-javascript__57 | splunk/splunk-sdk-javascript | 57 | defect | 0f37a9c120cfb976d5caf80986a1a0a42e5f71f3 | 4b00fdfa32dc40fb3c689dbd2b635897b95aca83 | Update travis ci | replaced the built-in savedsearch used in tests for verification. "Indexing workload" is no longer built-in. | diff --git a/.travis.yml b/.travis.yml
index 53240fbb8..1ab6c8880 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,12 +29,11 @@ node_js:
- "4.2"
- "0.12"
- "0.10"
- - "0.8"
#Splunk versions can be set here
env:
- - SPLUNK_VERSION=6.4-sdk
- - SPLUNK_VERSION=6.5-sdk
+ - SPLUNK_VERSION=6.6-... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the README note about IO.js and instead say Node.js 4+ should work.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added test line uses tabs instead of the file's spaces indentation.", "category": "maintain... | null |
splunk__splunk-sdk-python__173 | splunk/splunk-sdk-python | 173 | defect | 833b530839e95a7eae361fe3f604baf30705a6db | e4a0152c37ee99586b53ef4c367d16c4b165195f | Fix Configuration(distributed=True) resulting in a command that is NOT distributed | As per support Case #488821, DVPL-7118, DEVC-1
In a generating command using SCP2 (chunked = true), commands are unexpectedly distributed
#!/usr/bin/env python
import sys
import time
import socket
from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators
@Confi... | diff --git a/splunklib/searchcommands/generating_command.py b/splunklib/searchcommands/generating_command.py
index 3bd019231..3a78ada38 100644
--- a/splunklib/searchcommands/generating_command.py
+++ b/splunklib/searchcommands/generating_command.py
@@ -308,7 +308,7 @@ def iteritems(self):
version = self.co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request makes the tests fail: dan1 reports having to change the expectations back (line 84 to 'streaming', the iteritems expectation to ('type', 'stateful'), and likewise at lines 149 and 168) to get the tests to pass.", "category": "correctness", "verdict": "supported", "priority": "P0... | null |
splunk__splunk-sdk-python__174 | splunk/splunk-sdk-python | 174 | defect | 833b530839e95a7eae361fe3f604baf30705a6db | 1d9dc698d110f0336bddede8beeb856fadca6679 | Bugfix/spl 142009 | Changed the SDK for python to accept generating command type as 'events' instead of 'eventing', for consistency with splunk core. | diff --git a/splunklib/searchcommands/generating_command.py b/splunklib/searchcommands/generating_command.py
index 3bd019231..3a20e60ea 100644
--- a/splunklib/searchcommands/generating_command.py
+++ b/splunklib/searchcommands/generating_command.py
@@ -56,7 +56,7 @@ class GeneratingCommand(SearchCommand):
+=======... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request carries changes that already live on the develop branch (the assertEventuallyTrue default-timeout bump in tests/testlib.py and the SPLUNK_VERSION bumps in .travis.yml), which the reviewers question and ask to get out of the PR by re-targeting it to develop.", "category": "mainta... | null |
splunk__splunk-sdk-python__441 | splunk/splunk-sdk-python | 441 | defect | f1db833d54ea6dfd0f39a61308c2f1d853905c15 | 9ea866224273372ecb25d0c51bc169019485206e | JSONResultsReader added and deprecated ResultsReader | - Added user's approach for JSONResultsReader in place of ResultsReader
- Newer approach increase efficiency and performance
- Modified test cases, examples and documentation to use JSONResultsReader along with query param 'output_mode' set to 'json' to use the newer approach
- Added deprecation warning for the Re... | diff --git a/examples/follow.py b/examples/follow.py
index 64b3e1ac6..cbb559deb 100755
--- a/examples/follow.py
+++ b/examples/follow.py
@@ -42,7 +42,7 @@ def follow(job, count, items):
job.refresh()
continue
stream = items(offset+1)
- for event in results.ResultsReader(stream)... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unused `ResultsReader` import in `examples/stail.py` can be removed, since the example now only uses `JSONResultsReader`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
splunk__splunk-sdk-python__442 | splunk/splunk-sdk-python | 442 | defect | c163daf491810bbd09b006e37389546a455470d3 | 3c9f1ab0612dc6f19c446c1aed967a89468b69a9 | Optional retries feature added | - Added optional retries feature provided by user in [PR](https://github.com/splunk/splunk-sdk-python/pull/293)
- Added test case for the optional retries
- Added example for the optional retries
- Added optional retry parameter for existing test cases setup, to prevent CI build failures | diff --git a/splunklib/binding.py b/splunklib/binding.py
index 85713a22c..4f56715b1 100644
--- a/splunklib/binding.py
+++ b/splunklib/binding.py
@@ -30,6 +30,8 @@
import logging
import socket
import ssl
+import sys
+import time
from base64 import b64encode
from contextlib import contextmanager
from datetime impor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The docstring note about retries should also call out that the retries happen in a blocking/synchronous way and block the current thread while retrying.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
splunk__splunk-sdk-python__59 | splunk/splunk-sdk-python | 59 | defect | c651780d909d2c946934c9b4eb272539a6f47a95 | fe22e6f804f107ec20c4c0dcad70a28789463e65 | Fixed things found in session 1 of the grand Python review. | - Added a note that Confs as been renamed to Configurations in CHANGELOG.md.
- Entity.refresh no longer tries to interpret HTTPErrors, and just lets them bubble up. Fixed test_delete tests in test_input,
test_role, test_saved_search, and test_user to expect HTTPError instead of EntityDeletedException. Deleted EntityD... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e2d422875..79d554e19 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## 1.0
+* Confs has been renamed to Configurations.
* Stanza.submit now takes a dictionary of key/value pairs specifying the stanza instead of a raw string.
* Namespace handling has ch... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new comment on the jobs endpoint is not English and should be reworded to something like \"The jobs endpoint only returns an outermost <entry> element, instead of an outermost <feed> element with an <entry> element embedded inside.\"", "category": "documentation", "verdict": "supported", "pr... | null |
splunk__splunk-sdk-python__636 | splunk/splunk-sdk-python | 636 | defect | 0a16aee114f3d414c456ca650707a4959f257349 | 81cc7d3a1d412329e056bd4cfc6188dd415259bc | DVPL-12515: Add modular input E2E test | Currently, we only have unit tests that verify the generated XML output of modularinputs. This change adds E2E tests to confirm that our modular input machinery works correctly with a Splunk instance. | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 329c686c4..b1bf2f7e2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -45,7 +45,7 @@ jobs:
run: pip install tox
- name: Test Execution
- run: tox -e py
+ run: tox -e py -- ./tests
fos... | 1 | 1 | 0 | [{"id": "G0", "claim": "The input and index cleanup at the end of test_modular_input should be put into tearDown() instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
splunk__splunk-sdk-python__741 | splunk/splunk-sdk-python | 741 | defect | b1219b2507f8a6d3b5f33f60a294e302531bc897 | ad69e2ca3a395d629d5d796558031de340c42f31 | Improve handling `AIMessage.content` | The content of `AIMessage` could differ between different providers.
For example:
* OpenAI gpt-5-nano responds with single string
* Gemini gemini-3-* models respond with list of `content-block`s. Those are dictionaries that include additional information.
An example of Gemini's content-block could look like thi... | diff --git a/examples/ai_modinput_app/bin/agentic_weather.py b/examples/ai_modinput_app/bin/agentic_weather.py
index 768688c28..54856c562 100644
--- a/examples/ai_modinput_app/bin/agentic_weather.py
+++ b/examples/ai_modinput_app/bin/agentic_weather.py
@@ -20,6 +20,8 @@
from _collections_abc import dict_items
from ty... | 5 | 3 | 1 | [{"id": "G0", "claim": "The subagent tool should extract and forward only the text contents of the final message as its output, instead of forwarding all content blocks.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Mapping a LangChain text block keeps ... | null |
splunk__splunk-sdk-python__753 | splunk/splunk-sdk-python | 753 | defect | 140d162dca318a5b72d2ed03b8d8eeeafc874dcc | 0fdd2d4ab56ec458cf90040a489ceeca845d425b | Disallow running Agents using system user | Running agents with system user (`splunk-system-user`) should not be allowed - such user has permissions to do anything within splunk. Giving this capability to Agent should result in an error being thrown.
Developers should not pass `Service` objects that use the `system` tokens to the Agent. | diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json
index 6b319a362..4fe754e99 100644
--- a/.basedpyright/baseline.json
+++ b/.basedpyright/baseline.json
@@ -141,22 +141,6 @@
}
],
"./splunklib/ai/tools.py": [
- {
- "code": "reportUnknownVariabl... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new splunklib/ai/utils.py should not become a catch-all; make it service-specific (e.g. service_utils.py) or place the helper elsewhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PrivilegedExecutionError should n... | null |
spockframework__spock__108 | spockframework/spock | 108 | defect | b6c08b082bbf626a51dbffb114282ca34cdb2237 | 37724d39f462c13178cfd104be19d0c247feba36 | Partial mocks for interfaces with default methods | Right now, the `Spy` method can be used to create a partial mock for an abstract class, as shown in the following gist: https://gist.github.com/siordache/2113afe4e381a005c4b8.
The current pull request adds the ability to create a partial mock for an interface with default methods, as shown in the following gist: https... | diff --git a/spock-core/src/main/java/org/spockframework/mock/runtime/DynamicProxyMockInterceptorAdapter.java b/spock-core/src/main/java/org/spockframework/mock/runtime/DynamicProxyMockInterceptorAdapter.java
index 2e7061ccb3..d44cfc2b10 100644
--- a/spock-core/src/main/java/org/spockframework/mock/runtime/DynamicProxy... | 3 | 2 | 1 | [{"id": "G0", "claim": "The default-method check expression is wrong: `(method.getModifiers() & (Modifier.ABSTRACT | Modifier.PUBLIC | Modifier.STATIC)) == Modifier.PUBLIC` is only true if the modifier is PUBLIC, and the comparison should instead be against the combined ABSTRACT|PUBLIC|STATIC mask.", "category": "corre... | null |
spockframework__spock__1102 | spockframework/spock | 1,102 | defect | 628cfb577ca346a8b8af0a0cdc62859514040f27 | 21b80c76f52983582a4f33070ad9796553490c48 | Do not prune ErrorSpecNodes | As the `ErrorSpecNode` is neither of type `TEST` or `CONTAINER_AND_TEST` and
does not have test descendents, the default prune algorithm throws it away.
That means, that the whole spec is simply ignored if there was an error, like
when having an exception in an `@IgnoreIf` closure.
When running all tests, the spec si... | diff --git a/spock-core/src/main/java/org/spockframework/runtime/ErrorSpecNode.java b/spock-core/src/main/java/org/spockframework/runtime/ErrorSpecNode.java
index d762e64267..c529cb7cf4 100644
--- a/spock-core/src/main/java/org/spockframework/runtime/ErrorSpecNode.java
+++ b/spock-core/src/main/java/org/spockframework/... | 2 | 2 | 1 | [{"id": "G0", "claim": "An integration test should be added in the spock-testkit module rather than relying only on the mock-based unit test (and not via EmbeddedSpecRunner).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A short explanatory comment sho... | null |
spockframework__spock__1124 | spockframework/spock | 1,124 | defect | 7aaffbf4fc426ac60a7b38324493a9ee946266d9 | ee4508e5d36a62a167918a018b3fec6b541f8718 | Carry over type casts in rewritten conditions to not disturb method disambiguation (#1022) | Fixes #1022
Fixes #589
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/spockframework/spock/1124)
<!-- Reviewable:end -->
| diff --git a/docs/release_notes.adoc b/docs/release_notes.adoc
index 8b1624dbe4..19f56c61ba 100644
--- a/docs/release_notes.adoc
+++ b/docs/release_notes.adoc
@@ -25,6 +25,9 @@ JUnit Plafform 1.6 (https://junit.org/junit5/docs/5.6.0/release-notes/index.html
- Upgrade JUnit 4 to 4.13
+- Type casts in conditions are... | 3 | 1 | 1 | [{"id": "G0", "claim": "The record method-call expression is created even though it may be discarded in the CastExpression case, and the change may mess up the recordCount.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "New tests are probably needed i... | null |
spockframework__spock__1132 | spockframework/spock | 1,132 | defect | e763c59026f196366862c0950e9108bcf9c5dcf4 | b99331d7014d46d98170b4e32dccbbe2dcd2964f | Add MutableClock as new test utility |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/spockframework/spock/1132)
<!-- Reviewable:end -->
| diff --git a/.gitignore b/.gitignore
index 21ef32c7ea..c17f8bfa93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,4 @@ stacktrace.log
/shippable/
Foo.*
+/.shelf/
diff --git a/docs/all_in_one.adoc b/docs/all_in_one.adoc
index 08cc0520b4..4e2baa4648 100644
--- a/docs/all_in_one.adoc
+++ b/docs/all_in_one.adoc
@... | 3 | 3 | 1 | [{"id": "G0", "claim": "Simplify the instant-range assertions in the two \"initialized with current time\" tests from `it.isAfter(start) || it == start` / `it.isBefore(end) || it == end` to `!it.isBefore(start)` / `!it.isAfter(end)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i... | null |
spockframework__spock__1345 | spockframework/spock | 1,345 | defect | 567b8b0ae792b0389ae874c02e827da39446b943 | 6d701f88fb1b69e1a14f8f598225964627d5d10a | Build MethodSource with the correct spec class name. | The combination of Spock, Junit5, and the maven Surefire plugin prevents tests from running if they're inherited from a parent class.
Consider this scenario:
```groovy
class MyParentSpec extends Specification {
def 'some test'() {
when: 'A thing happens'
def foo = 'someValue'
then: ... | diff --git a/build.gradle b/build.gradle
index 3462f40ebe..b5d32a4b50 100755
--- a/build.gradle
+++ b/build.gradle
@@ -68,8 +68,7 @@ ext {
junitPlatformConsole: [group: 'org.junit.platform', name: 'junit-platform-console'],
log4j : [group: 'log4j', name: 'log4j', version: '1.2.17'],
objenes... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add tests for the MethodSource fix, perhaps using the EngineTestKit.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "MethodSource is supposed to contain the declaring class, and the filtering problem is a bug in the surefire plugi... | null |
spockframework__spock__1729 | spockframework/spock | 1,729 | defect | 8af7477b7ef210a626794487d3f5b17d63df9978 | a546a736c05de38d2587ede0708e5526006356a9 | ByteBuddyMockFactory adds `@Internal` annotation to Groovy MOP methods | The Groovy 3 & 4 runtime expects to have the `@Internal` annotation on the MOP methods from `GroovyObject`. That `AbstractCallSite.createGroovyObjectGetPropertySite()` processes it as `GroovyObject`. So the `ByteBuddyMockFactory` now adds the `@Internal` annotation to the intercepted MOP methods.
After that the "Una... | diff --git a/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java b/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java
index 030b835b08..10b5e7bde8 100644
--- a/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java
+++ b/spock-co... | 20 | 20 | 0 | [{"id": "G0", "claim": "The ReflectionUtil.isClassAvailable() guard for groovy.transform.Internal looks insufficient (shouldn't the annotation be fully qualified) and, since Internal is present in all supported Groovy versions, the guard seems unnecessary.", "category": "design", "verdict": "supported", "priority": "P2... | null |
spockframework__spock__1778 | spockframework/spock | 1,778 | defect | 31985e3dad9577e877aac90a2b5923752725e088 | cbc0e5ca4373dc4e925d54648c99803e22520f58 | Use multiple locks in ByteBuddyMockFactory to reduce lock contention | Changed locking scheme in ByteBuddyMockFactory from a single global lock CACHE to cacheLocks with size 16.
The used TypeCachingLock from cacheLocks depends on the hashcode of TypeCache.SimpleKey,
which aggregates the types to mock.
The old global CACHE lock did block Threads regardless, if they try to mock the s... | diff --git a/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java b/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java
index 030b835b08..2c932891f1 100644
--- a/spock-core/src/main/java/org/spockframework/mock/runtime/ByteBuddyMockFactory.java
+++ b/spock-co... | 10 | 8 | 0 | [{"id": "G0", "claim": "The two 'Caution' doc comments coupling CACHE_LOCK_SIZE and CACHE_LOCK_MASK could be automatically handled by deriving CACHE_LOCK_SIZE as CACHE_LOCK_MASK + 1 and adding a test that ensures CACHE_LOCK_MASK has all 0-bits on the left and all 1-bits on the right, or otherwise a test ensuring this c... | null |
spockframework__spock__1994 | spockframework/spock | 1,994 | defect | 67d615e1307d622aa97a8d64a40b75462604f82b | 5496fb13a193ecf3793dcc2336509a691a2a405d | Add IDefaultValueProviderExtension | to make EmptyOrDummyResponse extensible for types that need special handling. | diff --git a/build.gradle b/build.gradle
index 134d8bcfce..66688ef62c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -129,6 +129,9 @@ subprojects {
groovy {
srcDir "src/${ss.name}-groovy-le-$gv/groovy"
}
+ resources {
+ srcDir "src/${ss.name}-groovy-le-$gv/resources"
+ }
}
... | 4 | 4 | 2 | [{"id": "G0", "claim": "An implementation sample referenced from a doc test would be nice for the new Default Value Provider Extensions documentation section.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The entry in the release_notes.adoc for t... | null |
spockframework__spock__2262 | spockframework/spock | 2,262 | defect | b2e8c39190a3be8711b580440756e210d7ac2a41 | ba9cff6a2711136176f8060d18926df4a6c90a8b | Add spring7 tests |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added a Spring 7 test module with Java 17 toolchain and new tests verifying Spring integration and runtime compatibility.
* **Bug Fixes**
* Broadened detection of injection/resource annotatio... | diff --git a/settings.gradle b/settings.gradle
index 42141917cc..27963619eb 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -104,6 +104,7 @@ if (variant == 2.5) {
// require Java 17 which isn't supported by Groovy 2.5
include "spock-spring:boot3-test"
include "spock-spring:spring6-test"
+ include "spock... | 9 | 3 | 1 | [{"id": "G0", "claim": "Move the hardcoded springVersion in spring7-test.gradle into libs.versions.toml (e.g. a spring7Version entry like junit's) and reference it from a dependency, so Renovate can update it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
spookylukey__django-paypal__128 | spookylukey/django-paypal | 128 | defect | 50a01bcd07837578279a5ac7a51d80e1c1525419 | b87c936165461bb0e9b28cb556af71d8b423969c | #77 remove required settings var PAYPAL_RECEIVER_EMAIL to allow different… | Remove required settings var **PAYPAL_RECEIVER_EMAIL** to allow different receiver emails.
It only affects standard payments (IPN and PDT).
Checks if the _settings.PAYPAL_RECEIVER_EMAIL_ exists in settings when validating the received payment information, and in that case it issues a DeprecationWarning and has the pr... | diff --git a/CHANGES.rst b/CHANGES.rst
index 1fad9c4..266e0e6 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -9,6 +9,12 @@ detailed information about all changes.
Below is a summary:
+Version 0.3.1
+-------------
+* Removed PAYPAL_RECEIVER_EMAIL from settings to allow multiple receiver emails
+ in a single app. No... | 6 | 6 | 5 | [{"id": "G0", "claim": "The changelog entry for removing PAYPAL_RECEIVER_EMAIL should go under the not-yet-released version 0.3 section instead of a new Version 0.3.1 heading.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should nam... | null |
spotDL__spotify-downloader__1178 | spotDL/spotify-downloader | 1,178 | defect | 7cc168084d76b7d19f0a9af5179eb6e35d4802a8 | 3cd7677ea0e7fa693fc7c990feac5eb5a1e11ea0 | Lint with flake8, fix code to pass it | There are no changes in functionality - mostly fixed formatting issues like line breaks, spacing etc.
This is the first stage of `flake8` introduction, later I'll add some plugins to check for more.
Additionally, `mypy` is extracted to a separate job in CI. | diff --git a/.github/workflows/spotify-downloader-ci.yml b/.github/workflows/spotify-downloader-ci.yml
index 97be33a1d..4793a965b 100644
--- a/.github/workflows/spotify-downloader-ci.yml
+++ b/.github/workflows/spotify-downloader-ci.yml
@@ -30,6 +30,38 @@ jobs:
env:
PLATFORM: ${{ matrix.platform }}
... | 2 | 1 | 0 | [{"id": "G0", "claim": "A note should be added to CONTRIBUTING.md telling developers to lint with flake8 before pushing changes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the `from .__main__ import console_entry_point` line from spot... | null |
spotDL__spotify-downloader__1224 | spotDL/spotify-downloader | 1,224 | defect | 585ffd632eaf96b98f6003c3f7074f0ae64d3152 | effdb2aedf14832254602c599dbb8e5f4b1441f0 | check errors from ffmpeg sub process | This pull request is based on code from @mikeblas pr #1167 with few improvements suggested by @aklajnert.
For information on what this pull request fixes, see the original pull request #1167 | diff --git a/spotdl/download/downloader.py b/spotdl/download/downloader.py
index e12333e29..38aee9d06 100644
--- a/spotdl/download/downloader.py
+++ b/spotdl/download/downloader.py
@@ -6,7 +6,7 @@
import sys
from pathlib import Path
# ! The following are not used, they are just here for static typechecking with mypy... | 10 | 10 | 3 | [{"id": "G0", "claim": "The test suite fails with the pull request applied and the author does not know how to fix it; aklajnert proposes patching ffmpeg.has_correct_version in the test setup so the tests pass.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "clai... | null |
spotDL__spotify-downloader__1244 | spotDL/spotify-downloader | 1,244 | defect | 9fac26761cd0495dd1ea38acb18d3fad810e5041 | c8d185340ed94959297e5bfcf30e4fefddf51eec | More output formats | Convert downloaded songs to user-specified format (m4a, mp3, ogg, flac, opus) with the `--output-format ` parameter and tag them accordingly.
| diff --git a/.gitignore b/.gitignore
index cc6bbc7a9..24694811d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,11 @@
*.log
*.spotdlTrackingFile
*.mp3
-*.mp4
+*.m4a
+*.flac
+*.opus
+*.ogg
+Temp/
# Python
__pycache__
diff --git a/spotdl/__main__.py b/spotdl/__main__.py
index 099a58108..c6fb97070 100644
--- a/... | 6 | 6 | 2 | [{"id": "G0", "claim": "The blank line added in DownloadManager.__init__ carries trailing whitespace and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using a mutable dict as a default argument (arguments: dict = {}) on downl... | null |
spotDL__spotify-downloader__1303 | spotDL/spotify-downloader | 1,303 | defect | 4ab975fe3de4097a6284adf5cbb032816f41938c | a733bf97bd729768eb81a6c6ea1289b6d94ace04 | Quality of life improvements | # Title
Quality of life improvements
## Description
Few qol improvements
## Related Issue
#1302
## Motivation and Context
look at commit messages
## How Has This Been Tested?
pytest tox
## Screenshots (if appropriate)
## Types of Changes
<!--- What types of changes does your code introduce? Put... | diff --git a/spotdl/__main__.py b/spotdl/__main__.py
index fbc680ad0..251f57154 100644
--- a/spotdl/__main__.py
+++ b/spotdl/__main__.py
@@ -2,6 +2,7 @@
import signal
import sys
import argparse
+import pkg_resources
import os
# ! The actual download stuff
@@ -104,6 +105,12 @@ def console_entry_point():
This... | 1 | 1 | 0 | [{"id": "G0", "claim": "The --version argument's help text should read \"Show spotDL's version and exit\" instead of \"Show program's version number and exit\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
spotDL__spotify-downloader__1602 | spotDL/spotify-downloader | 1,602 | defect | e9acd7913e5fcc76c7c5bfb05808db74341eceff | 4d47f96f27a31ce7f83c71ee52dff692f7dbedc7 | Add archive to skip downloaded songs | # Title
Add an archive file to skip downloaded songs analog to yt-dlp.
## Description
After the successful download of a song it's url is put into a cache.
Pre-download every song's url is checked against the cache and skipped if found since it was already downloaded.
The cache is saved to a file after all downl... | diff --git a/docs/usage.md b/docs/usage.md
index be16465fd..28a1983a1 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -295,6 +295,7 @@ Output options:
--restrict Restrict filenames to ASCII only
--print-errors Print errors (wrong songs, failed downloads etc) on exit, useful for long playlist
... | 4 | 1 | 0 | [{"id": "G0", "claim": "The reviewer suggests the archive check could be moved from download.py into the downloader.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer suggests the archive could use .spotdl files instead.", "category": "design",... | null |
spotDL__spotify-downloader__1664 | spotDL/spotify-downloader | 1,664 | defect | 32289fd9bd7cae6cf1b0b2fdeda307c1eb9df365 | dd25898a8d029fbd1ec23716a3af8e736e1585b1 | Turns Spotify playlists into albums when downloaded | # Title
Turns Spotify playlists into albums when downloaded.
## Description
These changes allow the user to specify --playlist-numbering on the command-line, to enable spotdl to:
1. Set track number to index in the playlist
2. Set album name to playlist name
3. Set album cover to playlist icon
4. Set album a... | diff --git a/mkdocs.yml b/mkdocs.yml
index 4641fbebd..1f7809d0c 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -21,6 +21,8 @@ theme:
name: material
features:
- content.code.annotate
+ - navigation.tabs
+ - navigation.top
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
@@ -36,9... | 3 | 3 | 1 | [{"id": "G0", "claim": "The docstring of reinit_song should document the newly added playlist_numbering argument.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The debug print of playlist[\"images\"] in Playlist.get_metadata should be removed (th... | null |
spotDL__spotify-downloader__1798 | spotDL/spotify-downloader | 1,798 | defect | e3a79490700837da7b342c569157c23ba004a133 | ca7a4db8feee3c59028c8218e751677362bf3841 | Slider.kz audio provider | # Slider.kz audio provider
## Description
I really liked this tool, but I don't like the bitrate that youtube offers.
There is a website that offers a large number of audio files in higher quality, it is slider.kz.
## Related Issue
#1797
## Motivation and Context
It provides audio in higher quality usin... | diff --git a/spotdl/download/downloader.py b/spotdl/download/downloader.py
index 65b74b59d..fcf0ded72 100644
--- a/spotdl/download/downloader.py
+++ b/spotdl/download/downloader.py
@@ -17,7 +17,7 @@
from yt_dlp.postprocessor.sponsorblock import SponsorBlockPP
from spotdl.download.progress_handler import ProgressHan... | 10 | 9 | 6 | [{"id": "G0", "claim": "The commented-out YouTube/YouTubeMusic import lines at the top of spotdl/utils/matching.py are unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded blackwords blocklist in calc_name_m... | null |
spotDL__spotify-downloader__225 | spotDL/spotify-downloader | 225 | defect | 8b54dc5e8879eaa294be998cba8922e4186305fb | 9810ef55225ee26776e77a74b3697f70309ce95e | Change default music folder | Addresses #203.
I need to check more on this before merge. | diff --git a/core/handle.py b/core/handle.py
index c7ca5d363..52327e179 100644
--- a/core/handle.py
+++ b/core/handle.py
@@ -14,7 +14,7 @@
{ 'manual' : False,
'no-metadata' : False,
'avconv' : False,
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added for the pull request's new default-music-folder logic, as ritiek had proposed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spotDL__spotify-downloader__229 | spotDL/spotify-downloader | 229 | defect | 7f7c3d6f582fbc8e4fed6ccc1b106879adaf1c89 | b0d5895180c584ba45831549b5bb8812a3479860 | Introduce releases | Here we go.
@ritiek if you're already fine with merging (that's why I'm creating a PR here), I'll publish `v1.0.0-beta.1` aka `1.0.0b1` (PyPI) so the instructions updated in the README will actually work. | diff --git a/.gitignore b/.gitignore
index 7e56bc1eb..d2a03d9e9 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,111 @@
config.yml
Music/
*.txt
-.coverage
+upload.sh
+.pytest_cache/
-*.pyc
+
+# Byte-compiled / optimized / DLL files
__pycache__/
-.cache/
-.pytest_cache/
+*.py[cod]
+*$py.class
+
+# C extensions... | 5 | 4 | 2 | [{"id": "G0", "claim": "The console-script entry point should be `spotdl = spotdl:main` rather than `spotdl = spotdl:cli`, since the PR defines `main()` and not `cli`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Generating `config.yml` next to th... | null |
spotDL__spotify-downloader__380 | spotDL/spotify-downloader | 380 | defect | e720cbcf9301a9aa49395485d81883f3319f9fb7 | a5a279147e32a62e4f2e662ef08397013777c95d | Overwrite track file with unique tracks | Closes #370.
> Fix this by filtering duplicates from track file and re-writing track file with unique tracks so that tracks from track file are deleted in proper order. | diff --git a/spotdl/internals.py b/spotdl/internals.py
index 24619015b6..c69e7ecb54 100755
--- a/spotdl/internals.py
+++ b/spotdl/internals.py
@@ -158,6 +158,25 @@ def get_splits(url):
return splits
+def get_unique_tracks(text_file):
+ """
+ Returns a list of unique tracks given a path to a
+ file con... | 2 | 2 | 0 | [{"id": "G0", "claim": "get_unique_tracks should use the new remove_duplicates function instead of list(set(lines)) IMO.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_unique_tracks should also ignore whitespace-only lines, e.g. via lines = [line for... | null |
spotDL__spotify-downloader__389 | spotDL/spotify-downloader | 389 | defect | 2725402ab3d548e5161280afe65244fa64706979 | 6aac48073af624aadfbf564dbbbcf14c744d72ca | added the ability to get all artist's songs as suggested by #366 | now all the tracks of an artist can be fetched into a txt file using the -ab option as suggested by #366
``
spotdl -ab SPOTIFY_ARTIST_URL
``
a test has also been written & passed | diff --git a/spotdl/handle.py b/spotdl/handle.py
index 0eb028ea7..a35e844cd 100644
--- a/spotdl/handle.py
+++ b/spotdl/handle.py
@@ -101,6 +101,9 @@ def get_arguments(raw_args=None, to_group=True, to_merge=True):
group.add_argument(
'-b', '--album',
help='load tracks from album URL in... | 5 | 5 | 2 | [{"id": "G0", "claim": "Converting the artist URL into a Spotify URI is unnecessary; passing artist_url directly to spotify.artist_albums should work.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The album name should be logged (log.info) befo... | null |
spotDL__spotify-downloader__414 | spotDL/spotify-downloader | 414 | defect | be4bb25c96a88a9bd724030588d235254fa25d7b | 1484ca62d5b1bade78140f01d5934329d1339eb3 | --list flag accepts only text files using mimetypes | I ended up implementing the mime-type checking using python's built-in `mimetypes`. It gets the job done but isn't as accurate as the [python-magic library](https://github.com/ahupp/python-magic) originally proposed.
The reason I substituted away was because `python-magic` would add another dependency. Although if ... | diff --git a/spotdl/handle.py b/spotdl/handle.py
index 81464dee3..2cd5cac3f 100644
--- a/spotdl/handle.py
+++ b/spotdl/handle.py
@@ -5,6 +5,7 @@
import logging
import yaml
import argparse
+import mimetypes
import os
import sys
@@ -263,6 +264,10 @@ def get_arguments(raw_args=None, to_group=True, to_merge=True):
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Avoid assigning the local `file` variable (it shadows a removed Python 3 builtin and editors highlight it) and use `parsed.list` directly in the checks instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For consisten... | null |
spotbugs__spotbugs__1183 | spotbugs/spotbugs | 1,183 | defect | 55eaedb042b672b4c3fd16b5515ba0a4dfc2124b | 5a8151ea76d9268760faf910e6136f0d2f778894 | * Added bug pattern "OVERRIDING_METHODS_MUST_INVOKE_SUPER" | * changed class name from CbeckMustOverrideSuperAnnotationTest to OverridingMethodsMustInvokeSuperDetector.
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [X] Added an entry into `CHANGELOG.md` if you have changed SpotBugs code
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index cccf14107d9..6d6e38f2484 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/sp... | 1 | 1 | 0 | [{"id": "G0", "claim": "In getEffectiveMethodSig, the 'if (bridgeFrom != null) ... else' construct is a double negative that would be more readable if written positively.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
spotbugs__spotbugs__1334 | spotbugs/spotbugs | 1,334 | defect | b9027f7c16ce6c01c4113abe0d19a65d86337882 | 7e7b40a8bbca4a47ba17c4546ac441ecd26ef93c | fix for issue 1254, support nested private member access from JEP 181 | JEP 181 defines relaxed access rules for private members of nested
classes, removing the need for synthetic methods to access private
members of inner/outer classes. Instead, byte code contains e.g. a
method reference constant and the relaxed access rules make the method
call legal.
This changes makes spotbugs a... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2081e663ea..4da3eaa21e1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/sp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new changelog entry should be placed below the already existing \"### Fixed\" topic instead of adding a new \"### Fixed\" heading above it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotbugs__spotbugs__1500 | spotbugs/spotbugs | 1,500 | defect | ff6582e50cc649a6a81f278aa3d43d485f9b7a52 | 4f3879c4465027dd321e347dd24a46ed4a89ccea | Add new rule set PA_PUBLIC_PRIMITIVE_ATTRIBUTE, PA_PUBLIC_ARRAY_ATTRIBUTE and PA_PUBLIC_MUTABLE_OBJECT_ATTRIBUTE | SEI CERT rule OBJ01-J requires that accessibility of fields must be
limited. In general, requiring that no fields must be public is
overkill and unrealistic. Even the rule mentions that final fields
may be public, except if the type of the field is a mutable reference
type which can be modified despite the referenc... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e2120bd0fde..fc9f7ac0fab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Should issue warning for SecureRandom object created and used only once ([#1464](https://github.com/s... | 20 | 17 | 2 | [{"id": "G0", "claim": "Fix the typos and wording in the new CHANGELOG entry ('losely' should be 'loosely', 'AND' should be 'and', with the suggested phrasing).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the misspelling 'metgods' ('methods... | null |
spotbugs__spotbugs__1541 | spotbugs/spotbugs | 1,541 | defect | 32ddc736448c21b9882f30258d56cc636bbe15fd | 65221bb387f6fefe486590783062548ff18968f7 | Add new rule REFL_REFLECTION_INCREASES_ACCESSIBILITY_OF_CLASS | SEI CERT rule SEC05-J forbids the use of reflection to increase
accessibility of classes, methods or fields. If a class in a package
provides a public method which takes an instance of java.lang.Class as
its parameter and calls its newInstance() method then it increases
accessibility of classes in the same package ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8222d07154..b34bf28821f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Changed
* Bump Saxon-HE from 10.3 to 10.5 ([#1513](https://github.com/spotbugs/spotbugs/pull/1513))
... | 11 | 9 | 3 | [{"id": "G0", "claim": "There should at least be a comment explaining why the detector takes no action in the empty catch of ClassNotFoundException.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should not point to SecurityManag... | null |
spotbugs__spotbugs__1580 | spotbugs/spotbugs | 1,580 | defect | 0ddfa34ab5eea2294086cb566bce353ddf3b8a2d | f25914d2d6369cf22019426a982c234d1e925ea1 | Extend FindReturnRef to warn for exposing buffers | SEI CERT rule FIO05-J requires that buffers or their backing arrays
should not be exposed by methods to untrusted code. This patch
implements the check for such behavior in the already existing detector
FindReturnRef. To make the error easier to understand for the user
we did not reuse the existing messages but instead... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 366885663f7..14ba8129fbf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,11 +6,17 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2021-??-??
+### Fixed
+- `MS_EXPOSE_REP` and `EI_EXPOSE_REP` are now reported for c... | 6 | 5 | 1 | [{"id": "G0", "claim": "Aren't bug pattern abbreviations in findbugs.xml supposed to be unique, given that MS_EXPOSE_BUF reuses the abbrev \"MS\" already used by MS_EXPOSE_REP?", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The EI_EXPOSE_BUF details text m... | null |
spotbugs__spotbugs__1976 | spotbugs/spotbugs | 1,976 | defect | 6a0dc0362751a570fed37b35825272d57ceeeb3d | fc54ce08c14ffce2b8ee2133ff620ba2dbdb66b3 | Added new detector for NUM09-J: Do not use floating-point variables as loop counters | Added new detector for NUM09-J: Do not use floating-point variables as loop counters.
Using floating-point variables should not be used as loop counters, as they are not precise, which may result in incorrect loops. A loop counter is a variable that is changed with each iteration and controls when the loop should term... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9fedb35861e..3083681fc6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Bumped Saxon-HE from 10.6 to 11.2 ([#1955](https://github.com/spotbugs/spotbugs/pull/1955))
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The bugReporter field of DontUseFloatsAsLoopCounters should be declared private final.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotbugs__spotbugs__2125 | spotbugs/spotbugs | 2,125 | defect | b1c2a5ecebe33328b3c5fb951641ef658ec82b3a | 0494ea45fab027e65f1dbc19f883388aadbf0cfb | New bug type: AA_ASSERTION_OF_ARGUMENTS | Using assertions to validate arguments of public functions is a bad and dangerous practice because the validation does not happen if assertions are disabled, thus the behavior of the program depends on this compilation option. Therefore, we introduced a new detector `FindArgumentAssertions` to detect such cases and re... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cefc5a39a1a..e3a2b54a169 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2022-??-??
+### Added
+- New detector `FindArgumentAssertions` detecting bug `ASSERTI... | 8 | 7 | 1 | [{"id": "G0", "claim": "The messages.xml description should read \"validate\" instead of \"validates\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc should spell \"number\" instead of \"numbor\".", "category": "documentation", "verdi... | null |
spotbugs__spotbugs__2141 | spotbugs/spotbugs | 2,141 | defect | 6b8f2d08708f2144badece3778705aa4121672c5 | 9303a7e308c5c6da02762335a3b90e0dcf12e0e4 | Fix for false positives `EI_EXPOSE_REP` in case of unmodifiable collections | The methods `of` and `copyOf` of `List`, `Map` and `Set` return an unmodifiable collection. Thus if final fields are initiablized using these methods then returning them is not dangerous.
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [X] Added an entry into `CHANGELOG.md` if you ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e01026fd1df..41bf61e9843 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2022-??-??
### Fixed
- Fixed InvalidInputException in Eclipse while bug reporting ([#21... | 3 | 2 | 0 | [{"id": "G0", "claim": "The changelog entry added by this PR misspells the bug type as `EI_EXPORES_REP` instead of `EI_EXPOSE_REP`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The three new near-identical `of`/`copyOf` branches in processMethod... | null |
spotbugs__spotbugs__2170 | spotbugs/spotbugs | 2,170 | defect | b119457e7536a7df063e099429a769e14377c53b | aecf8b7159997d9cfc3483016260bdb216d31b22 | Fix for detector `UncallableMethodOfAnonymousClass` to not report unused methods of method-local enumerations and records | During compilation, enumerations and records are turned into Java classes with some auto-generated methods. Some of these methods are called by the code but some of them not. However, this is not a programming error or bad practice, these methods must not be considered as dead code because their generation cannot be pr... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c2c2404511c..4187053d1b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2022-??-??
### Fixed
- Fixed detector `DontUseFloatsAsLoopCounters` to prevent false po... | 2 | 2 | 2 | [{"id": "G0", "claim": "The test case is not enough to reproduce the reported problem: it still passes even when the detector change is reverted.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Skipping the whole class for enums means extra methods added... | null |
spotbugs__spotbugs__2186 | spotbugs/spotbugs | 2,186 | defect | 27bea954fff1048b81bfa7e94a25535efef84621 | 990292e8fa06b1b92297fbc0bb413a8f032f7214 | Fix detector StringConcatenation to detect bug SBSC_USE_STRINGBUFFER_CONCATENATION also in Java 11 and above | Instead of using `StringBuffer` or `StringBuilder` internally, Java 11 and above uses a dynamic call to `makeConcatWithConstants()` to append strings. However, in case of loops, this is still less efficient than creating a `StringBuffer` or `StringBuilder` outside the loop and using it inside to build the string. Previ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e5bd35b1327..57240eaeddf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fixed detector `DontUseFloatsAsLoopCounters` to prevent false positives. ([#2126](https://gi... | 2 | 2 | 0 | [{"id": "G0", "claim": "The repeatedly referenced getRegisterOnStack() call in the SEEN_NEW branch should be extracted to a local variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if statement in the new Issue2182 test should always u... | null |
spotbugs__spotbugs__2187 | spotbugs/spotbugs | 2,187 | defect | 27bea954fff1048b81bfa7e94a25535efef84621 | 451a52b7730ecacc9e5b822dcc1db99b48aba82e | Fix detector FindSqlInjection to detect bug SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE with high priority also in Java 11 and above | Instead of using `StringBuffer` or `StringBuilder` internally, Java 11 and above uses a dynamic call to `makeConcatWithConstants()` to append strings. However, in case of loops, this is still less efficient than creating a `StringBuffer` or `StringBuilder` outside the loop and using it inside to build the string. Previ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e5bd35b1327..a701b1e26a8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fixed detector `DontUseFloatsAsLoopCounters` to prevent false positives. ([#2126](https://gi... | 3 | 2 | 0 | [{"id": "G0", "claim": "The CHANGELOG.md line 'improve compatibility with later version of jdk (>= 13).' should start with a capital letter.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The body of isJava9AndAboveStringAppend could be collapsed ... | null |
spotbugs__spotbugs__2234 | spotbugs/spotbugs | 2,234 | defect | 13ecf11f2137fb0d518eb1e23ff8767ad1377e97 | ddc9bcaec5e97987944dcfc225f196e97f175624 | implement reportMissingClass(ClassDescriptor) next to reportMissingClass(ClassNotFoundException) | Fixed #219
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [x] Added an entry into `CHANGELOG.md` if you have changed SpotBugs code
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 405100c6ce2..9c79dc29ddc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2022-??-??
### Fixed
- Bump up slf4j-api to 2.0.3 ([#2220](https://github.com/spotbugs/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use ClassDescriptor#getDottedClassName() instead of getClassName() in the new reportMissingClass(ClassDescriptor) methods, because getClassName() returns a slashed name while the existing reportMissingClass(ClassNotFoundException) path uses dotted names, so the new methods should stay consistent... | null |
spotbugs__spotbugs__2319 | spotbugs/spotbugs | 2,319 | defect | 010159103cb4ad4a2fb5e0e41c8d09b31c853819 | bc93fcd721040baefff9b8107ba9a85653739d39 | Large command line args |
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [X] Added an entry into `CHANGELOG.md` if you have changed SpotBugs code
- [X] Created test for introduced code
Let me know if I need something else. I'll try and see if I can check github once in a while.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index be45550e73f..e40d9bb5c9e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Bump up Apache Commons BCEL to the version 6.6.1 ([#2223](https://github.com/spotbugs/spotbugs/pull/222... | 3 | 1 | 0 | [{"id": "G0", "claim": "The name of the test testWriteArgsToFile should ideally say more about the expected outcome.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since UnionBugs2 creates a temp file named spotbugs-argument-file.txt, UnionResul... | null |
spotbugs__spotbugs__2326 | spotbugs/spotbugs | 2,326 | defect | 010159103cb4ad4a2fb5e0e41c8d09b31c853819 | 41c2d5fc620ab3a2baf731b36b89cbf3e9a84e9e | Unused field not reported due to assumed reflection | This change ensures an unused field is reported despite assumptions on reflection use for the defining class.
If reflection is assumed, the priority of the created spotbugs problem is lowered.
Fixes: #2325
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [ ] Added an e... | diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/UnreadFields.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/UnreadFields.java
index bbf65e6d59f..88233c95880 100644
--- a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/UnreadFields.java
+++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/U... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add a trivial regression test under spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect covering the new reflective-class reporting.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add an entry to the CHANGELOG.md file for thi... | null |
spotbugs__spotbugs__2426 | spotbugs/spotbugs | 2,426 | defect | 90be61f4acd32f85b51f9ac44b971e14fc77187a | 06266a9594e3309e26fad4aedd2b56518513b997 | SER11-J. Prevent overwriting of externalizable objects | I extended the `SerializableIdiom` detector to check `readExternal()` function for the SER11-J bug.
I created several test classes to make sure that every assigned class variable are need to be in an if condition. Also I checked that the variable in the if condition will get a new value. (so the initialized variable... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5d7ae06f23c..135882968ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Added
* New simple name-based AnnotationMatcher for exclude files (now bug annotations store the c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The description of the new SE_PREVENT_EXT_OBJ_OVERWRITE bug pattern doesn't say anything about how the issue might be resolved.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotbugs__spotbugs__2467 | spotbugs/spotbugs | 2,467 | defect | 2775ed57559950fad364e6c17ddbf6e5cced4179 | 1b932e8771018ce362649d2719d5db068697f8dc | New detector for MET07-J | I have implemented a checker named "FindHidingSubClass" for [SEI CERT MET07-J](https://wiki.sei.cmu.edu/confluence/display/java/MET07-J.+Never+declare+a+class+method+that+hides+a+method+declared+in+a+superclass+or+superinterface)
The checker proved to be effective in identifying potential vulnerabilities in Java cod... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5de9e9ea76a..4c704b6290e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,6 +34,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Make TypeQualifierResolver recognize org.apache.avro.reflect.Nullable ([#2066](https://github.com/spo... | 28 | 24 | 3 | [{"id": "G0", "claim": "A word is missing in the new detector and bug pattern descriptions: 'provides unambiguous rules method invocation' should read 'provides unambiguous rules for method invocation', in both copies of the text.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
spotbugs__spotbugs__2502 | spotbugs/spotbugs | 2,502 | defect | da14c6c323e7ca0f619e5cbea066870c7971b5de | 9b6382afe9ca476f47061590ac9f059ad2967f9c | Annotations on generic or array incorrectly considered fix | The NonNull annotations might be on the return type or on the parameters but it might also be on generics of the corresponding types. When they are on the return/parameter we should consider them, when they are on the generics we (currently) should ignore them.
For instance `List<@NonNull V>` means that the list con... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b8286fe84c6..cf5ca7af994 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+
# Changelog
This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http://keepachangelog.com/en/1.0.0/).
@@ -22,6 +23,7 @@ Currently the versioning policy of thi... | 2 | 2 | 0 | [{"id": "G0", "claim": "The single test method repeats near-identical matcher/assert pairs, and it would be easier to read if the assertions were factored into a few helper functions taking the bug type, method name and expected count as parameters.", "category": "maintainability", "verdict": "supported", "priority": "... | null |
spotbugs__spotbugs__2509 | spotbugs/spotbugs | 2,509 | defect | da14c6c323e7ca0f619e5cbea066870c7971b5de | 417d02dd86e75f959dc971285793fbb559c690a3 | Not able to detect SE_NO_SERIALVERSIONID bug - added unit test |
----
Make sure these boxes are checked before submitting your PR -- thank you!
- [v] Added an entry into `CHANGELOG.md` if you have changed SpotBugs code
| diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue2436Test.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue2436Test.java
new file mode 100644
index 00000000000..e3db88acd0d
--- /dev/null
+++ b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue2436Test.java
@@ -0,0 ... | 4 | 4 | 2 | [{"id": "G0", "claim": "Please add at least a bug type to the BugInstanceMatcher so the test actually verifies SE_NO_SERIALVERSIONID is reported.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test case file is not about lambdas, so please move it t... | null |
spotbugs__spotbugs__2681 | spotbugs/spotbugs | 2,681 | defect | 00002675024abcffb7917df1508b9bf364068d39 | d73c9e842e4a625eba0edde54b7afc9346721af5 | New detector for Env Var usages instead of Java Properties | New detector which finds environment variable usages (`System.getenv()` calls), where Java Properties (`System.getProperty()`) could have been used. The latter is more portable and secure. Since there is no Java Property for every environment variable, a black list of the corresponding pairs are used.
I used the Java... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c9dc898d7e..d2cb53b7c72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,7 +10,8 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fixed false positive UPM_UNCALLED_PRIVATE_METHOD for method used in JUnit's MethodSource (... | 7 | 6 | 4 | [{"id": "G0", "claim": "The detector's security rationale is wrong (an attacker who can control ProcessBuilder can change system properties just as easily as environment variables), so the detector should be disabled by default to avoid spreading false information.", "category": "correctness", "verdict": "opposed", "pr... | null |
spotbugs__spotbugs__2694 | spotbugs/spotbugs | 2,694 | defect | 00bd670861d465a52e24a607e249383dd267a155 | 3be2f9dddf0c91fcc177b99e5da5b48221c275ad | Some `NonNull` annotations not recognized | Added support for:
- `edu.umd.cs.findbugs.annotations.NonNull`
- `edu.umd.cs.findbugs.annotations.Nullable`
- `org.netbeans.api.annotations.common.NonNull`
- `org.netbeans.api.annotations.common.NullAllowed`
- `lombok.NonNull` | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c9dc898d7e..13e94d5db8d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fixed false positive UPM_UNCALLED_PRIVATE_METHOD for method used in JUnit's MethodSource (... | 5 | 3 | 1 | [{"id": "G0", "claim": "In TypeQualifierResolver the class names are repeated as hard-coded strings, duplicated between the NULL and NONNULL branches and poorly organized, so they should be extracted into constants (or enums), grouped, and the common code refactored into a separate method.", "category": "maintainabilit... | null |
spotbugs__spotbugs__2709 | spotbugs/spotbugs | 2,709 | defect | 21277febab0f8f622cd1c8c412ef9a137774c435 | 98522175d1030e1131d47ebeaf62c39b78ba2e5e | Fix NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE does not consider null val… | This fixes the issue reported in
- https://github.com/spotbugs/spotbugs/issues/651
- https://github.com/spotbugs/spotbugs/issues/456
NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE is raised when using Objects.requireNonNull whereas it's not raised when using Guava Preconditions.checkNotNull.
----
Make sure these bo... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0fc8aeb6eb2..c80644fd3ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Eclipse: Do not export javax.annotation packages ([[#2699](https://github.com/spotbugs/spotbugs/pull/... | 7 | 5 | 1 | [{"id": "G0", "claim": "Add unit tests for the other null-check methods mentioned in #651 (com.google.common.base.Verify.verifyNotNull, com.google.common.base.Preconditions.checkNotNull, org.apache.commons.lang Validate.notNull), not just Objects.requireNonNull.", "category": "testing", "verdict": "supported", "priorit... | null |
spotbugs__spotbugs__2745 | spotbugs/spotbugs | 2,745 | defect | 5c07528ecc3a9e9d9a7ee5e1141c596836245621 | a66a522f57df4b0b21dd54ddb415fec01bdf20f0 | omit null value in SARIF taxonomies property | This fixes a conflict with the SARIF specification regarding [`taxonomies`](https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790742) where SpotBugs would add a null value into the list if no other taxonomy was applicable.
The current implementation can create pr... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 450a3ec558d..654b0eba464 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fix FP in CT_CONSTRUCTOR_THROW when the finalizer does not run, since the exception is thr... | 4 | 4 | 1 | [{"id": "G0", "claim": "The pull request's change to the SARIF output should have tests added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the results assertions should also state that `results` may be empty, not only null.", "categ... | null |
spotbugs__spotbugs__2873 | spotbugs/spotbugs | 2,873 | defect | 5ebd4439f6f8f2c11246b79f58c44324718d39d8 | e2ade4109a6f874d3c1e566d8179b56cdf99e610 | Do not report `URF_UNREAD_FIELD` for fields with certain annotations | Since there was no answer in #1861 I've merged the proposed changes and made my own changes on top:
- Upgraded the test to JUnit 5
- Replaced the annotation classe references by class names so there's no runtime dependency
- Added jakarta annotations
I think the comment to move `UnreadFieldsAnnotationChecker` int... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c9f7c7449c1..8773becfeab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Fixed error preventing SpotBugs from reporting FE_FLOATING_POINT_EQUALITY ([#2843](https://github.com... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new UnreadFieldsAnnotationChecker.java file should carry the SpotBugs license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "UnreadFieldsAnnotationChecker should not be a separate util class since only one class... | null |
spotbugs__spotbugs__2881 | spotbugs/spotbugs | 2,881 | defect | 5695eac2dd128eda6b3bdff7bb4d2575fdb43001 | e33aa2e7020ecb4cfab9c147eecd73648295decb | `VA_FORMAT_STRING_USES_NEWLINE` handling of text blocks | The text blocks introduced in Java 15 pose problem when used in a formatter because the line endings are not platform specific and SpotBugs correctly raises a VA_FORMAT_STRING_USES_NEWLINE
Text blocks line endings should be escaped when used in a format (using `%n\`). The bug description should give that solution.
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0029fceb869..77c8424f537 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Do not report UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR for fields initialized in method annotated wit... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request's approach is not a fix but an ugly workaround that goes against the goal of text blocks per JEP 378, and sprinkling %n everywhere does not sound sane — it may rather be a bug for OpenJDK.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"... | null |
spotbugs__spotbugs__3029 | spotbugs/spotbugs | 3,029 | defect | 943aea2e7eabb9c4f1ba4b95d594ca64d277de7e | f937090ac9a0ff714361348d4d3bbc9ee49a311b | Only report `MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT` when calling own methods | As discussed in #2957 calling overridable methods from `readObject` on the `ObjectOutputStream` (such as `readInt`) should be fine in most cases.
This PR changes the `shouldIgnoreCallInReadObject()` logic to ignore all methods, except for these on the class under analysis.
In other words, `"test".equals(x)` and `st... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbb2d1d9bcb..89a9ca829e3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Do not consider Records as Singletons ([#2981](https://github.com/spotbugs/spotbugs/issues/2... | 4 | 2 | 1 | [{"id": "G0", "claim": "The added comment's reasoning is inverted or confusing: 'not considered risky here because the object stream is potentially under the control of the attacker' does not explain why the call is safe, and a negation appears to be missing.", "category": "documentation", "verdict": "supported", "prio... | null |
spotbugs__spotbugs__3080 | spotbugs/spotbugs | 3,080 | defect | 89ea17e472222763de6418c1041f229aaf0f1099 | 901eabfa7bb8a4f622bbcd2f19bb9eca17806f67 | Partial fix for Issue #3023 | Partial fix for #3023. The problem is not with the `Collections.emptyList()`, `Collections.emptySet()` and `Collections.emptyMap()` functions, there are no FPs, if there is only one assignment to a field with any of these functions. The issue is rather about having multiple assignments to one field (e.g. with if-else... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 393b4da4042..7b16b87a577 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Revert the changes from ([#2894](https://github.com/spotbugs/spotbugs/pull/2894)) to get HTML stylesh... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new fieldValues suppression check may miss true positives when a later assignment is modifiable (it looks like only the first value is considered, so it might miss true positives when only the first assignment was unmodifiable), and tests should be added for that case.", "category": "correct... | null |
spotbugs__spotbugs__3115 | spotbugs/spotbugs | 3,115 | defect | 59a6093cc4145c704be7231b58f5d474afe4ba61 | 221c0cca2c81146a9339460b32c28987abf5680c | Perform Bug-Reporter deduplication based on target files | This is attempt number two to fix #2047, after the initial attempt broke stylesheet behavior and was reverted.
The first attempt at this was in PR #2894, subsequently reverted in #3038 to fix issue #2969 | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/TextUICommandLineTest.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/TextUICommandLineTest.java
index b3107804aca..266c6ca8bd6 100644
--- a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/TextUICommandLineTest.java
+++ b/spotbugs-tests/src/test/jav... | 8 | 6 | 1 | [{"id": "G0", "claim": "The field named `deduplicationKey` actually holds the output file's path as a string, and its name should show that.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added where two different path strings (... | null |
spotbugs__spotbugs__3160 | spotbugs/spotbugs | 3,160 | defect | 4a3e1b8c7bfecbc8b77f7f5e7e73df488f41cf8e | 52ba8a5ee1ca69a8ebff3501e78e553ff030ae05 | Fixing #3159 - Method call graph ignores constructors and non-parametric void methods | Looks like the problem is there [from the very beginnings](https://github.com/spotbugs/spotbugs/commit/a5b3c2de4045e2f94858ccac2a4543f480265f3b) where the logic ignored all non-parametric methods as "not interesting".
Omitting those methods from the MultiMap doesn't give TopologySort any information about the graph... | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/classfile/MethodsCallOrderTest.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/classfile/MethodsCallOrderTest.java
new file mode 100644
index 00000000000..3a6b05a1452
--- /dev/null
+++ b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/classfile/Meth... | 3 | 3 | 1 | [{"id": "G0", "claim": "The test class should not be declared public because JUnit Jupiter test classes should have package private visibility.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since interestingSignature() is used only once and alw... | null |
spotbugs__spotbugs__3268 | spotbugs/spotbugs | 3,268 | defect | 4f66ba3bfafcc30af276b68fa52a5e684bbc0ec1 | 9392aadef582f454ea3ebf37bdfa6b18d579c4d1 | ThrowingExceptions detector crash when parsing method signature containing nested generics | As reported in #3267 ThrowingExceptions causes errors with some methods with generics.
See #2072
See #2040
This should fix #3267 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e5846975fc9..e87c2577c1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,10 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add the @Deprecated annotation to SignatureParser so it matches the @deprecated javadoc the pull request added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotbugs__spotbugs__3281 | spotbugs/spotbugs | 3,281 | defect | d0be86b278df86de5085ad94b76120d573ed58fe | 9888c88be64d8377c9879a8f96356c1e995b293c | StackOverFlowError in MultipleInstantiationsOfSingletons | - Break the recursion in `MultipleInstantiationsOfSingletons`, this should fix #3280
- Reordered some conditions so the trivial clauses are evaluated first | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bb0c19c3b3..353995e478f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Accept the 1st parameter of `java.util.concurrent.CompletableFuture`'s `completeOnTimeout()`, `getNow... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new test should also assert that the SING_SINGLETON_GETTER_NOT_SYNCHRONIZED bug is reported in Issue3280, not only that SING_SINGLETON_IMPLEMENTS_CLONEABLE is absent.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Conditions ... | null |
spotbugs__spotbugs__3300 | spotbugs/spotbugs | 3,300 | defect | 646a2d003ee25a2db2ba627b34b78ea50ca171df | b8eb17fe400d9763708b72579e5af8333fbef0ea | Remove deprecated bugpatterns | SpotBugs currently has 6 deprecated bug patterns, and they are never emitted.
They have been deprecated for a long while so it's time to remove then, as discussed in https://github.com/spotbugs/sonar-findbugs/pull/1147 this will remove them for the rules set in the SonarQube plugin. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index af84916d1d2..7c5557dd1f1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2025-??-??
+### Removed
+- Removed `TLW_TWO_LOCK_NOTIFY`, `LI_LAZY_INIT_INSTANCE`, `B... | 5 | 4 | 1 | [{"id": "G0", "claim": "Three more deprecated bugtypes (IS_INCONSISTENT_SYNC, BC_IMPOSSIBLE_CAST_PRIMITIVE_ARRAY, NP_METHOD_PARAMETER_RELAXING_ANNOTATION) were left in place, and the reviewer asks whether they were intentionally kept rather than removed like the four in this PR.", "category": "maintainability", "verdic... | null |
spotbugs__spotbugs__3443 | spotbugs/spotbugs | 3,443 | defect | c0d4bb11ed634272c62703ee28db7e249b0cf685 | bc03e6a9251d96ac9a9f3f4811670f302dc9f9e4 | Handle BDDMockito when looking for ignored return values | This should fix #3441 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a48e6fc071d..5d4a09a3935 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Do not report `RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT` when part of a Mockito `doAnswer()`, `doCallRe... | 1 | 1 | 1 | [{"id": "G0", "claim": "The detector should also handle the other BDDMockito stubbing methods corresponding to the Mockito functions added in #3410 (e.g. the will* family such as willThrow(), willReturn(), willDoNothing(), willCallRealMethod(), willAnswer()), because a call like BDDMockito.willThrow(new RuntimeExceptio... | null |
spotbugs__spotbugs__3482 | spotbugs/spotbugs | 3,482 | defect | 252a85ad1e6efdab72f6bdae8d33590e56f76606 | 9c91d7c8196daf1a2701a981933cf479918bad53 | inline access method for method | Before opening a 'pull request'
* Search existing issues and pull requests to see if the issue was already discussed.
* Check our discussions to see if the issue was already discussed.
* Check for specific project we support to raise the issue on, under [spotbugs](https://github.com/spotbugs)
* Do not open intell... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 345b47a001e..e2128200199 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Multi-threaded code checks can be skipped with `@NotThreadSafe` ([#3390](https://github.com/spotbugs/... | 5 | 4 | 2 | [{"id": "G0", "claim": "The replacement emitted for a non-static access method is always INVOKEVIRTUAL, although the access method may actually be invoked with invokespecial (or interface) - can this ever be invoke special or interface?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
spotbugs__spotbugs__3557 | spotbugs/spotbugs | 3,557 | defect | eaabea02874d70ee58757bccd514fd1c085124af | c0555847e84852b069ea8fed4b3a5b6fc89d8de8 | Added `DMI_MISLEADING_SUBSTRING` for calling `subString(0)` on a StringBuffer/StringBuilder | As noted in #1928 one might expect to get `DMI_USELESS_SUBSTRING` on a StringBuilder or StringBuffer when calling `subString(0)`.
That call isn't as useless as String.subString(0), because it converts the builder/buffer to String, so it seemed to me that "useless" was not the best word for that case and I've added a n... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f9e549058e7..b5005586af0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,6 +42,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- New bug type `CWO_CLOSED_WITHOUT_OPENED` for locks that might be released without even being acquired... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test should also check the number of expected relevant bug types, not only that one bug is reported in each method.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should also assert that the other bug type (e.g. DMI_... | null |
spotbugs__spotbugs__3559 | spotbugs/spotbugs | 3,559 | defect | c16e0450d429656a25f9bfa3819d8d3f1cf9c918 | 4359f3d37dcacb4a04ab9feaf4092751ec6560b4 | Fix `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` with `Objects.requireNonNull` | When a method is annotated with `CheckForNull` checking the nullness with `Objects.requireNonNull` might result in an NPE, but that's the point of the assertion.
In order to correctly track down values returned from such method this PR hads a new flag to the `IsNullValue` used in the nullness analysis.
When a value... | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java
index 3de2f9217df..452728859fe 100644
--- a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java
+++ b/spotbugs-tests/src/test/... | 2 | 1 | 1 | [{"id": "G0", "claim": "Please add the two more edge cases mentioned in issue #2965 — Guava's Preconditions.checkNotNull and the requireNonNull method call chain — as test examples as well.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The false positi... | null |
spotbugs__spotbugs__3567 | spotbugs/spotbugs | 3,567 | defect | f7788d925ad722476e2dfdd5f7581d4dab92a4f2 | 0ca0240112a671682fad3b9868128a62cbc0c043 | Handle useless suppressions annotations with null messages | This should fix #3565 | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/SuppressionMatcherTest.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/SuppressionMatcherTest.java
index b7a66476e8b..23a0bf2181f 100644
--- a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/SuppressionMatcherTest.java
+++ b/spotbugs-tests/src/test/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing the spaces from the LongDescription templates in messages.xml makes the rendered message lose the space between the annotation name and 'on' (e.g. 'annotation XYZon'), which makes uselessSuppressionOnMethodParameterMessage() fail and the messages look wrong.", "category": "correctness",... | null |
spotbugs__spotbugs__3574 | spotbugs/spotbugs | 3,574 | defect | 64a8721cd18dd33e3d3d8700bf74296e89ff4d61 | f92130b12a5326d86ecad5814e4998ed6d80ccf8 | Switch default case fix | This should fix #3572 and fix #1148 (follow up of #3536) | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 48d6a16b1f8..f606406576e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -39,6 +39,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
- Fixed `DMI_INVOKING_TOSTRING_ON_ARRAY` on newer JDK ([#1147](https://github.com/spotbugs/spotbugs/iss... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the new Issue3572 fixture, either add a comment explaining the commented-out `case C:` lines so they are not removed later, or remove them if unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A disabled test ... | null |
spotbugs__spotbugs__3624 | spotbugs/spotbugs | 3,624 | defect | 4360585b48dfc5a14945eb7ded56e3d0862c0bbf | e28b9e4f2d06a08a17a2a28874807b3319c20dbf | Fix `SF_SWITCH_FALLTHROUGH` false positive when continuing a loop | When a `GOTO` inside a switch corresponds to a loop's `continue` the branch target is before the switch PC.
This should fix #3617 | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3617Test.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3617Test.java
new file mode 100644
index 00000000000..02df622782b
--- /dev/null
+++ b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3617Test.java
@@ -0,0 ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The local variable `nextwitchDetails` has a typo — the leading 'S' of 'Switch' is missing — and should be renamed to `nextSwitchDetails`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc of `isBranchTargetOutsid... | null |
spotbugs__spotbugs__3666 | spotbugs/spotbugs | 3,666 | defect | 2b36b247581e2e00e742768f61a67630e9eea0cb | 391a2fe42a09132c580a55a121f680e535f48b0f | test: setup/teardown MutableClassesTest to remove unstableTests | When running a unit test as a gradle test the `unstableTests` is also executed with its two tests, which takes a few seconds; this makes iterating slower.
This also requires to merge the jacoco execs reports.
The `unstableTests` task was introduced because `MutableClassesTest` failed when running as part of the gra... | diff --git a/spotbugs-tests/build.gradle b/spotbugs-tests/build.gradle
index 62a1d2bc8c8..61df92d4063 100644
--- a/spotbugs-tests/build.gradle
+++ b/spotbugs-tests/build.gradle
@@ -34,37 +34,14 @@ tasks.named('compileJava', JavaCompile).configure {
}
tasks.named('jacocoTestReport', JacocoReport).configure {
- depe... | 2 | 1 | 1 | [{"id": "G0", "claim": "The tests fail with the pull request's changes.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The removal of `dependsOn ':spotbugsTestCases:build'` from the `test` task may be wrong — the reviewer asks for confirmation it ca... | null |
spotbugs__spotbugs__3725 | spotbugs/spotbugs | 3,725 | defect | 5f9ea82098f02102a37c794e79edebc154cd4483 | 2f9036fe945fb434ce0cd52b13c5bf604275b7c9 | Enhance sarif fullDescription section | Before opening a 'pull request'
* Search existing issues and pull requests to see if the issue was already discussed.
* Check our discussions to see if the issue was already discussed.
* Check for specific project we support to raise the issue on, under [spotbugs](https://github.com/spotbugs)
* Do not open intell... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d3e248fded3..776ebe6def7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,8 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/sp... | 10 | 9 | 6 | [{"id": "G0", "claim": "The build is failing because of Spotless formatting; run gradlew spotlessApply (and make sure gradlew build smokeTest is successful) before requesting a new review.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG... | null |
spotbugs__spotbugs__3766 | spotbugs/spotbugs | 3,766 | defect | 891a64662138e4aa0054d46d5cee8f7c80ad3a39 | 60e2717275dbe7542e9015abe59fec5c1739b783 | FIO10-J Ensure the array is filled when using read() to fill an array | This pull request adds a new detector that checks the SEI CERT rule FIO10-J: Ensure the array is filled when using read() to fill an array (see SEI CERT rule documentation: https://wiki.sei.cmu.edu/confluence/display/java/FIO10-J.+Ensure+the+array+is+filled+when+using+read%28%29+to+fill+an+array
).
The detector rep... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b493ecd32d..ea3301a6f61 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http:
Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/sp... | 2 | 2 | 0 | [{"id": "G0", "claim": "Since the PR was opened there has been a new release, so it should be rebased on master or master merged into it and the changelog entry moved to the Unreleased section.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The branch s... | null |
spotbugs__spotbugs__3780 | spotbugs/spotbugs | 3,780 | defect | 9125bee9c68702c5b974a91b1c8e9feeedbcaa48 | f62eda239545318f7259f490b54bb1ce90c817d2 | Add support for Jakarta's Nonnull and Nullable (continued work #3156 by pkini07) | This PR continues the work done by @pkini07 for the support of Jakarta's Nonnull and Nullable annotations by fixing isues found in #3156. The original developer is not responding to mails and other contact requests and does not solve the issue. @JuditKnoll suggested to open a new PR and to mention the original autor.
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35c4ed94177..fdd880997ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -88,6 +88,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Added
- Added the unnecessary annotation to the `US_USELESS_SUPPRESSION_ON_*` messages ([#3395](ht... | 10 | 9 | 2 | [{"id": "G0", "claim": "Move the changelog entry up to the top under the Unreleased section, adding the section if it does not exist yet.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The annotation class-name chain in NullnessAnnotation.match sh... | null |
spotbugs__spotbugs__3804 | spotbugs/spotbugs | 3,804 | defect | c49364bf9fbd0b02ad6bdd5cbcbf7eec826c6d57 | f59734ec7081e92e34d2837a2eb903d37d9cabe0 | Add UnsafeDetector to report uses of Java's Unsafe classes | This PR adds a new detector for Java. It detects uses of the `sun.misc.Unsafe` and `jdk.internal.misc.Unsafe` classes which are a [security concern](https://archive.is/AFw31). The newer, safer [Foreign Function and Memory API](https://docs.oracle.com/en/java/javase/21/core/foreign-function-and-memory-api.html) should b... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 884fe342d02..d7c88b18a08 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
## Unreleased - 2025-??-??
### Added
- Recognize `jakarta.annotation.Nonnull` and `jakarta.annotation.N... | 9 | 7 | 0 | [{"id": "G0", "claim": "There is no 'UNS' bug code defined yet, so please add it to findbugs.xml next to the other bug codes around lines 715-745.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test class would be simpler and more uniform with t... | null |
spotbugs__spotbugs__3829 | spotbugs/spotbugs | 3,829 | defect | fdeb7fe48c9d4edc3ad340a6db207519a5456bdd | 6b41f71b225d9b3a399b5acdefd2a6c065c21c5f | Fix `CT_CONSTRUCTOR_THROW` FP with public and private constructors | Fixes https://github.com/spotbugs/spotbugs/issues/3822.
- [X] Added an entry into `CHANGELOG.md` if you have changed SpotBugs code
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91b1b4c9981..16d8c3d4a1f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
### Fixed
- Fix incorrect bug counts and sizes when unioning reports ([#3721](https://github.com/spotb... | 3 | 3 | 1 | [{"id": "G0", "claim": "The newly added local variable `calledClass` is used only once and should not be introduced.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded string \"java/lang/Object\" in the constructor check could use the ... | null |
spotbugs__spotbugs__3868 | spotbugs/spotbugs | 3,868 | defect | f76cbd5a71aed219f5fc2cd6a0345cf3756fa168 | 3d560951aac113df0d50b560761d5136c63f1737 | Add a field annotation when looking for `FS_BAD_DATE_FORMAT_FLAG_COMBO` | When declaring and initialising a field at the same time the `FS_BAD_DATE_FORMAT_FLAG_COMBO` bug instances found are not associated with the field.
This is because the problematic code is in the `<init>` method, not on the field itself.
This PR adds a class keeping track of the bug instances according to the PC (an... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23c38c3d39d..75346f6e79a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -26,6 +26,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
(See [SEI CERT rule LCK00-J](https://wiki.sei.cmu.edu/confluence/display/java/LCK00-J.+Use+privat... | 4 | 4 | 1 | [{"id": "G0", "claim": "Because each test passes only one of the nested classes of Issue3838 to performAnalysis, running the tests reports 'The following classes needed for analysis were missing' for the other nested class; the reviewer asks to either move one of the examples to a separate file or have one test analyzi... | null |
spotbugs__spotbugs__3869 | spotbugs/spotbugs | 3,869 | defect | 208ce8e4c9132052f52eea179905ecaa1f7dbd6f | 848e3a7ca64098b3164bafac1ccd97bf9ab4b9c8 | Switch fallthrough fixes | Some (a bit unusual) constructs lead to false positives when looking for a switch fallthrough:
- When the default case is not the last case
- When a switch case ends with a conditional while loop
- When a switch case ends with an unconditional while loop | diff --git a/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3767Test.java b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3767Test.java
new file mode 100644
index 00000000000..5404af82164
--- /dev/null
+++ b/spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue3767Test.java
@@ -0,0 ... | 8 | 6 | 1 | [{"id": "G0", "claim": "The new isIf() method only covers opcodes 159-166 and is missing IFEQ-IFLE (153-158) and IFNULL/IFNONNULL (198-199), which could cause incorrect behavior when analyzing while loops that use those IF instructions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
spotify__annoy__495 | spotify/annoy | 495 | defect | 94f77069eac431170fa27a30df5b769ce01f083e | 1297412caa88abdf478da7b32f445fbcbb1830c1 | Multithreaded build | Issue: https://github.com/spotify/annoy/issues/70
This is my work-in-progress branch for supporting multithreaded builds in Annoy. Locally (Ubuntu 18.04) all C++, Python and Lua tests seem to pass (I've re-ran them multiple times). The only thing remaining is fixing the Go build and I would appreciate some help with... | diff --git a/annoy-dev-1.rockspec b/annoy-dev-1.rockspec
index 8e3acea7..58cc796c 100644
--- a/annoy-dev-1.rockspec
+++ b/annoy-dev-1.rockspec
@@ -44,14 +44,14 @@ build = {
unix = {
modules = {
['annoy'] = {
- libraries = {"stdc++"},
+ librari... | 9 | 6 | 2 | [{"id": "G0", "claim": "The first-thread-takes-the-remainder split can distribute trees unevenly across threads (e.g. [8, 2, 2, 2, 2, 2, 2] for q=20 and n_threads=7); the reviewer suggests trees_per_thread = work_per_thread + (i < work_remainder), later simplified to (q + i) / n_threads, to split it like [3, 3, 3, 3, 3... | null |
spotify__basic-pitch__128 | spotify/basic-pitch | 128 | defect | d1af94a38297d53609c80b095f6283241a9f46bd | 28c63a7870a7b07b83413012abc9e1ed14e209c4 | Added Ikala | cannot test because dataset unavailable. This should thus be considered as sort of skeleton code. | diff --git a/basic_pitch/data/datasets/ikala.py b/basic_pitch/data/datasets/ikala.py
new file mode 100644
index 00000000..b56954d7
--- /dev/null
+++ b/basic_pitch/data/datasets/ikala.py
@@ -0,0 +1,193 @@
+#!/usr/bin/env python
+# encoding: utf-8
+#
+# Copyright 2024 Spotify AB
+#
+# Licensed under the Apache License, V... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the placeholder test_guitar_set_to_tf_example stub with a TODO comment to create test_ikala_to_tf_example.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotify__confidence__25 | spotify/confidence | 25 | defect | df7ab969fee7c7b6859da2e6690b275a6052561e | 332870fccd060a4f667a4f821694c00a4f65252f | - Introduced Experiment class | ...that can be used to perform different tests on different rows of the dataframe
- Removed inheritance structure between GenericComputer and (previous) subclasses. GenericComputer now instead have one of each computer | diff --git a/spotify_confidence/__init__.py b/spotify_confidence/__init__.py
index da6be4f..dc197b2 100644
--- a/spotify_confidence/__init__.py
+++ b/spotify_confidence/__init__.py
@@ -24,5 +24,5 @@
__version__ = _require("spotify_confidence")[0].version
-__all__ = ['BetaBinomial', 'ChiSquared', 'StudentsTTest', '... | 1 | 1 | 0 | [{"id": "G0", "claim": "The internal column used to dispatch tests should be named `_method` (e.g. via a constant) instead of `method` to avoid colliding with a user column already named `method`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotify__dbeam__112 | spotify/dbeam | 112 | defect | c847e3fad6b5d1e4dc462c77dec5332db38e2b47 | 630aca30ab198b8e6349d5e9a739d8296306bef7 | Add support for AVRO schema record/fields doc values. | The main idea is to use user-provide Avro schema to inject it into Avro files.
Should address [issue#35](https://github.com/spotify/dbeam/issues/35).
P.S. Re-format modified code parts using Google style format.
| diff --git a/README.md b/README.md
index e8fa2cce..fe1a099f 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,16 @@ simply streams the table contents via JDBC into target location as Avro.
- `--minPartitionPeriod`: the minimum partition required for the job not to fail (when partition column is not specified), by de... | 5 | 2 | 1 | [{"id": "G0", "claim": "parseOptionalInputAvroSchemaFile could be written as an Optional.ofNullable(filename).filter(f -> !f.isEmpty()).map(BeamJdbcAvroSchema::parseInputAvroSchemaFile) chain instead of the explicit null/empty check.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "i... | null |
spotify__dbeam__128 | spotify/dbeam | 128 | defect | e13e1850fcf64cf454ae6ec00dad393c82815cb0 | 02e2a67d6153ddc43462b043090138aa455a4890 | Add support for pre command execution | Adding support for precommand execution, https://github.com/spotify/dbeam/issues/16. I think unit testing could be done differently but I could not find a cleaner way. | diff --git a/dbeam-core/src/main/java/com/spotify/dbeam/args/JdbcAvroArgs.java b/dbeam-core/src/main/java/com/spotify/dbeam/args/JdbcAvroArgs.java
index a22b41c9..605c7f1a 100644
--- a/dbeam-core/src/main/java/com/spotify/dbeam/args/JdbcAvroArgs.java
+++ b/dbeam-core/src/main/java/com/spotify/dbeam/args/JdbcAvroArgs.ja... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pre-command behaviour should be covered by its own test (e.g. shouldRunPreCommands) instead of being appended to the existing shouldRunJdbcAvroJob test, so that each test covers a single behaviour.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotify__dbeam__163 | spotify/dbeam | 163 | defect | bd3baf6d8fdd6b094ef371e94af9b40d4ed0cb80 | f6d19b1e1189fbdfc39edbc5380c837df12e1a25 | remove tableName from QueryBuilderArgs | A follow-up to #135 to remove unnecessary internal property _table_name_. | diff --git a/dbeam-core/src/main/java/com/spotify/dbeam/args/QueryBuilderArgs.java b/dbeam-core/src/main/java/com/spotify/dbeam/args/QueryBuilderArgs.java
index 641b21c4..cd9b668b 100644
--- a/dbeam-core/src/main/java/com/spotify/dbeam/args/QueryBuilderArgs.java
+++ b/dbeam-core/src/main/java/com/spotify/dbeam/args/Que... | 1 | 1 | 1 | [{"id": "G0", "claim": "Keep the table name (when available) as part of the jobName, since the exported table is often a 1-1 mapping to the output endpoint, instead of the 2-arg configureJobName call the PR introduced.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spotify__dbeam__66 | spotify/dbeam | 66 | defect | b2c7e83c7b573a5a423c1f5e4588b984083868c9 | fe91b912c1b3e6bf6a3061f459ae1fb6e9ebcb57 | Add --sqlFile argument to support user-provided SQL query | The idea was to minimize existing code changes.
Argument --tableName is left mandatory to provide some table name, even when user provides own query. | diff --git a/.gitignore b/.gitignore
index 1a5daa2f4..7a4df3bc8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ target
*.swp
.DS_Store
e2e/results/*
+*.iml
+
diff --git a/README.md b/README.md
index 20d9fe11c..20d82acfd 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,7 @@ simply streams the table conten... | 14 | 11 | 3 | [{"id": "G0", "claim": "The guava 20.0 -> 21.0 bump in pom.xml may not be compatible with the Beam SDK and should be kept out of this pull request in a separate PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider using SQL views (pointing --... | null |
spotify__dbeam__931 | spotify/dbeam | 931 | defect | 9c72eac683680aeab7a8ab86138d4c44cb2524a1 | 1dc7af2aa2babb406c4404f9c94e437761cb9659 | Propagate array item types from SQL to Avro schema | Before the change it generated this:
```
}, {
"name" : "arr1",
"type" : [ "null", {
"type" : "array"
} ],
"doc" : "From sqlType 2003 ARRAY (java.sql.Array)",
"default" : null,
"typeName" : "ARRAY",
"columnClassName" : "java.sql.Array",
"sqlCode" : "2003",
"columnN... | diff --git a/dbeam-core/src/main/java/com/spotify/dbeam/avro/JdbcAvroSchema.java b/dbeam-core/src/main/java/com/spotify/dbeam/avro/JdbcAvroSchema.java
index 9b07d4c0..e1a70e0b 100644
--- a/dbeam-core/src/main/java/com/spotify/dbeam/avro/JdbcAvroSchema.java
+++ b/dbeam-core/src/main/java/com/spotify/dbeam/avro/JdbcAvroS... | 6 | 4 | 1 | [{"id": "G0", "claim": "The e2e script should simply always mount the script directory into the docker container instead of gating it behind the MOUNT_OUTPUT flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add or improve test... | null |
spotify__luigi__1494 | spotify/luigi | 1,494 | defect | ec0d61e4c4b1b0f269997a1306a61feeca7098d1 | 370447f201655b9ed89eaa5bd2d1479d7c4cc53e | Support Python 3.5 | Not sure if testing on Python 3.5 is as simple as the changes I made. If this works, I'll update the README and docs as well and clean the PR up.
Fixes #1491.
| diff --git a/.travis.yml b/.travis.yml
index 1cf88120f2..f7e3c9a0ac 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,6 +30,17 @@ env:
- TOXENV=py27-postgres
- TOXENV=visualiser
+# Python 3.5 has to go here until Travis adds it to the default build images.
+# https://github.com/travis-ci/travis-ci/issues/47... | 3 | 3 | 2 | [{"id": "G0", "claim": "Travis/tox cannot find a Python 3.5 interpreter (InterpreterNotFound), so the pull request's Python 3.5 environments never run; the author asks whether a config is missing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "On Py... | null |
spotify__luigi__2475 | spotify/luigi | 2,475 | defect | 7d2c5574cb53106044a25afdddf151165471a741 | 3829fecc370b6d78aa5c8234f6cbbb0d25538178 | Multiple requires | ## Description
Now `requires` decorator can take multiple tasks to require, as well as `inherits` decorator (no need to stack them now). But `clone_parent` method becomes ambiguous in cases when there are 2+ tasks to inherit. I've kept it as is to not break anything and added `clone_parents` method, that is used insid... | diff --git a/luigi/util.py b/luigi/util.py
index f6be20021b..372f588519 100644
--- a/luigi/util.py
+++ b/luigi/util.py
@@ -52,7 +52,7 @@ def requires(self):
more burdensome than the last. Refactoring becomes more difficult. There
are several ways one might try and avoid the problem.
-**Approach 1**: Parameters v... | 3 | 3 | 0 | [{"id": "G0", "claim": "The requires method's body should be collapsed into the one-liner `return _self.clone_parent() if len(self.tasks_to_require) == 1 else _self.clone_parents()`, which the reviewer calls equally clear but prettier.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": ... | null |
spotify__luigi__2487 | spotify/luigi | 2,487 | defect | de4629a4c7c562b53fee2045aabd84189f897593 | 868a122c2b6f1c275beda8105b7b4e060f4359a8 | Added optional choice for hdfs clients | ## Description
Added optional choice for hdfs clients. Previously only InsecureClient was supported. This PR adds KerberosClient and TokenClient.
## Motivation and Context
Some hdfs work with kerberos authentication. Mine does... This adds support for those clusters.
This fixes #2481.
## Have you tested th... | diff --git a/doc/configuration.rst b/doc/configuration.rst
index dec55c3679..7305d1756d 100644
--- a/doc/configuration.rst
+++ b/doc/configuration.rst
@@ -922,11 +922,19 @@ summary-length
port
The port to use for webhdfs. The normal namenode port is probably on a
different port from this one.
+
user
Perform ... | 4 | 3 | 1 | [{"id": "G0", "claim": "client_type should be a ChoiceParameter rather than a plain Parameter, which would also remove the need for the manual if/elif client dispatch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests for the new client-type selec... | null |
spotify__luigi__2548 | spotify/luigi | 2,548 | defect | 889ef2af64e2aa7d0cc65caef69a241ac91e5ff9 | e863e575a36c36eaa65fc140d59253f03b139a0b | FIX accept pathlib based path as argument for LocalTarget | <!--- This template is optional. Please use it as a starting point to help guide PRs -->
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes -->
Accept pathlib.PosixPath, py._path.local.LocalPath and other path based objects as argument for FileSys... | diff --git a/luigi/target.py b/luigi/target.py
index c9b20fd87a..2462f98f00 100644
--- a/luigi/target.py
+++ b/luigi/target.py
@@ -207,7 +207,8 @@ def __init__(self, path):
:param str path: the path associated with this FileSystemTarget.
"""
- self.path = path
+ # cast to str path obje... | 3 | 3 | 0 | [{"id": "G0", "claim": "Reword the in-line comment in FileSystemTarget.__init__ for clarity, e.g. to 'cast to str to allow path to be objects like pathlib...'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer a skip decorator over the try/exc... | null |
spotify__luigi__2593 | spotify/luigi | 2,593 | defect | 0a098f6f99da0bad03af56a057b9a15254d1a957 | 8278773fe26bbd6cdb9d7b154a1e12fff254c81f | Fix logging via toml | ## Description
Wrap AttributeError when try to configure logging via config section. Cfg file doesn't support inheritance enough for logging configuring, so we can skip logging configuring via config section when cfg-based config used.
## Motivation and Context
Fix #2592
## Have you tested this? If so, how?... | diff --git a/luigi/setup_logging.py b/luigi/setup_logging.py
index f28a697cb5..6abf7632c4 100644
--- a/luigi/setup_logging.py
+++ b/luigi/setup_logging.py
@@ -40,7 +40,7 @@ def _section(cls, opts):
"""Get logging settings from config file section "logging"."""
try:
logging_config = cls.co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The cfg-parser case in `_section` should be handled explicitly (returning False for `LuigiConfigParser`) instead of being handled by catching the broad `AttributeError`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spotify__luigi__2645 | spotify/luigi | 2,645 | defect | 0819a5fee065b6e9661a550ef288d4bf00cf3cd1 | ed772b20b4094fe0668f404ea239102b88a1b87b | Issue 2644: Tasks can be run several times under certain conditions | ## Description
Wrote an additional check in `worker.py` after all dependencies of the task were validated,
this should prevent the situation when the real status of the task was changed to DONE,
but the worker sends PENDING to the scheduler.
## Motivation and Context
There may be a situation when a worker has st... | diff --git a/luigi/worker.py b/luigi/worker.py
index c7a24c3c5c..1ee0f4030a 100644
--- a/luigi/worker.py
+++ b/luigi/worker.py
@@ -842,7 +842,14 @@ def _add(self, task, is_complete):
task.trigger_event(Event.DEPENDENCY_DISCOVERED, task, d)
yield d # return additional tasks to ... | 6 | 2 | 0 | [{"id": "G0", "claim": "Add a suffix (e.g. '-luigi-testcase') to the test's tempfile.mkdtemp() call so the created temp directories are traceable.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reduce the complexity of the new double-run test ca... | null |
spotify__luigi__2779 | spotify/luigi | 2,779 | defect | 1e99e6b68a51653553fc5cb26a4009fa58444331 | c467b8a9fd6137faf85fe1060c904d220602a83e | PySparkTask: handle special characters in name (#2778) | Fixes #2778
## Description
It cleans _name_ property before it is used to derive _run_path_ and _run_pickle_ properties.
## Motivation and Context
If name property contains some special characters PySparkTask fails: #2778
## Have you tested this? If so, how?
Unit test is included
| diff --git a/luigi/contrib/spark.py b/luigi/contrib/spark.py
index d84d08312c..bb9b0d400c 100644
--- a/luigi/contrib/spark.py
+++ b/luigi/contrib/spark.py
@@ -17,6 +17,7 @@
import logging
import os
+import re
import sys
import tempfile
import shutil
@@ -298,8 +299,9 @@ def app_command(self):
return [sel... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the `name` variable to something like `run_path_prefix` because it is a path prefix rather than a name and it shadows the meaning of `self.name` in the same scope.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotify__luigi__3083 | spotify/luigi | 3,083 | defect | 45f51bbefb20b970d8b73c06b5ae0818586e0962 | 4b0386c2c0d0dac930577d23d67a6ed344d4cb75 | Extend luigi.contrib.ecs module to support feeding additional kwargs to ecs run_task | ## Description
This updates the `luigi.contrib.ecs` module by providing a new overridable `run_task_kwargs` property that can be used to feed additional keyword arguments to the `boto3` ECS `run_task` call.
## Motivation and Context
The existing module only allows users to provide dynamic container commands via `c... | diff --git a/luigi/contrib/ecs.py b/luigi/contrib/ecs.py
index 8612d00499..9c656062e0 100644
--- a/luigi/contrib/ecs.py
+++ b/luigi/contrib/ecs.py
@@ -50,6 +50,7 @@
"""
+import copy
import time
import logging
import luigi
@@ -150,8 +151,10 @@ def command(self):
Override to return list of dicts with k... | 1 | 1 | 0 | [{"id": "G0", "claim": "The deep nesting in the combined_overrides property is hard to follow and could be cleaned up or visually simplified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spotify__luigi__3125 | spotify/luigi | 3,125 | defect | 857deff3c7ade4bfd57f9acfb0e4816814cce8c5 | 245c247e6272658ef1ca7fe0c8eb3581791b012c | add possiblity of input in seconds to TimeDeltaParameter | <!--- This template is optional. Please use it as a starting point to help guide PRs -->
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes -->
Allow input as number in seconds to `TimeDeltaParameter` to make `max_keep_alive_idle_duation` except the... | diff --git a/doc/configuration.rst b/doc/configuration.rst
index 5b73aae1af..ec970234ba 100644
--- a/doc/configuration.rst
+++ b/doc/configuration.rst
@@ -303,14 +303,14 @@ wait_interval
available jobs.
wait_jitter
- Size of jitter to add to the worker wait interval such that the multiple
- workers do not ask t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The documented config variable should remain `email_interval` — the name the batch notifier code actually searches for — rather than this PR's doc rename to `email_interval_minutes`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spotify__luigi__3174 | spotify/luigi | 3,174 | defect | 78145d669cd0658a52e1158a3fd1ca10e7e3b028 | d30d97a625ec157a86250ed288da097ffadf4817 | Deduplicate outputs in luigi.task.flatten_output (#3106) | ## Description
I've changed `luigi.task.flatten_output` implementation to deduplicate outputs from tasks which are required by more than one wrapper task. Implementation is slightly changed (from DFS to BFS), but there's no guaranteed order in docs.
## Motivation and Context
Fixes #3106
## Have you tested th... | diff --git a/luigi/task.py b/luigi/task.py
index 81956edb87..e0ba491625 100644
--- a/luigi/task.py
+++ b/luigi/task.py
@@ -19,7 +19,7 @@
It is a central concept of Luigi and represents the state of the workflow.
See :doc:`/tasks` for an overview.
"""
-
+from collections import deque
from contextlib import contextma... | 1 | 1 | 1 | [{"id": "G0", "claim": "The list used to deduplicate output tasks in flatten_output gives linear-time membership checks; use a constant-time structure such as an ordered set or an OrderedDict instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spotify__luigi__3179 | spotify/luigi | 3,179 | defect | 3611b06f5d5326bc1ba03d059f0bd6a722e94593 | ddd009b8d9db68f08d26ec0822dafe17bfacde07 | Improve control over dynamic requirements | This PR is meant as a continuation of #3178 and further improves the control over dynamic task requirements handled by the worker.
## Description
I added a shallow class `DynamicRequirements` which is intended to wrap a batch of tasks being yielded as dyn. reqs. and optionally to define a custom, probably optimiz... | diff --git a/doc/tasks.rst b/doc/tasks.rst
index b10a80c3a8..b9d91bb09b 100644
--- a/doc/tasks.rst
+++ b/doc/tasks.rst
@@ -198,8 +198,8 @@ You can also yield a list of tasks.
def run(self):
other_target = yield OtherTask()
- # dynamic dependencies resolve into targets
- f = other_target.... | 3 | 3 | 1 | [{"id": "G0", "claim": "In the dynamic-dependencies documentation example, the two lines that resolve the yielded task into a target should be indented inside run() rather than bumped outside of it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
spotify__luigi__3216 | spotify/luigi | 3,216 | defect | 3de05605024bdfdb38cf011c271edb0f488a90e0 | be769c8d6f55e8323a7b5a4fd021c9f8eef47854 | fix: using default_scheduler_url as a mounting point for not root pat… | …h. fix #3213
Signed-off-by: ROUDET Franck INNOV/IT-S <franck.roudet@orange.com>
<!--- This template is optional. Please use it as a starting point to help guide PRs -->
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes -->
1 files modified t... | diff --git a/luigi/rpc.py b/luigi/rpc.py
index 2066cbbc62..a8837c5d4d 100644
--- a/luigi/rpc.py
+++ b/luigi/rpc.py
@@ -59,7 +59,7 @@ def _urljoin(base, url):
parsed = urlparse(base)
scheme = parsed.scheme
return urlparse(
- urljoin(parsed._replace(scheme='http').geturl(), url)
+ urljoin(par... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer would prefer a unittest in test/rpc_test.py demonstrating the new non-root default_scheduler_url joining behavior (and asks why the code concatenates parsed.path + url rather than url + parsed.path).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
spotify__luigi__3217 | spotify/luigi | 3,217 | defect | 3de05605024bdfdb38cf011c271edb0f488a90e0 | 9ffdaf3a316c585f719711168386f2192e42fad2 | Can pass a JSON schema to DictParameter and ListParameter | <!--- This template is optional. Please use it as a starting point to help guide PRs -->
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes -->
Add an optional parameter to `DictParameter` and `ListParameter` so the loaded value can be validated aga... | diff --git a/luigi/freezing.py b/luigi/freezing.py
index 3143d6b7c0..2f0a4b49f6 100644
--- a/luigi/freezing.py
+++ b/luigi/freezing.py
@@ -56,3 +56,14 @@ def recursively_freeze(value):
elif isinstance(value, list) or isinstance(value, tuple):
return tuple(recursively_freeze(v) for v in value)
return ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `jsonschema` dependency should be an optional (extras) installation rather than a hard requirement, since schema validation is an optional feature usage.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.