Skip to content

Commit 534a3e4

Browse files
keitherenon
authored andcommitted
Fix buildifier violations
1 parent 87a9910 commit 534a3e4

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

clang_tidy/clang_tidy.bzl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,19 @@ def _rule_sources(ctx):
8686
Returns True if the file type matches one of the permitted srcs file types for C and C++ header/source files.
8787
"""
8888
permitted_file_types = [
89-
".c", ".cc", ".cpp", ".cxx", ".c++", ".C", ".h", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".H",
89+
".c",
90+
".cc",
91+
".cpp",
92+
".cxx",
93+
".c++",
94+
".C",
95+
".h",
96+
".hh",
97+
".hpp",
98+
".hxx",
99+
".inc",
100+
".inl",
101+
".H",
90102
]
91103
for file_type in permitted_file_types:
92104
if src.basename.endswith(file_type):

example/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ cc_library(
2020
cc_binary(
2121
name = "example",
2222
srcs = ["app.cpp"],
23-
deps = [":lib", ":lib_ignored"],
23+
deps = [
24+
":lib",
25+
":lib_ignored",
26+
],
2427
)

0 commit comments

Comments
 (0)