Skip to content

Commit

Permalink
Disable checks globally
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKutzner committed Dec 17, 2024
1 parent 34f5642 commit a2debfc
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Checks: "*,\
-fuchsia-default-arguments,\
-hicpp-vararg,\
-clang-analyzer-optin.cplusplus.VirtualCall,\
-clang-analyzer-optin.core.EnumCastOutOfRange,\
-cppcoreguidelines-owning-memory,\
-hicpp-no-array-decay,\
-*-magic-numbers,\
Expand Down Expand Up @@ -70,6 +71,7 @@ Checks: "*,\
-google-readability-avoid-underscore-in-googletest-name,\
-readability-function-cognitive-complexity,\
-readability-avoid-const-params-in-decls,\
-readability-avoid-return-with-void-value,\
-cppcoreguidelines-avoid-const-or-ref-data-members,\
-cppcoreguidelines-avoid-do-while,\
-altera-struct-pack-align,\
Expand Down
2 changes: 0 additions & 2 deletions exe/backend/src/http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ struct http_server::impl {
cb(json_response(req, gj.string()));
}

// NOLINTBEGIN(readability-avoid-return-with-void-value)
void handle_request(web_server::http_req_t const& req,
web_server::http_res_cb_t const& cb) {
std::cout << "[" << req.method_string() << "] " << req.target() << '\n';
Expand Down Expand Up @@ -344,7 +343,6 @@ struct http_server::impl {
}
server_.run();
}
// NOLINTEND(readability-avoid-return-with-void-value)

void stop() { server_.stop(); }

Expand Down
2 changes: 0 additions & 2 deletions src/extract.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ using namespace std::string_view_literals;

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
struct osm_restriction {
bool valid() const {
return from_ != osm_way_idx_t::invalid() &&
Expand Down Expand Up @@ -582,6 +581,5 @@ void extract(bool const with_platforms,

lookup{w, out, cista::mmap::protection::WRITE}.build_rtree();
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr
2 changes: 0 additions & 2 deletions src/lookup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
lookup::lookup(ways const& ways,
std::filesystem::path p,
cista::mmap::protection mode)
Expand Down Expand Up @@ -75,6 +74,5 @@ hash_set<node_idx_t> lookup::find_elevators(geo::box const& b) const {
});
return elevators;
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr
2 changes: 0 additions & 2 deletions src/ways.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace osr {

// NOLINTBEGIN(clang-analyzer-optin.core.EnumCastOutOfRange)
ways::ways(std::filesystem::path p, cista::mmap::protection const mode)
: p_{std::move(p)},
mode_{mode},
Expand Down Expand Up @@ -162,6 +161,5 @@ cista::wrapped<ways::routing> ways::routing::read(
void ways::routing::write(std::filesystem::path const& p) const {
cista::write(p / "routing.bin", *this);
}
// NOLINTEND(clang-analyzer-optin.core.EnumCastOutOfRange)

} // namespace osr

0 comments on commit a2debfc

Please sign in to comment.