You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the promotion of function naming I now see errors like "Function name should start with a lowercase letter (except factory methods) and use camel case" even though this is within a test. In my test case, junit (junit.framework and org.junit) is used for tests. I found ktlint does not recognized as test file with "junit.framework" So, expected behavior would be that kind of test file recognized as test file.
Current Behavior
The following test case is considered to have an invalid function name. According to Function naming tests are considered to have an import of org.junit, org.testng or kotlin.test, but this example doesn't have any.
package some.package
import junit.framework.TestCase
class ArgumentParserTest : TestCase() {
fun testParser_filterKeyVelye() {
}
}
Additional information
Current version of ktlint: 1.0.1
The text was updated successfully, but these errors were encountered:
Expected Behavior
With the promotion of function naming I now see errors like "Function name should start with a lowercase letter (except factory methods) and use camel case" even though this is within a test. In my test case, junit (junit.framework and org.junit) is used for tests. I found ktlint does not recognized as test file with "junit.framework" So, expected behavior would be that kind of test file recognized as test file.
Current Behavior
The following test case is considered to have an invalid function name. According to Function naming tests are considered to have an import of org.junit, org.testng or kotlin.test, but this example doesn't have any.
Additional information
The text was updated successfully, but these errors were encountered: