Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a confusing Regex in the Compose webpage #4852

Merged
merged 1 commit into from May 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/introduction/compose.md
Expand Up @@ -24,7 +24,7 @@ fun FooButton(text: String, onClick: () -> Unit) { // Violation for FooButton()
#### Configurations:
Choose _either_ of the following options:

* Augment default `functionPattern` to `'([A-Za-z][a-zA-Z0-9]*)|(`.*`)'` (default: `'([a-z][a-zA-Z0-9]*)|(`.*`)'`)
* Augment default `functionPattern` to `'[a-zA-Z][a-zA-Z0-9]*'` (default is: `'[a-z][a-zA-Z0-9]*'`)
* Set `ignoreAnnotated` to `['Composable']`

### TopLevelPropertyNaming
Expand All @@ -47,7 +47,7 @@ private val FooPadding = 16.dp

#### Configurations:

* Set `constantPattern` to `'[A-Z][A-Za-z0-9]*'` (default: `'[A-Z][_A-Z0-9]*'`)
* Set `constantPattern` to `'[A-Z][A-Za-z0-9]*'` (default is: `'[A-Z][_A-Z0-9]*'`)


### LongParameterList
Expand Down