mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-69952 (Inspection for package names)
This commit is contained in:
@@ -1524,9 +1524,10 @@ package.in.multiple.modules.display.name=Package with classes in multiple module
|
||||
package.in.multiple.modules.problem.descriptor=Package {0} has classes in multiple modules #loc
|
||||
disjoint.package.display.name=Package with disjoint dependency graph
|
||||
disjoint.package.problem.descriptor=Package {0} can be decomposed into {1} independent packages #loc
|
||||
package.naming.convention.problem.descriptor.short=Package name <code>{0}</code> is too short #loc
|
||||
package.naming.convention.problem.descriptor.long=Package name <code>{0}</code> is too long #loc
|
||||
package.naming.convention.problem.descriptor.regex.mismatch=Package name <code>{0}</code> doesn''t match regex ''{1}'' #loc
|
||||
package.naming.convention.display.name=Package naming convention
|
||||
package.naming.convention.problem.descriptor.short=Package name <code>{0}</code> is too short
|
||||
package.naming.convention.problem.descriptor.long=Package name <code>{0}</code> is too long
|
||||
package.naming.convention.problem.descriptor.regex.mismatch=Package name <code>{0}</code> doesn''t match regex ''{1}''
|
||||
cyclic.class.initialization.display.name=Cyclic class initialization dependency
|
||||
cyclic.class.initialization.problem.descriptor=Initialization of class {0} is cyclically dependent on {1} other classes #loc
|
||||
before.or.after.is.public.void.no.arg.display.name=Malformed @Before or @After method
|
||||
|
||||
@@ -456,7 +456,7 @@ public class InspectionGadgetsPlugin implements ApplicationComponent,
|
||||
m_inspectionClasses.add(NonExceptionNameEndsWithExceptionInspection.class);
|
||||
m_inspectionClasses.add(OverloadedMethodsWithSameNumberOfParametersInspection.class);
|
||||
m_inspectionClasses.add(OverloadedVarargsMethodInspection.class);
|
||||
// m_inspectionClasses.add(PackageNamingConventionInspection.class);
|
||||
m_inspectionClasses.add(PackageNamingConventionInspection.class);
|
||||
m_inspectionClasses.add(ParameterNameDiffersFromOverriddenParameterInspection.class);
|
||||
m_inspectionClasses.add(ParameterNamingConventionInspection.class);
|
||||
m_inspectionClasses.add(QuestionableNameInspection.class);
|
||||
|
||||
+2
-2
@@ -75,8 +75,8 @@ public class PackageNamingConventionInspection extends BaseGlobalInspection {
|
||||
if (!(refEntity instanceof RefPackage)) {
|
||||
return null;
|
||||
}
|
||||
final String name = refEntity.getName();
|
||||
if (name == null) {
|
||||
@NonNls final String name = refEntity.getName();
|
||||
if (name == null || "default package".equals(name)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
This global inspection reports packages whose names are either too short, too long, or do not follow
|
||||
the specified regular expression pattern. Since this inspection requires global code analysis, it is only available in batch inspection mode.
|
||||
<p>
|
||||
Use the fields provided below to specify minimum length, maximum length and regular expression expected for method parameter names
|
||||
(Regular expressions are in standard <b>java.util.regex</b> format).
|
||||
<p>
|
||||
<small>New in 11, Powered by InspectionGadgets</small>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user