Skip to content

Commit

Permalink
♻️ Standardized remaining config entry notation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed Apr 30, 2024
1 parent 72419b4 commit d6c3a7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/ceedling/configurator_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,32 +176,32 @@ def validate_threads(config)
case compile_threads
when Integer
if compile_threads < 1
@streaminator.stream_puts("ERROR: [:project][:compile_threads] must be greater than 0", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:compile_threads must be greater than 0", Verbosity::ERRORS)
valid = false
end
when Symbol
if compile_threads != :auto
@streaminator.stream_puts("ERROR: [:project][:compile_threads] is neither an integer nor :auto", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:compile_threads is neither an integer nor :auto", Verbosity::ERRORS)
valid = false
end
else
@streaminator.stream_puts("ERROR: [:project][:compile_threads] is neither an integer nor :auto", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:compile_threads is neither an integer nor :auto", Verbosity::ERRORS)
valid = false
end

case test_threads
when Integer
if test_threads < 1
@streaminator.stream_puts("ERROR: [:project][:test_threads] must be greater than 0", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:test_threads must be greater than 0", Verbosity::ERRORS)
valid = false
end
when Symbol
if test_threads != :auto
@streaminator.stream_puts("ERROR: [:project][:test_threads] is neither an integer nor :auto", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:test_threads is neither an integer nor :auto", Verbosity::ERRORS)
valid = false
end
else
@streaminator.stream_puts("ERROR: [:project][:test_threads] is neither an integer nor :auto", Verbosity::ERRORS)
@streaminator.stream_puts("ERROR: :project:test_threads is neither an integer nor :auto", Verbosity::ERRORS)
valid = false
end

Expand Down
2 changes: 1 addition & 1 deletion lib/ceedling/include_pathinator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def validate_header_files_collection

if headers.length == 0
error = "WARNING: No header files found in project.\n" +
"Add search paths to [:paths][:include] in your project file and/or use #{UNITY_TEST_INCLUDE_PATH}() in your test files.\n" +
"Add search paths to :paths:include in your project file and/or use #{UNITY_TEST_INCLUDE_PATH}() in your test files.\n" +
"Verify header files with `ceedling paths:include` and\\or `ceedling files:include`."
@streaminator.stream_puts(error, Verbosity::COMPLAIN)
end
Expand Down

0 comments on commit d6c3a7c

Please sign in to comment.