You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/08/25 21:07:00 UTC

[jira] [Commented] (LUCENE-10003) Disallow C-style array declarations

    [ https://issues.apache.org/jira/browse/LUCENE-10003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17404722#comment-17404722 ] 

ASF subversion and git services commented on LUCENE-10003:
----------------------------------------------------------

Commit 8ac26737913d0c1555019e93bc6bf7db1ab9047e in lucene's branch refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=8ac2673 ]

LUCENE-10003: No C style array declaration (#206)

Most cases of C-style array declarations have been switched.  The Google Java Format, that which we adhere to, disallows C-style array declarations: https://google.github.io/styleguide/javaguide.html#s4.8.3-arrays
Some cases (esp. Snowball) can't be updated.

> Disallow C-style array declarations
> -----------------------------------
>
>                 Key: LUCENE-10003
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10003
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The Google Java Format, that which we adhere to, disallows c-style array declarations: https://google.github.io/styleguide/javaguide.html#s4.8.3-arrays
> It's also known to "Error Prone":
> https://errorprone.info/bugpattern/MixedArrayDimensions



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org