gradle / gradle/gradle-plugin-analyzer

Report unnecessarily eager assignment

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Examples:

There is no need to call `.get()` in the output file:

```java
getInputFile().set(otherTask.getOutputFile().get());
```

No need to call `.get()` here either:

```java
getListProperty().add(someProvider.get());
```

No need to resolve to a `File` or even to resolve the `Provider`:

```java
getFileCollection().from(regularFileProperty.get().getAsFile());
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named in the issue. Start by locating the analyzer rule that reports eager Provider or property resolution, then check how it handles the three Java examples; done means those unnecessary `.get()` calls are reported without requiring broader resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.