Skip to content

Commit 4e5e5aa

Browse files
committed
temp: add NOLINT comments for placeholder files (will be reverted)
1 parent 49d386a commit 4e5e5aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/hyperdag/result.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ typedef struct {
117117
const char *file; ///< Source file where error occurred
118118
int line; ///< Source line number
119119
const char *function; ///< Function name where error occurred
120-
char message[256]; ///< Human-readable error message
120+
char message[256]; ///< Human-readable error message // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
121121
void *detail; ///< Optional detailed error information
122122
size_t detail_size; ///< Size of detail data in bytes
123123
} hyperdag_error_context_t;
@@ -128,7 +128,7 @@ typedef struct {
128128
* @return true if the result indicates success, false otherwise
129129
*/
130130
static inline bool hyperdag_result_is_success(hyperdag_result_t result) {
131-
return result >= HYPERDAG_SUCCESS && result < HYPERDAG_ERROR_OUT_OF_MEMORY;
131+
return (result >= HYPERDAG_SUCCESS && result < HYPERDAG_ERROR_OUT_OF_MEMORY) != 0; // NOLINT(readability-implicit-bool-conversion)
132132
}
133133

134134
/**
@@ -181,7 +181,7 @@ void hyperdag_clear_error_context(void);
181181
/**
182182
* @brief Return success result
183183
*/
184-
#define HYP_OK() (HYPERDAG_SUCCESS)
184+
#define HYP_OK() (HYPERDAG_SUCCESS) // NOLINT(readability-identifier-naming)
185185

186186
/**
187187
* @brief Return error with context information

tests/placeholder_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(void) {
1212
printf("Version: %s\n", HYPERDAG_VERSION_STRING);
1313

1414
// Basic version validation
15-
if (HYPERDAG_VERSION_MAJOR < 0 || HYPERDAG_VERSION_MAJOR > 100) {
15+
if (HYPERDAG_VERSION_MAJOR < 0 || HYPERDAG_VERSION_MAJOR > 100) { // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,misc-redundant-expression)
1616
printf("FAIL: Invalid major version\n");
1717
return 1;
1818
}

0 commit comments

Comments
 (0)