Skip to content

Commit

Permalink
Expand Mock option explanation for use with multiple issues. (#257)
Browse files Browse the repository at this point in the history
Lint overrides the option setting to the issue included latest in the issue registry. Currently, that is DoNotMockRecordClass. Since I assume the order of the issue is not fixed, it's best to set it for all issues.
  • Loading branch information
utwyko authored May 2, 2024
1 parent 5458c45 commit e3446af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ constructor(
"mock-annotations",
"A comma-separated list of mock annotations.",
"org.mockito.Mock,org.mockito.Spy",
"This property should define comma-separated list of mock annotation class names (FQCN).",
"This property should define comma-separated list of mock annotation class names (FQCN). Set this for all issues using this option.",
)

internal val MOCK_FACTORIES =
StringOption(
"mock-factories",
"A comma-separated list of mock factories (org.mockito.Mockito#methodName).",
"org.mockito.Mockito#mock,org.mockito.Mockito#spy,slack.test.mockito.MockitoHelpers#mock,slack.test.mockito.MockitoHelpersKt#mock",
"A comma-separated list of mock factories (org.mockito.Mockito#methodName).",
"A comma-separated list of mock factories (org.mockito.Mockito#methodName). Set this for all issues using this option.",
)

internal val MOCK_REPORT =
StringOption(
"mock-report",
"If enabled, writes a mock report to <project-dir>/$MOCK_REPORT_PATH.",
"none",
"If enabled, writes a mock report to <project-dir>/$MOCK_REPORT_PATH. The format of the file is a csv of (type,isError) of mocked classes.",
"If enabled, writes a mock report to <project-dir>/$MOCK_REPORT_PATH. The format of the file is a csv of (type,isError) of mocked classes. Set this for all issues using this option.",
)

private val TYPE_CHECKERS =
Expand Down

0 comments on commit e3446af

Please sign in to comment.