Skip to content

[java] ClassNamingConventions shouldn't prohibit numbers in class names #1065

Closed

Description

@mkordas

Affects PMD Version:
6.3.0

Rule:
ClassNamingConventions

Description:
ClassNamingConventions shouldn't prohibit numbers in class names by default. I don't see anything wrong with class named e.g. Md5Checksum. Actually there are hundreds of classes with numbers in their names in JDK itself, e.g. MD5, SHA1, SHA256 etc.

Code Sample demonstrating the issue:

public class Md5Checksum {}
[ClassNamingConventions] The class name 'Md5Checksum' doesn't match '[A-Z][a-zA-Z]+

Running PMD through: Gradle

Activity

  1. added this to the 6.4.0 milestone on Apr 30, 2018
  2. self-assigned this
    on Apr 30, 2018
  3. oowekyala commented on Apr 30, 2018

    @oowekyala
    Member

    Yes that's right, that was a bit of a shortsighted move. I'll push a fix

  4. added a commit that references this issue on Apr 30, 2018
    30774b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions