Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sort enum values alphabetically #704

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/faker-cxx/Finance.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,16 @@ class Finance

enum class BicCountry
{
Poland,
UnitedStates,
UnitedKingdom,
Germany,
Romania,
France,
Germany,
India,
Italy,
Spain,
Netherlands,
India,
Poland,
Romania,
Spain,
UnitedKingdom,
UnitedStates,
};

/**
Expand Down
18 changes: 9 additions & 9 deletions include/faker-cxx/Internet.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ namespace faker
{
enum class HttpResponseType
{
ClientError,
Informational,
Success,
Redirection,
ClientError,
ServerError
ServerError,
Success,
};

enum class WebProtocol
Expand Down Expand Up @@ -113,16 +113,16 @@ class Internet

enum class EmojiType
{
Smiley,
Activity,
Body,
Person,
Nature,
Flag,
Food,
Travel,
Activity,
Nature,
Object,
Person,
Smiley,
Symbol,
Flag
Travel,
};

/**
Expand Down
22 changes: 11 additions & 11 deletions include/faker-cxx/Location.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ namespace faker
{
enum class AddressCountry
{
Usa,
Poland,
Australia,
Brazil,
Czech,
Denmark,
Estonia,
Finland,
France,
Russia,
Ukraine,
Italy,
Germany,
Czech,
Australia,
India,
Denmark,
Italy,
Poland,
Russia,
Spain,
Brazil,
Finland,
Estonia,
Ukraine,
Usa,
};

class Location
Expand Down
66 changes: 33 additions & 33 deletions include/faker-cxx/Person.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,65 +251,65 @@ class Person

enum class PassportCountry
{
Usa,
Poland,
France,
Poland,
Romania,
Usa,
};

enum class Sex
{
Male,
Female,
Male,
};

enum class SsnCountry
{
Poland,
Usa,
England,
Germany,
France,
Germany,
India,
Italy,
Poland,
Spain,
India,
Usa,
};

enum class Language
{
Albanian,
Belarusian,
Croatian,
Czech,
Danish,
Dutch,
English,
Polish,
Estonian,
Finnish,
French,
German,
Italian,
Russian,
Romanian,
Greek,
Hindi,
Finnish,
Hungarian,
Irish,
Italian,
Japanese,
Korean,
Latvian,
Macedonian,
Mandarin,
Nepali,
Norwegian,
Polish,
Portuguese,
Romanian,
Russian,
Serbian,
Slovak,
Slovene,
Spanish,
Swedish,
Turkish,
Czech,
Slovak,
Ukrainian,
Danish,
Swedish,
Portuguese,
Norwegian,
Japanese,
Hungarian,
Croatian,
Greek,
Slovene,
Dutch,
Mandarin,
Korean,
Serbian,
Macedonian,
Albanian,
Latvian,
Irish,
Belarusian,
Estonian
};
}
4 changes: 2 additions & 2 deletions include/faker-cxx/System.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ struct FileOptions

enum class FileType
{
Video,
Application,
Audio,
Image,
Text,
Application
Video,
};

struct CronOptions
Expand Down
104 changes: 52 additions & 52 deletions include/faker-cxx/types/Country.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,66 +4,66 @@ namespace faker
{
enum class Country
{
Usa,
Poland,
France,
Germany,
Italy,
Russia,
England,
Romania,
India,
Finland,
Nepal,
Spain,
Turkey,
Czech,
Slovakia,
Ukraine,
Denmark,
Sweden,
Brazil,
Norway,
Japan,
Portugal,
Hungary,
Croatia,
Greece,
Slovenia,
Austria,
Switzerland,
Belgium,
Netherlands,
China,
Korea,
Canada,
Mexico,
Albania,
Argentina,
Australia,
Serbia,
Macedonia,
Albania,
Latvia,
Ireland,
Austria,
Azerbaijan,
Belarus,
Estonia,
Iran,
Belgium,
Bosnia,
Brazil,
Bulgaria,
Moldova,
Lithuania,
Canada,
China,
Croatia,
Czech,
Denmark,
England,
Estonia,
Finland,
France,
Germany,
Ghana,
Greece,
Hungary,
Iceland,
Palestine,
India,
Iran,
Ireland,
Israel,
Vietnam,
Monaco,
Bosnia,
Italy,
Japan,
Kazakhstan,
Korea,
Latvia,
Lebanon,
Syria,
Lithuania,
Macedonia,
Maldives,
Malta,
Mexico,
Moldova,
Monaco,
Nepal,
Netherlands,
Norway,
Palestine,
Poland,
Portugal,
Romania,
Russia,
Serbia,
Slovakia,
Slovenia,
SouthAfrica,
Azerbaijan,
Ghana,
Kazakhstan,
Maldives,
Spain,
Sweden,
Switzerland,
Syria,
Turkey,
Ukraine,
Usa,
Vietnam,
};
}
4 changes: 2 additions & 2 deletions include/faker-cxx/types/Hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ enum class HexCasing

enum class HexPrefix
{
ZeroX,
Hash,
None
None,
ZeroX,
};
}
Loading