From b38e2eeb08794bd38f5088ada0e1f842367955df Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Sun, 26 Dec 2021 15:00:16 +0300 Subject: [PATCH] checkers: add tests for #1166 --- checkers/testdata/commentFormatting/negative_tests.go | 3 +++ checkers/testdata/commentFormatting/positive_tests.go | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/checkers/testdata/commentFormatting/negative_tests.go b/checkers/testdata/commentFormatting/negative_tests.go index 1afbc9ce2..00d27b1c2 100644 --- a/checkers/testdata/commentFormatting/negative_tests.go +++ b/checkers/testdata/commentFormatting/negative_tests.go @@ -3,6 +3,9 @@ package checker_test //nolint reason +//noinspection this is ignored +//noinspection ALL + /* multi-line comments are ignored diff --git a/checkers/testdata/commentFormatting/positive_tests.go b/checkers/testdata/commentFormatting/positive_tests.go index e2b3b6abf..ba7d72b4c 100644 --- a/checkers/testdata/commentFormatting/positive_tests.go +++ b/checkers/testdata/commentFormatting/positive_tests.go @@ -6,6 +6,12 @@ package checker_test /*! put a space between `//` and comment text */ //nolinto +/*! put a space between `//` and comment text */ +//no inspection + +/*! put a space between `//` and comment text */ +//no inspection something + func f1() { /*! put a space between `//` and comment text */ //block with