Skip to content

Plugin didn't change wrong name of var #142

Closed

Description

@peewe

Hello , I noticed that the plugin google-java-format does not change names which contains non ASCII chars.
According to, google-java-style it should change them or warning, but it doesn't do that. How do I fix it?
Thanks and have a nice day :)

Activity

  1. lowasser commented on Apr 4, 2017

    @lowasser
    Contributor

    ? g-j-f only makes whitespace changes at this time, and that is working as intended. The formatter couldn't possibly make reasonable decisions here when it encounters non ASCII identifiers; that really requires a human's touch.

  2. alexkleiman commented on Apr 4, 2017

    @alexkleiman

    @lowasser Is it possible that @peewe is asking why g-j-f doesn’t replace the non-ASCII versions of characters [a-z0-9A-Z] with their ASCII equivalents.

    I don't know whether this is a desired feature or not, but it does at least some like something which requires less of a human touch.

  3. kevinb9n commented on Apr 4, 2017

    @kevinb9n
    Contributor
  4. sormuras commented on Apr 4, 2017

    @sormuras
    Contributor

    GJF could emit a warning.

  5. kevinb9n commented on Apr 4, 2017

    @kevinb9n
    Contributor
  6. sormuras commented on Apr 4, 2017

    @sormuras
    Contributor

    Point taken.

  7. sormuras commented on Apr 4, 2017

    @sormuras
    Contributor

    Is the same reasoning applicable to not consider a validation mode described in #105 (and implemented in #106)?

  8. kevinb9n commented on Apr 4, 2017

    @kevinb9n
    Contributor

    No, I think validation is fine as long as people understand that it means both much more and much less than validating style correctness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions