Skip to content

Join a nearby host through btleplug's Bluetooth central on Android (R76 slice 6) - #141

Open
LucaCappelletti94 wants to merge 4 commits into
feat/r76-bluetoothfrom
feat/r76-android-central
Open

LucaCappelletti94 wants to merge 4 commits into
feat/r76-bluetoothfrom
feat/r76-android-central

Depend on btleplug 0.13.5

9746e1d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 11, 2026 in 1m 8s

Quality Gate failed

Annotations

Check warning on line 3 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/ops/FnBiFunctionImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.io.Closeable'.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF44l9jCT5nsDk0i&open=AaEenF44l9jCT5nsDk0i&pullRequest=141

Check failure on line 114 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 38 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1E&open=AaEenF6ll9jCT5nsDk1E&pullRequest=141

Check warning on line 290 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk03&open=AaEenF6ll9jCT5nsDk03&pullRequest=141

Check warning on line 503 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1B&open=AaEenF6ll9jCT5nsDk1B&pullRequest=141

Check warning on line 466 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk0_&open=AaEenF6ll9jCT5nsDk0_&pullRequest=141

Check warning on line 8 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/ops/FnBiFunctionImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "FnBiFunctionImpl" constructor.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF44l9jCT5nsDk0h&open=AaEenF44l9jCT5nsDk0h&pullRequest=141

Check warning on line 3 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/ops/FnFunctionImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.io.Closeable'.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF5Ml9jCT5nsDk0l&open=AaEenF5Ml9jCT5nsDk0l&pullRequest=141

Check warning on line 228 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty array instead of null.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1H&open=AaEenF6ll9jCT5nsDk1H&pullRequest=141

Check warning on line 637 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "switch" statement by "if" statements to increase readability.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1R&open=AaEenF6ll9jCT5nsDk1R&pullRequest=141

Check warning on line 594 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "callback" which hides the field declared at line 60.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1N&open=AaEenF6ll9jCT5nsDk1N&pullRequest=141

Check warning on line 23 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/future/SimpleFuture.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "result" which hides the field declared at line 13.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF5fl9jCT5nsDk0o&open=AaEenF5fl9jCT5nsDk0o&pullRequest=141

Check warning on line 8 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/ops/FnFunctionImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "FnFunctionImpl" constructor.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF5Ml9jCT5nsDk0k&open=AaEenF5Ml9jCT5nsDk0k&pullRequest=141

Check warning on line 413 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk09&open=AaEenF6ll9jCT5nsDk09&pullRequest=141

Check warning on line 627 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "suppressDisconnectNotification" which hides the field declared at line 65.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1Q&open=AaEenF6ll9jCT5nsDk1Q&pullRequest=141

Check warning on line 655 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "switch" statement by "if" statements to increase readability.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1T&open=AaEenF6ll9jCT5nsDk1T&pullRequest=141

Check warning on line 607 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1O&open=AaEenF6ll9jCT5nsDk1O&pullRequest=141

Check warning on line 8 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/ScanFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move the array designators [] to the type.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6vl9jCT5nsDk1W&open=AaEenF6vl9jCT5nsDk1W&pullRequest=141

Check warning on line 27 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/stream/QueueStream.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "result" which hides the field declared at line 16.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6Dl9jCT5nsDk0s&open=AaEenF6Dl9jCT5nsDk0s&pullRequest=141

Check warning on line 772 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1V&open=AaEenF6ll9jCT5nsDk1V&pullRequest=141

Check warning on line 340 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk06&open=AaEenF6ll9jCT5nsDk06&pullRequest=141

Check warning on line 328 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk05&open=AaEenF6ll9jCT5nsDk05&pullRequest=141

Check warning on line 68 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Adapter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this method into "Callback".

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6Yl9jCT5nsDk0y&open=AaEenF6Yl9jCT5nsDk0y&pullRequest=141

Check warning on line 117 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "callback" which hides the field declared at line 60.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1F&open=AaEenF6ll9jCT5nsDk1F&pullRequest=141

Check warning on line 15 in crates/connetto-peer-android/android/src/main/java/io/github/gedgygedgy/rust/panic/PanicException.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "PanicException" constructor.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6Nl9jCT5nsDk0v&open=AaEenF6Nl9jCT5nsDk0v&pullRequest=141

Check failure on line 637 in crates/connetto-peer-android/android/src/main/java/com/nonpolynomial/btleplug/android/impl/Peripheral.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a default case to this switch.

See more on https://sonarcloud.io/project/issues?id=LucaCappelletti94_connetto-rs&issues=AaEenF6ll9jCT5nsDk1S&open=AaEenF6ll9jCT5nsDk1S&pullRequest=141