Boris Petrov

Results 207 issues of Boris Petrov

```rb Capybara.exact = true expect(page).to have_link(exact_text: 'foobar') ``` It would be nice to have a check that disallows passing `exact_text` to such matchers as that's unneeded - `Capybara.exact` makes these...

```rb find('#some-id a.some-class').click ``` This could be changed to: ```rb find('#some-id').click_link(class: 'some-class') # or find_by_id('some-id').click_link(class: 'some-class') ``` I'm still not sure if that's better but I wanted to put that...

Note the following code: ```rb visit 'google.com' expect(page).to have_no_link ``` Will pass... sometimes. It's a race-condition as the page may or may not have loaded when execution reaches the second...

JDK 19 is going to land in September and most likely project Loom be [previewed](https://openjdk.java.net/jeps/425) there. I am eagerly awaiting it but I'm unsure as to what that means for...

ProGuard version 6.2.2 but this has been happening for a while now with older versions too. This is when optimizations are on. With `dontoptimize` this error is gone. This is...

bug
needs-more-info

# 🚀 feature request ### Relevant Package This feature request is for `@airbrake/browser`. ### Description [Looking at the code](https://github.com/airbrake/airbrake-js/blob/v1.4.2/packages/browser/src/notifier.ts#L41), you can see that a handler for `unhandledrejection` is always registered...

enhancement

```java public record Foo(String bar) implements Serializable { @Serial private static final long serialVersionUID = 1L; } ``` Leads to a `IMC_IMMATURE_CLASS_WRONG_FIELD_ORDER` which is wrong.

probable framework issue

According to the [documentation](https://github.com/eclipse-ee4j/jersey/blob/2.35/core-server/src/main/java/org/glassfish/jersey/server/CloseableService.java#L26), `CloseableService` should be used with `javax.ws.rs.core.Context` but `JXI_INVALID_CONTEXT_PARAMETER_TYPE` warns that this type is not valid. That's a bug.

```java if (set.contains(item)) { if (something == null) { return null; } set.remove(item); } ``` This code produces a `SUI_CONTAINS_BEFORE_REMOVE` warning which is wrong. If `something` is `null`, the item...

difficult

Similar to the `UCPM_USE_CHARACTER_PARAMETERIZED_METHOD` check. Using `string.contains("-")` with single-character strings is probably slower than calling `string.indexOf('-') >= 0` (the character-accepting overload) so a check like that would be nice. Or...