- All Implemented Interfaces:
Serializable
,Comparable<ObjectChecker.ErrorType>
,java.lang.constant.Constable
- Enclosing class:
- ObjectChecker
Potential issues identified by the checker.
- Since:
- 4.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(ERROR) Invalid date format in an author/committer line.(ERROR) Invalid email format in an author/committer line.(ERROR) An object has a bad sha1.(ERROR) A commit object has a bad parent sha1.(ERROR) Found an invalid time zone in an author/committer line.(ERROR) A tree has an invalid format.(ERROR) Byte sequence is not a valid UTF-8 character(ERROR) A tree contains duplicate file entries.(WARN) A path contains an empty name.(WARN) A path contains the full path starting with "/".(ERROR) A non-blob found at .gitmodules.(ERROR) The .gitmodules file is too large to parse.(ERROR) A submodule name is invalid.(INFO) Could not parse .gitmodules blob.(ERROR) .gitmodules path is invalid.(ERROR) .gitmodules is a symlink.(ERROR) Found an invalid submodule url.(WARN) A tree contains an entry named .(WARN) A tree contains an entry named ..(WARN) A tree contains an entry named .git(ERROR) Author is missing.(ERROR) Committer is missing.(ERROR) Email is missing in an author/committer line.(ERROR) Missing object line in tag object.(ERROR) Missing space before date in an author/committer line.(ERROR) Missing tag line in a tag object.(ERROR) Missing tree line in a commit object.(ERROR) Missing type line in a tag object.(WARN) Tree contains entries pointing to a null sha1.(ERROR) A tree is not properly sorted.(ERROR) Found an unknown object type.(ERROR) Windows: Invalid name(WARN) Found a zero padded filemode in a tree. -
Method Summary
Modifier and TypeMethodDescriptionGet camelCaseVersion of the namestatic ObjectChecker.ErrorType
Returns the enum constant of this class with the specified name.static ObjectChecker.ErrorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL_SHA1
(WARN) Tree contains entries pointing to a null sha1. -
DUPLICATE_ENTRIES
(ERROR) A tree contains duplicate file entries. -
TREE_NOT_SORTED
(ERROR) A tree is not properly sorted. -
ZERO_PADDED_FILEMODE
(WARN) Found a zero padded filemode in a tree. -
EMPTY_NAME
(WARN) A path contains an empty name. -
FULL_PATHNAME
(WARN) A path contains the full path starting with "/". -
HAS_DOT
(WARN) A tree contains an entry named . -
HAS_DOTDOT
(WARN) A tree contains an entry named .. -
HAS_DOTGIT
(WARN) A tree contains an entry named .git -
BAD_OBJECT_SHA1
(ERROR) An object has a bad sha1. -
BAD_PARENT_SHA1
(ERROR) A commit object has a bad parent sha1. -
BAD_TREE_SHA1
(ERROR) A tree has an invalid format. -
MISSING_AUTHOR
(ERROR) Author is missing. -
MISSING_COMMITTER
(ERROR) Committer is missing. -
MISSING_OBJECT
(ERROR) Missing object line in tag object. -
MISSING_TREE
(ERROR) Missing tree line in a commit object. -
MISSING_TYPE_ENTRY
(ERROR) Missing type line in a tag object. -
MISSING_TAG_ENTRY
(ERROR) Missing tag line in a tag object. -
BAD_DATE
(ERROR) Invalid date format in an author/committer line. -
BAD_EMAIL
(ERROR) Invalid email format in an author/committer line. -
BAD_TIMEZONE
(ERROR) Found an invalid time zone in an author/committer line. -
MISSING_EMAIL
(ERROR) Email is missing in an author/committer line. -
MISSING_SPACE_BEFORE_DATE
(ERROR) Missing space before date in an author/committer line. -
GITMODULES_BLOB
(ERROR) A non-blob found at .gitmodules.- Since:
- 5.2
-
GITMODULES_LARGE
(ERROR) The .gitmodules file is too large to parse.- Since:
- 5.2
-
GITMODULES_NAME
(ERROR) A submodule name is invalid.- Since:
- 5.2
-
GITMODULES_PARSE
(INFO) Could not parse .gitmodules blob.- Since:
- 5.2
-
GITMODULES_PATH
(ERROR) .gitmodules path is invalid.- Since:
- 5.2
-
GITMODULES_SYMLINK
(ERROR) .gitmodules is a symlink.- Since:
- 5.2
-
GITMODULES_URL
(ERROR) Found an invalid submodule url.- Since:
- 5.2
-
UNKNOWN_TYPE
(ERROR) Found an unknown object type. -
WIN32_BAD_NAME
(ERROR) Windows: Invalid name -
BAD_UTF8
(ERROR) Byte sequence is not a valid UTF-8 character
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessageId
Get camelCaseVersion of the name- Returns:
- camelCaseVersion of the name.
-