From 98be55ead1241d7366312036f31908574f8bf529 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:04:20 +0000 Subject: [PATCH] ci(pre-commit): autoupdate (#192) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(pre-commit): autoupdate updates: - [github.com/igorshubovych/markdownlint-cli: v0.30.0 → v0.31.1](https://github.com/igorshubovych/markdownlint-cli/compare/v0.30.0...v0.31.1) - [github.com/pre-commit/mirrors-prettier: v2.5.1 → v2.6.2](https://github.com/pre-commit/mirrors-prettier/compare/v2.5.1...v2.6.2) - [github.com/tier4/pre-commit-hooks-ros: v0.4.0 → v0.6.0](https://github.com/tier4/pre-commit-hooks-ros/compare/v0.4.0...v0.6.0) - [github.com/shellcheck-py/shellcheck-py: v0.8.0.1 → v0.8.0.4](https://github.com/shellcheck-py/shellcheck-py/compare/v0.8.0.1...v0.8.0.4) - [github.com/scop/pre-commit-shfmt: v3.4.1-1 → v3.4.3-1](https://github.com/scop/pre-commit-shfmt/compare/v3.4.1-1...v3.4.3-1) - [github.com/pre-commit/mirrors-clang-format: v12.0.1 → v13.0.1](https://github.com/pre-commit/mirrors-clang-format/compare/v12.0.1...v13.0.1) - [github.com/cpplint/cpplint: 1.5.5 → 1.6.0](https://github.com/cpplint/cpplint/compare/1.5.5...1.6.0) * remove unnecessary clang-format and cpplint Signed-off-by: Kenji Miyake Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake --- .clang-format | 43 ----------------------------------------- .github/sync-files.yaml | 2 -- .pre-commit-config.yaml | 22 +++++---------------- CPPLINT.cfg | 14 -------------- 4 files changed, 5 insertions(+), 76 deletions(-) delete mode 100644 .clang-format delete mode 100644 CPPLINT.cfg diff --git a/.clang-format b/.clang-format deleted file mode 100644 index 7762ec9dfb..0000000000 --- a/.clang-format +++ /dev/null @@ -1,43 +0,0 @@ -# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format -Language: Cpp -BasedOnStyle: Google - -AccessModifierOffset: -2 -AlignAfterOpenBracket: AlwaysBreak -BraceWrapping: - AfterClass: true - AfterFunction: true - AfterNamespace: true - AfterStruct: true -BreakBeforeBraces: Custom -ColumnLimit: 100 -ConstructorInitializerIndentWidth: 0 -ContinuationIndentWidth: 2 -DerivePointerAlignment: false -PointerAlignment: Middle -ReflowComments: true -IncludeCategories: - # C++ system headers - - Regex: <[a-z_]*> - Priority: 6 - CaseSensitive: true - # C system headers - - Regex: <.*\.h> - Priority: 5 - CaseSensitive: true - # Boost headers - - Regex: boost/.* - Priority: 4 - CaseSensitive: true - # Message headers - - Regex: .*_msgs/.* - Priority: 3 - CaseSensitive: true - # Other Package headers - - Regex: <.*> - Priority: 2 - CaseSensitive: true - # Local package headers - - Regex: '".*"' - Priority: 1 - CaseSensitive: true diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 34a7d476e1..7c6ac1511d 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -5,14 +5,12 @@ - source: .github/workflows/pre-commit-optional.yaml - source: .github/workflows/semantic-pull-request.yaml - source: .github/workflows/spell-check-differential.yaml - - source: .clang-format - source: .markdown-link-check.json - source: .markdownlint.yaml - source: .pre-commit-config-optional.yaml - source: .prettierignore - source: .prettierrc.yaml - source: .yamllint.yaml - - source: CPPLINT.cfg - source: setup.cfg - repository: autowarefoundation/autoware_common diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08901e6819..4047f94b9c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,13 +18,13 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.30.0 + rev: v0.31.1 hooks: - id: markdownlint args: [-c, .markdownlint.yaml, --fix] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.5.1 + rev: v2.6.2 hooks: - id: prettier @@ -34,18 +34,18 @@ repos: - id: yamllint - repo: https://github.com/tier4/pre-commit-hooks-ros - rev: v0.4.0 + rev: v0.6.0 hooks: - id: prettier-package-xml - id: sort-package-xml - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.8.0.1 + rev: v0.8.0.4 hooks: - id: shellcheck - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.4.1-1 + rev: v3.4.3-1 hooks: - id: shfmt args: [-w, -s, -i=4] @@ -77,16 +77,4 @@ repos: flake8-quotes, ] - - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v12.0.1 - hooks: - - id: clang-format - - - repo: https://github.com/cpplint/cpplint - rev: 1.5.5 - hooks: - - id: cpplint - args: [--quiet] - exclude: .cu - exclude: .svg diff --git a/CPPLINT.cfg b/CPPLINT.cfg deleted file mode 100644 index ba6bdf08c1..0000000000 --- a/CPPLINT.cfg +++ /dev/null @@ -1,14 +0,0 @@ -# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120 -set noparent -linelength=100 -includeorder=standardcfirst -filter=-build/c++11 # we do allow C++11 -filter=-build/namespaces_literals # we allow using namespace for literals -filter=-runtime/references # we consider passing non-const references to be ok -filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions -filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space -filter=-whitespace/parens # we allow closing parenthesis to be on the next line -filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon -filter=-build/header_guard # we automatically fix the names of header guards using pre-commit -filter=-build/include_order # we use the custom include order -filter=-build/include_subdir # we allow the style of "foo.hpp"