Package | Description |
---|---|
com.puppycrawl.tools.checkstyle.checks |
Contains the checks that are bundled with the main distribution.
|
Modifier and Type | Method and Description |
---|---|
private static java.util.Optional<TranslationCheck.ResourceBundle> |
TranslationCheck.findBundle(java.util.Set<TranslationCheck.ResourceBundle> bundles,
TranslationCheck.ResourceBundle targetBundle)
Searches for specific resource bundle in a set of resource bundles.
|
private static java.util.Set<TranslationCheck.ResourceBundle> |
TranslationCheck.groupFilesIntoBundles(java.util.Set<java.io.File> files,
java.util.regex.Pattern baseNameRegexp)
Groups a set of files into bundles.
|
Modifier and Type | Method and Description |
---|---|
private void |
TranslationCheck.checkExistenceOfDefaultTranslation(TranslationCheck.ResourceBundle bundle)
Checks an existence of default translation file in the resource bundle.
|
private void |
TranslationCheck.checkExistenceOfRequiredTranslations(TranslationCheck.ResourceBundle bundle)
Checks an existence of translation files in the resource bundle.
|
private void |
TranslationCheck.checkTranslationKeys(TranslationCheck.ResourceBundle bundle)
Checks resource files in bundle for consistency regarding their keys.
|
private static java.util.Optional<TranslationCheck.ResourceBundle> |
TranslationCheck.findBundle(java.util.Set<TranslationCheck.ResourceBundle> bundles,
TranslationCheck.ResourceBundle targetBundle)
Searches for specific resource bundle in a set of resource bundles.
|
private static java.util.Optional<java.lang.String> |
TranslationCheck.getMissingFileName(TranslationCheck.ResourceBundle bundle,
java.lang.String languageCode)
Returns the name of translation file which is absent in resource bundle or Guava's Optional,
if there is not missing translation.
|
Modifier and Type | Method and Description |
---|---|
private static java.util.Optional<TranslationCheck.ResourceBundle> |
TranslationCheck.findBundle(java.util.Set<TranslationCheck.ResourceBundle> bundles,
TranslationCheck.ResourceBundle targetBundle)
Searches for specific resource bundle in a set of resource bundles.
|