Skip to content

Commit

Permalink
Fix buildifier violations
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored and erenon committed Oct 6, 2024
1 parent 87a9910 commit 534a3e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 13 additions & 1 deletion clang_tidy/clang_tidy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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",
],
)

0 comments on commit 534a3e4

Please sign in to comment.