Fix rubocop offenses #40
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes various changes to improve code quality, fix RuboCop offenses, and enhance the
trace_location
gem. The most important changes include updating the RuboCop configuration, modifying error handling, and improving test descriptions and structure.RuboCop Configuration Updates:
.rubocop_todo.yml
file. This change ensures that the codebase adheres to more stringent linting rules.Code Quality Improvements:
# frozen_string_literal: true
to several files to optimize string handling and improve performance. [1] [2]$stderr.puts
withwarn
for better error handling and consistency inlib/trace_location.rb
.eval
usage to include a RuboCop directive to disable the security warning inlib/trace_location/cli.rb
.Testing Enhancements:
spec/trace_location_spec.rb
by usingdescribed_class
and adding context blocks for better readability and maintainability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Documentation and Changelog:
CHANGELOG.md
to include a note about fixing RuboCop offenses.trace_location.gemspec
for better readability.These changes collectively enhance the code quality, maintainability, and performance of the
trace_location
gem.