-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DepShield: Navigate around multiple returns (#238)
Sometimes calling `YAML.load_file` on an empty file returns `nil`. Other times, it returns `false`. This accounts for both.
- Loading branch information
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module DepShield | ||
VERSION = "0.1.1" | ||
VERSION = "0.1.2" | ||
end |
12 changes: 12 additions & 0 deletions
12
packages/dep_shield/spec/internal/config/extra/.deprecation_todo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Using NitroErrors to mark something as deprecated means that it may raise when | ||
# new code using deprecated methods is introduced. | ||
# This file can be used to whitelist preexisting methods so that they will not raise, | ||
# and register a list of todos for places that should be fixed. | ||
# The intention is for the user to remove these configuration records | ||
# one by one as the deprecations are removed from the code base. | ||
# | ||
# More information: https://github.com/powerhome/nitro-web/blob/master/components/nitro_errors/docs/README.md#L1 | ||
|
||
# Example: | ||
# test_deprecation_name: | ||
# - app/controllers/example_controller.rb |