Skip to content

Commit 1fe8fd2

Browse files
committed
chore: separate script for linting gradle plugin sources
1 parent 74ce796 commit 1fe8fd2

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Depending on your needs, you may need to install CocoaPods in a subset of the be
1111
## Scripts
1212

1313
- `lint` - runs linting on all JS/TS source files in the monorepo *[Turbo]*
14+
- `gradle-plugin:lint` - runs linting on the Brownfield Gradle plugin source code
1415
- `typecheck` - runs TypeScript type checking on all TS source files in the monorepo *[Turbo]*
1516
- `build` - runs all `build*` tasks in the Turbo repo - see below for more details *[Turbo]*
1617
- `release` - releases a new version of React Native Brownfield package using `release-it`

gradle-plugins/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ reactBrownfield {
162162
## Tooling
163163

164164
- We are using `ktlint` and `detekt` for formatting and linting
165-
- You can run `./gradlew :brownfield:lint` to auto-format and detect linting issues
165+
- You can run `./gradlew :brownfield:lint` to auto-format and detect linting issues, or use the root workspace script `yarn run gradle-plugin:lint`
166166

167167
## Architecture
168168

gradle-plugins/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"lint": "./gradlew :brownfield:detekt :brownfield:ktlintFormat"
6+
"gradle-plugin:lint": "./gradlew :brownfield:detekt :brownfield:ktlintFormat"
77
}
88
}

gradle-plugins/react/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://turbo.build/schema.json",
33
"extends": ["//"],
44
"tasks": {
5-
"lint": {
5+
"gradle-plugin:lint": {
66
"dependsOn": ["build:brownfield"],
77
"inputs": ["**/*.kt", "**/*.java", "**/*.xml", "**/*.gradle", "**/*.kts"]
88
}

0 commit comments

Comments
 (0)