File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 2
2
# See https://clang.llvm.org/extra/clang-tidy/index.html
3
3
Checks : '
4
4
concurrency-*,
5
- performance-*,
5
+ bugprone-*,
6
+ -bugprone-easily-swappable-parameters,
6
7
'
7
8
InheritParentConfig : true
8
9
WarningsAsErrors : ' *'
Original file line number Diff line number Diff line change @@ -76,11 +76,9 @@ auto find_anchors(const sourcemeta::core::JSON &schema,
76
76
const sourcemeta::core::URI identifier (schema.at (" $id" ).to_string ());
77
77
if (identifier.is_fragment_only ()) {
78
78
result.insert (
79
- {sourcemeta::core::JSON::String{
80
- identifier.fragment ()
81
- .value ()}, // NOLINT(bugprone-unchecked-optional-access):
82
- // Check for optional is happening
83
- // inside is_fragment_only()
79
+ // Check for optional is happening inside is_fragment_only()
80
+ // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
81
+ {sourcemeta::core::JSON::String{identifier.fragment ().value ()},
84
82
AnchorType::Static});
85
83
}
86
84
}
@@ -95,11 +93,9 @@ auto find_anchors(const sourcemeta::core::JSON &schema,
95
93
const sourcemeta::core::URI identifier (schema.at (" id" ).to_string ());
96
94
if (identifier.is_fragment_only ()) {
97
95
result.insert (
98
- {sourcemeta::core::JSON::String{
99
- identifier.fragment ()
100
- .value ()}, // NOLINT(bugprone-unchecked-optional-access):
101
- // Check for optional is happening
102
- // inside is_fragment_only()
96
+ // Check for optional is happening inside is_fragment_only()
97
+ // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
98
+ {sourcemeta::core::JSON::String{identifier.fragment ().value ()},
103
99
AnchorType::Static});
104
100
}
105
101
}
Original file line number Diff line number Diff line change @@ -681,8 +681,6 @@ auto URI::try_resolve_from(const URI &base) -> URI & {
681
681
this ->scheme_ = base.scheme_ ;
682
682
this ->query_ = base.query_ ;
683
683
return *this ;
684
- } else if (base.path ().has_value () && base.path ().value ().starts_with (" .." )) {
685
- return *this ;
686
684
} else if (base.is_relative () && this ->is_relative () &&
687
685
base.path_ .has_value () && this ->path_ .has_value () &&
688
686
this ->path_ .value ().find (' /' ) == std::string::npos &&
You can’t perform that action at this time.
0 commit comments