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

Check that code can still be parsed after a format #2742

Merged
merged 1 commit into from
Jul 23, 2024

Commits on Jul 16, 2024

  1. Check that code can still be parsed after a format

    In rare cases it can happen that formatted code can not be compiled anymore. Add additional checking in `KtLintAssertThat` that linting of formatted code still succeeds during unit tests. For release testing, the CLI has been expanded with a new (hidden) option that forces lint to run after format, and to stop execution as soon as the formatted code can not be compiled anymore.
    
    Note that this still does not guarantee 100% that formatted code will be compilable. The additional tests will only ensure that they won't go unnoticed when the problem occurs in unit tests, or in the sample projects that are used for release testing.
    
    Closes #2691
    paul-dingemans committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    08b2f15 View commit details
    Browse the repository at this point in the history