From 534a3e4e8d2d79db2c37a34c15bd73da8b07ce72 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 001fdb6..272c75b 100644 --- a/clang_tidy/clang_tidy.bzl +++ b/clang_tidy/clang_tidy.bzl @@ -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): 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", + ], )