From bd90a14c8ff1bd6822bf145e905fe2797949ae3e Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 4 Oct 2024 20:25:16 +0000 Subject: [PATCH] Fix buildifier violations --- clang_tidy/clang_tidy.bzl | 14 +++++++++++++- example/BUILD | 5 ++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/clang_tidy/clang_tidy.bzl b/clang_tidy/clang_tidy.bzl index 0a36c75..3ee18b0 100644 --- a/clang_tidy/clang_tidy.bzl +++ b/clang_tidy/clang_tidy.bzl @@ -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): diff --git a/example/BUILD b/example/BUILD index c0a8434..a3c0c06 100644 --- a/example/BUILD +++ b/example/BUILD @@ -20,5 +20,8 @@ cc_library( cc_binary( name = "example", srcs = ["app.cpp"], - deps = [":lib", ":lib_ignored"], + deps = [ + ":lib", + ":lib_ignored", + ], )