From f73a7af6ab3a75f8709c58788278a5c7f35e38b1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 11 Sep 2016 08:29:39 +0100 Subject: [PATCH] PackageName: allow numbers in package names, after an initial letter --- README.md | 4 ++-- src/main/resources/net/kemitix/checkstyle.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9690921..6292a06 100644 --- a/README.md +++ b/README.md @@ -1809,9 +1809,9 @@ Checks that the class has a `package` definition. #### [PackageName](http://checkstyle.sourceforge.net/config_naming.html#PackageName) -Checks the format of package names. +Checks the format of package names. Only lowercase letters, no initial numbers or any underscores. -Identifiers must match `^[a-z]+(\.[a-z]+)*$`. +Identifiers must match `^[a-z]+(\.[a-z][a-z0-9]+)*$`. #### [ParameterName](http://checkstyle.sourceforge.net/config_naming.html#ParameterName) diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index 66fa2ab..997c29e 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -180,7 +180,7 @@ - +