fix(linter): cleanup linter hints (#189)

This commit is contained in:
Xenxo Espasandín 2024-01-26 18:47:58 +01:00 committed by GitHub
parent 228293c0bf
commit 0e6238a6ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,7 @@
[![build](https://github.com/xensik/gsc-tool/workflows/Build/badge.svg)](https://github.com/xensik/gsc-tool/actions) [![build](https://github.com/xensik/gsc-tool/workflows/Build/badge.svg)](https://github.com/xensik/gsc-tool/actions)
![license](https://img.shields.io/github/license/xensik/gsc-tool.svg) [![sonar](https://sonarcloud.io/api/project_badges/measure?project=xensik_gsc-tool&metric=alert_status)](https://sonarcloud.io/summary/overall?id=xensik_gsc-tool)
[![issues](https://img.shields.io/github/issues/xensik/gsc-tool)](https://github.com/xensik/gsc-tool/issues) [![issues](https://img.shields.io/github/issues/xensik/gsc-tool)](https://github.com/xensik/gsc-tool/issues)
[![license](https://img.shields.io/github/license/xensik/gsc-tool.svg)](https://github.com/xensik/gsc-tool/blob/dev/LICENSE)
[![releases](https://img.shields.io/github/v/release/xensik/gsc-tool)](https://github.com/xensik/gsc-tool/releases) [![releases](https://img.shields.io/github/v/release/xensik/gsc-tool)](https://github.com/xensik/gsc-tool/releases)
[![paypal](https://img.shields.io/badge/PayPal-support-blue.svg?logo=paypal)](https://www.paypal.me/xensik) [![paypal](https://img.shields.io/badge/PayPal-support-blue.svg?logo=paypal)](https://www.paypal.me/xensik)

View File

@ -29,10 +29,9 @@ enum class instance : u8
enum class build : u8 enum class build : u8
{ {
prod = 0 << 0, prod = 0,
dev_blocks = 1 << 0, dev_blocks = 1 << 0,
dev_maps = 1 << 1, dev_maps = 1 << 1,
dev = dev_blocks | dev_maps, dev = dev_blocks | dev_maps,
}; };
@ -71,7 +70,7 @@ struct props
{ {
enum values : u32 enum values : u32
{ {
none = 0 << 0, none = 0,
v2 = 1 << 0, v2 = 1 << 0,
v3 = 1 << 1, v3 = 1 << 1,
header64 = 1 << 2, header64 = 1 << 2,

View File

@ -29,10 +29,9 @@ enum class instance : u8
enum class build : u8 enum class build : u8
{ {
prod = 0 << 0, prod = 0,
dev_blocks = 1 << 0, dev_blocks = 1 << 0,
dev_maps = 1 << 1, dev_maps = 1 << 1,
dev = dev_blocks | dev_maps, dev = dev_blocks | dev_maps,
}; };
@ -72,7 +71,7 @@ struct props
{ {
enum values : u32 enum values : u32
{ {
none = 0 << 0, none = 0,
str4 = 1 << 0, // strings size 4 str4 = 1 << 0, // strings size 4
tok4 = 1 << 1, // tokenid size 4 tok4 = 1 << 1, // tokenid size 4
waitframe = 1 << 2, // waitframe opcode waitframe = 1 << 2, // waitframe opcode

View File

@ -104,7 +104,6 @@ auto node::is_boolean() -> bool
default: default:
return false; return false;
} }
return false;
default: default:
return false; return false;
} }

View File

@ -1105,7 +1105,7 @@ auto main(u32 argc, char** argv) -> result
("g,game", "[REQUIRED] one of: iw5, iw6, iw7, iw8, iw9, s1, s2, s4, h1, h2, t6, t7, t8, t9", cxxopts::value<std::string>(), "<game>") ("g,game", "[REQUIRED] one of: iw5, iw6, iw7, iw8, iw9, s1, s2, s4, h1, h2, t6, t7, t8, t9", cxxopts::value<std::string>(), "<game>")
("s,system", "[REQUIRED] one of: pc, ps3, ps4, ps5, xb2 (360), xb3 (One), xb4 (Series X|S), wiiu", cxxopts::value<std::string>(), "<system>") ("s,system", "[REQUIRED] one of: pc, ps3, ps4, ps5, xb2 (360), xb3 (One), xb4 (Series X|S), wiiu", cxxopts::value<std::string>(), "<system>")
("p,path", "File or directory to process.", cxxopts::value<std::string>()) ("p,path", "File or directory to process.", cxxopts::value<std::string>())
("d,dev", "Enable developer mode (generate bytecode map).", cxxopts::value<bool>()->implicit_value("true")) ("d,dev", "Enable developer mode (dev blocks & generate bytecode map).", cxxopts::value<bool>()->implicit_value("true"))
("z,zonetool", "Enable zonetool mode (use .cgsc files).", cxxopts::value<bool>()->implicit_value("true")) ("z,zonetool", "Enable zonetool mode (use .cgsc files).", cxxopts::value<bool>()->implicit_value("true"))
("h,help", "Display help.") ("h,help", "Display help.")
("v,version", "Display version."); ("v,version", "Display version.");