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

Stop versioning Checkstyle IDE config #87285

Merged

Conversation

pugnascotia
Copy link
Contributor

@pugnascotia pugnascotia commented Jun 1, 2022

Closes #86945.

The IntelliJ Checkstyle plugin likes to modify its configuration file
unecessarily, which creates friction for developers because they have
the revert these changes.

Instead, stop versioning the config file and instead update the
configureIdeCheckstyle task to copy the required content into place.

Closes elastic#86945.

The IntelliJ Checkstyle plugin likes to modify its configuration file
unecessarily, which creates friction for developers because they have
the revert these changes.

Instead, stop versioning the config file and instead update the
`configureIdeCheckstyle` task to copy the required content into place.
@pugnascotia pugnascotia added >refactoring :Delivery/Tooling Developer tooliing and automation labels Jun 1, 2022
@pugnascotia pugnascotia requested a review from mark-vieira June 1, 2022 10:35
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Jun 1, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, otherwise LGTM.

// the result to version control, because the plugin has a habit of modifying the file and
// replacing the `$PROJECT_DIR$` placeholders, which developers must then revert.
Files.copy(
Paths.get(file("${resources}/checkstyle-idea.xml").getPath()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add these as inputs/outputs of this task.

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
@pugnascotia pugnascotia merged commit d72f3e4 into elastic:master Jun 2, 2022
@pugnascotia pugnascotia deleted the 86945-do-not-version-checkstyle-config branch June 2, 2022 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Tooling Developer tooliing and automation >refactoring Team:Delivery Meta label for Delivery team v7.17.5 v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IntelliJ IDE continually modifies source controlled checkstyle plugin configuration
4 participants