Skip to content

Commit

Permalink
fix(linter): cleanup linter hints (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Jan 26, 2024
1 parent 228293c commit 0e6238a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![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)
[![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)
[![paypal](https://img.shields.io/badge/PayPal-support-blue.svg?logo=paypal)](https://www.paypal.me/xensik)

Expand Down
5 changes: 2 additions & 3 deletions include/xsk/arc/common/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ enum class instance : u8

enum class build : u8
{
prod = 0 << 0,
prod = 0,
dev_blocks = 1 << 0,
dev_maps = 1 << 1,

dev = dev_blocks | dev_maps,
};

Expand Down Expand Up @@ -71,7 +70,7 @@ struct props
{
enum values : u32
{
none = 0 << 0,
none = 0,
v2 = 1 << 0,
v3 = 1 << 1,
header64 = 1 << 2,
Expand Down
5 changes: 2 additions & 3 deletions include/xsk/gsc/common/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ enum class instance : u8

enum class build : u8
{
prod = 0 << 0,
prod = 0,
dev_blocks = 1 << 0,
dev_maps = 1 << 1,

dev = dev_blocks | dev_maps,
};

Expand Down Expand Up @@ -72,7 +71,7 @@ struct props
{
enum values : u32
{
none = 0 << 0,
none = 0,
str4 = 1 << 0, // strings size 4
tok4 = 1 << 1, // tokenid size 4
waitframe = 1 << 2, // waitframe opcode
Expand Down
1 change: 0 additions & 1 deletion src/arc/common/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ auto node::is_boolean() -> bool
default:
return false;
}
return false;
default:
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>")
("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>())
("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"))
("h,help", "Display help.")
("v,version", "Display version.");
Expand Down

0 comments on commit 0e6238a

Please # to comment.