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

feat: add /warn command #5474

Merged
merged 7 commits into from
Jun 22, 2024
Merged

Conversation

iProdigy
Copy link
Contributor

Closes #5439

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

mocks/include/mocks/Helix.hpp Show resolved Hide resolved
src/providers/twitch/api/Helix.hpp Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) June 22, 2024 10:10
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

// /warn
// The extra parenthesis around the failure callback is because its type
// contains a comma
MOCK_METHOD(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for function 'MOCK_METHOD' [readability-identifier-naming]

Suggested change
MOCK_METHOD(
mockMethod(

@@ -621,6 +621,18 @@ enum class HelixBanUserError { // /timeout, /ban
Forwarded,
}; // /timeout, /ban

enum class HelixWarnUserError { // /warn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: enum 'HelixWarnUserError' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]

enum class HelixWarnUserError {  // /warn
           ^

@pajlada pajlada merged commit c01bfcf into Chatterino:master Jun 22, 2024
17 checks passed
@iProdigy iProdigy deleted the feature/warn-command branch June 22, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Warn Feature
3 participants