Skip to content

Commit

Permalink
Update issue ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Nov 16, 2019
1 parent 6de2da4 commit e1c9002
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Snapshots of the development version are available in [Sonatype's `snapshots` re

## Lint Rules

- **LowerCaseComposableFunctionName** - A function marked with a `@Composable` annotation should start with a capital letter. It is a convention emphasizes the mental models that a `@Composable` function is a **noun** rather than a **verb**.
- **InvalidComposableFunctionName** - A function marked with a `@Composable` annotation should start with a capital letter. It is a convention emphasizes the mental models that a `@Composable` function is a **noun** rather than a **verb**.

[maven-central]: https://search.maven.org/search?q=g:io.github.reactivecircus.composelint
[snap]: https://oss.sonatype.org/content/repositories/snapshots/
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ComposableFunctionNameDetector : Detector(), SourceCodeScanner {

companion object {
val ISSUE: Issue = Issue.create(
id = "LowerCaseComposableFunctionName",
id = "InvalidComposableFunctionName",
briefDescription = "A function marked with a `@Composable` annotation should start with a capital letter.",
explanation = """
It is a convention that `@Composable` functions start with a capital letter \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ComposableFunctionNameDetectorTest {
.issues(ComposableFunctionNameDetector.ISSUE)
.run()
.expect("""
src/test.kt:3: Warning: @Composable function names should be capitalized. [LowerCaseComposableFunctionName]
src/test.kt:3: Warning: @Composable function names should be capitalized. [InvalidComposableFunctionName]
@Composable
^
0 errors, 1 warnings
Expand Down

0 comments on commit e1c9002

Please sign in to comment.