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

console output should include the name of the rule being used #139

Open
RBusarow opened this issue May 26, 2023 · 0 comments
Open

console output should include the name of the rule being used #139

RBusarow opened this issue May 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@RBusarow
Copy link
Member

Assume that I have a code sample with some versioned plugins, and the versions get updated:

plugins {
  kotlin("jvm") version "1.8.0"
  kotlin("plugin.serialization") version "1.8.0"
  id("com.squareup.anvil") version "2.4.3"
}

Those two different versions will be in two different rules, but the console output would look like this:

> Task :doksWebsite
wrote changes to file://some-file.mdx
line 38  --    kotlin("jvm") version "1.8.0"
         ++    kotlin("jvm") version "1.8.10"
line 39  --    kotlin("plugin.serialization") version "1.8.0"
         ++    kotlin("plugin.serialization") version "1.8.10"
line 40  --    id("com.squareup.anvil") version "2.4.3"
         ++    id("com.squareup.anvil") version "2.4.4"

If the rules wound up updating different sections, they would also just be described in a single diff, since the output is just describing changes to the file.

It would probably be better if the outputs were separated by rule and section. The rule name should be printed along with the file path, and each rule should be reported individually.

@RBusarow RBusarow added the enhancement New feature or request label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant