Skip to content

Commit

Permalink
SpaceAssignmentRule: do not try to fix plugins block
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Jan 10, 2025
1 parent 3d9c3e0 commit aa38863
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class SpaceAssignmentRule extends ModelAwareGradleLintRule {

@Override
void visitMethodCallExpression(MethodCallExpression call) {
if(dslStack().contains("plugins")) {
return
}
if (call.arguments.size() != 1 || call.arguments[-1] instanceof ClosureExpression) {
return
}
Expand Down

0 comments on commit aa38863

Please sign in to comment.