Skip to content

Fix buildifier violations #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion clang_tidy/clang_tidy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,19 @@ def _rule_sources(ctx):
Returns True if the file type matches one of the permitted srcs file types for C and C++ header/source files.
"""
permitted_file_types = [
".c", ".cc", ".cpp", ".cxx", ".c++", ".C", ".h", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".H",
".c",
".cc",
".cpp",
".cxx",
".c++",
".C",
".h",
".hh",
".hpp",
".hxx",
".inc",
".inl",
".H",
]
for file_type in permitted_file_types:
if src.basename.endswith(file_type):
Expand Down
5 changes: 4 additions & 1 deletion example/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ cc_library(
cc_binary(
name = "example",
srcs = ["app.cpp"],
deps = [":lib", ":lib_ignored"],
deps = [
":lib",
":lib_ignored",
],
)
Loading