Skip to content

Commit

Permalink
Restore project object in GradleLintRule
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Jan 7, 2025
1 parent 24e8b51 commit bd25f24
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import org.slf4j.LoggerFactory
import java.text.ParseException

abstract class GradleLintRule extends GroovyAstVisitor implements Rule {
Project project
BuildFiles buildFiles
SourceCode sourceCode
List<GradleViolation> gradleViolations = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import javax.annotation.Nullable
*/
@Deprecated // We suggest using ModelAwareGradleLintRule instead
trait GradleModelAware {
Project project
Map<String, List<String>> projectDefaultImports = null

TypeInformation receiver(MethodCallExpression call) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import org.gradle.configuration.ImportsReader
import javax.annotation.Nullable

abstract class ModelAwareGradleLintRule extends GradleLintRule {
Project project
Map<String, List<String>> projectDefaultImports = null

TypeInformation receiver(MethodCallExpression call) {
Expand Down

0 comments on commit bd25f24

Please sign in to comment.