Hello community, here is the log from the commit of package python-cpplint for openSUSE:Factory checked in at 2020-08-31 16:50:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cpplint (Old) and /work/SRC/openSUSE:Factory/.python-cpplint.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cpplint" Mon Aug 31 16:50:59 2020 rev:5 rq:830677 version:1.5.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cpplint/python-cpplint.changes 2020-07-01 14:27:02.830833105 +0200 +++ /work/SRC/openSUSE:Factory/.python-cpplint.new.3399/python-cpplint.changes 2020-08-31 16:51:38.252394778 +0200 @@ -1,0 +2,9 @@ +Mon Aug 31 06:47:40 UTC 2020 - Steve Kowalik <[email protected]> + +- Update to 1.5.4: + * Fix google#166, Allow space before C++11 attributes + * Fix #156: sed/gsed output parameter rejected + * Fix #156: sed/gsed output without other stdout information + * improvements to regression tests + +------------------------------------------------------------------- Old: ---- cpplint-1.5.2.tar.gz New: ---- cpplint-1.5.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cpplint.spec ++++++ --- /var/tmp/diff_new_pack.02X0sM/_old 2020-08-31 16:51:41.060396139 +0200 +++ /var/tmp/diff_new_pack.02X0sM/_new 2020-08-31 16:51:41.064396141 +0200 @@ -18,11 +18,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cpplint -Version: 1.5.2 +Version: 1.5.4 Release: 0 Summary: An automated checker to make sure a C++ file follows Google's C++ style guide License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/cpplint/cpplint Source: https://files.pythonhosted.org/packages/source/c/cpplint/cpplint-%{version}.tar.gz BuildRequires: %{python_module pytest} ++++++ cpplint-1.5.2.tar.gz -> cpplint-1.5.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/PKG-INFO new/cpplint-1.5.4/PKG-INFO --- old/cpplint-1.5.2/PKG-INFO 2020-06-24 03:04:30.000000000 +0200 +++ new/cpplint-1.5.4/PKG-INFO 2020-08-18 02:50:19.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: cpplint -Version: 1.5.2 +Version: 1.5.4 Summary: Automated checker to ensure C++ files follow Google's style guide Home-page: https://github.com/cpplint/cpplint Maintainer: cpplint Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/cpplint.egg-info/PKG-INFO new/cpplint-1.5.4/cpplint.egg-info/PKG-INFO --- old/cpplint-1.5.2/cpplint.egg-info/PKG-INFO 2020-06-24 03:04:30.000000000 +0200 +++ new/cpplint-1.5.4/cpplint.egg-info/PKG-INFO 2020-08-18 02:50:19.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: cpplint -Version: 1.5.2 +Version: 1.5.4 Summary: Automated checker to ensure C++ files follow Google's style guide Home-page: https://github.com/cpplint/cpplint Maintainer: cpplint Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/cpplint.egg-info/SOURCES.txt new/cpplint-1.5.4/cpplint.egg-info/SOURCES.txt --- old/cpplint-1.5.2/cpplint.egg-info/SOURCES.txt 2020-06-24 03:04:30.000000000 +0200 +++ new/cpplint-1.5.4/cpplint.egg-info/SOURCES.txt 2020-08-18 02:50:19.000000000 +0200 @@ -42,6 +42,7 @@ samples/protobuf-sample/src/descriptor_unittest.cc samples/silly-sample/filters.def samples/silly-sample/includeorder_cfirst.def +samples/silly-sample/sed.def samples/silly-sample/simple.def samples/silly-sample/src/sillycode.cpp samples/simple-sample/main.cpp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/cpplint.py new/cpplint-1.5.4/cpplint.py --- old/cpplint-1.5.2/cpplint.py 2020-06-24 02:47:38.000000000 +0200 +++ new/cpplint-1.5.4/cpplint.py 2020-08-18 02:48:26.000000000 +0200 @@ -59,7 +59,7 @@ # if empty, use defaults _valid_extensions = set([]) -__VERSION__ = '1.5.2' +__VERSION__ = '1.5.4' try: xrange # Python 2 @@ -354,6 +354,13 @@ 'whitespace/todo', ] +# keywords to use with --outputs which generate stdout for machine processing +_MACHINE_OUTPUTS = [ + 'junit', + 'sed', + 'gsed' +] + # These error categories are no longer enforced by cpplint, but for backwards- # compatibility they may still appear in NOLINT comments. _LEGACY_ERROR_CATEGORIES = [ @@ -854,7 +861,7 @@ # Files to exclude from linting. This is set by the --exclude flag. _excludes = None -# Whether to supress PrintInfo messages +# Whether to supress all PrintInfo messages, UNRELATED to --quiet flag _quiet = False # The allowed line length of files. @@ -1344,7 +1351,9 @@ self.PrintInfo('Total errors found: %d\n' % self.error_count) def PrintInfo(self, message): - if not _quiet and self.output_format != 'junit': + # _quiet does not represent --quiet flag. + # Hide infos from stdout to keep stdout pure for machine consumption + if not _quiet and self.output_format not in _MACHINE_OUTPUTS: sys.stdout.write(message) def PrintError(self, message): @@ -1851,7 +1860,7 @@ def RemoveMultiLineCommentsFromRange(lines, begin, end): """Clears a range of lines for multi-line comments.""" - # Having // dummy comments makes the lines non-empty, so we will not get + # Having // <empty> comments makes the lines non-empty, so we will not get # unnecessary blank line warnings later in the code. for i in range(begin, end): lines[i] = '/**/' @@ -2225,7 +2234,7 @@ """Logs an error if no Copyright message appears at the top of the file.""" # We'll say it should occur by line 10. Don't forget there's a - # dummy line at the front. + # placeholder line at the front. for line in xrange(1, min(len(lines), 11)): if re.search(r'Copyright', lines[line], re.I): break else: # means no copyright line was found @@ -3768,9 +3777,10 @@ # get rid of comments and strings line = clean_lines.elided[linenum] - # You shouldn't have spaces before your brackets, except maybe after - # 'delete []', 'return []() {};', or 'auto [abc, ...] = ...;'. - if Search(r'\w\s+\[', line) and not Search(r'(?:auto&?|delete|return)\s+\[', line): + # You shouldn't have spaces before your brackets, except for C++11 attributes + # or maybe after 'delete []', 'return []() {};', or 'auto [abc, ...] = ...;'. + if (Search(r'\w\s+\[(?!\[)', line) and + not Search(r'(?:auto&?|delete|return)\s+\[', line)): error(filename, linenum, 'whitespace/braces', 5, 'Extra space before [') @@ -6743,9 +6753,9 @@ if opt == '--version': PrintVersion() elif opt == '--output': - if val not in ('emacs', 'vs7', 'eclipse', 'junit'): + if val not in ('emacs', 'vs7', 'eclipse', 'junit', 'sed', 'gsed'): PrintUsage('The only allowed output formats are emacs, vs7, eclipse ' - 'and junit.') + 'sed, gsed and junit.') output_format = val elif opt == '--quiet': quiet = True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/cpplint_clitest.py new/cpplint-1.5.4/cpplint_clitest.py --- old/cpplint-1.5.2/cpplint_clitest.py 2020-06-24 02:45:33.000000000 +0200 +++ new/cpplint-1.5.4/cpplint_clitest.py 2020-08-05 02:41:14.000000000 +0200 @@ -83,7 +83,7 @@ def setUpClass(cls): """setup tmp folder for testing with samples and custom additions by subclasses""" try: - cls._root = tempfile.mkdtemp() + cls._root = os.path.realpath(tempfile.mkdtemp()) shutil.copytree('samples', os.path.join(cls._root, 'samples')) cls.prepare_directory(cls._root) except Exception as e: @@ -164,7 +164,7 @@ self.checkAllInFolder('./samples/vlc-sample', 1) def testSillySample(self): - self.checkAllInFolder('./samples/silly-sample', 3) + self.checkAllInFolder('./samples/silly-sample', 4) def testBoostSample(self): self.checkAllInFolder('./samples/boost-sample', 4) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/cpplint_unittest.py new/cpplint-1.5.4/cpplint_unittest.py --- old/cpplint-1.5.2/cpplint_unittest.py 2020-06-24 02:46:02.000000000 +0200 +++ new/cpplint-1.5.4/cpplint_unittest.py 2020-08-05 02:42:58.000000000 +0200 @@ -2705,6 +2705,14 @@ self.TestLint('file_tocs_[i] = (FileToc) {a, b, c};', '') self.TestMultiLineLint('class X : public Y,\npublic Z {};', '') + def testSpacingBeforeBrackets(self): + self.TestLint('int numbers [] = { 1, 2, 3 };', + 'Extra space before [ [whitespace/braces] [5]') + # space allowed in some cases + self.TestLint('auto [abc, def] = func();', '') + self.TestLint('#define NODISCARD [[nodiscard]]', '') + self.TestLint('void foo(int param [[maybe_unused]]);', '') + def testLambda(self): self.TestLint('auto x = []() {};', '') self.TestLint('return []() {};', '') @@ -4134,7 +4142,7 @@ def testRecursiveArgument(self): working_dir = os.getcwd() - temp_dir = tempfile.mkdtemp() + temp_dir = os.path.realpath(tempfile.mkdtemp()) try: src_dir = os.path.join(temp_dir, "src") nested_dir = os.path.join(temp_dir, "src", "nested") @@ -4154,7 +4162,7 @@ def testRecursiveExcludeInvalidFileExtension(self): working_dir = os.getcwd() - temp_dir = tempfile.mkdtemp() + temp_dir = os.path.realpath(tempfile.mkdtemp()) try: src_dir = os.path.join(temp_dir, "src") os.makedirs(src_dir) @@ -4175,7 +4183,7 @@ def testRecursiveExclude(self): working_dir = os.getcwd() - temp_dir = tempfile.mkdtemp() + temp_dir = os.path.realpath(tempfile.mkdtemp()) try: src_dir = os.path.join(temp_dir, 'src') src2_dir = os.path.join(temp_dir, 'src2') @@ -4688,7 +4696,7 @@ self.assertEquals([], error_collector.ResultList()) def testBuildHeaderGuardWithRoot(self): - temp_directory = tempfile.mkdtemp() + temp_directory = os.path.realpath(tempfile.mkdtemp()) try: test_directory = os.path.join(temp_directory, "test") os.makedirs(test_directory) @@ -4794,7 +4802,7 @@ os.chdir(cur_dir) def testIncludeItsHeader(self): - temp_directory = tempfile.mkdtemp() + temp_directory = os.path.realpath(tempfile.mkdtemp()) cur_dir = os.getcwd() try: test_directory = os.path.join(temp_directory, "test") @@ -4895,8 +4903,8 @@ cpplint.PathSplitToList(os.path.join('a', 'b', 'c', 'd'))) def testBuildHeaderGuardWithRepository(self): - temp_directory = tempfile.mkdtemp() - temp_directory2 = tempfile.mkdtemp() + temp_directory = os.path.realpath(tempfile.mkdtemp()) + temp_directory2 = os.path.realpath(tempfile.mkdtemp()) try: os.makedirs(os.path.join(temp_directory, ".svn")) trunk_dir = os.path.join(temp_directory, "trunk") @@ -6413,7 +6421,7 @@ class QuietTest(unittest.TestCase): def setUp(self): - self.temp_dir = tempfile.mkdtemp() + self.temp_dir = os.path.realpath(tempfile.mkdtemp()) self.this_dir_path = os.path.abspath(self.temp_dir) self.python_executable = sys.executable or 'python' self.cpplint_test_h = os.path.join(self.this_dir_path, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/samples/silly-sample/sed.def new/cpplint-1.5.4/samples/silly-sample/sed.def --- old/cpplint-1.5.2/samples/silly-sample/sed.def 1970-01-01 01:00:00.000000000 +0100 +++ new/cpplint-1.5.4/samples/silly-sample/sed.def 2020-08-05 02:41:14.000000000 +0200 @@ -0,0 +1,112 @@ +--output=sed src/*.cpp +1 +5 +sed -i '120s/,\([^ ]\)/, \1/g' src/sillycode.cpp # Missing space after , [whitespace/comma] [3] +sed -i '122s/\s*$//' src/sillycode.cpp # Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4] +sed -i '126s/,\([^ ]\)/, \1/g' src/sillycode.cpp # Missing space after , [whitespace/comma] [3] +sed -i '208s/\([^ ]\){/\1 {/' src/sillycode.cpp # Missing space before { [whitespace/braces] [5] + +# src/sillycode.cpp:0: "No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>"" [legal/copyright] [5] +# src/sillycode.cpp:3: "Found C system header after C++ system header. Should be: sillycode.h, c system, c++ system, other." [build/include_order] [4] +# src/sillycode.cpp:8: "public: should be indented +1 space inside class Date" [whitespace/indent] [3] +# src/sillycode.cpp:14: "Is this a non-const reference? If so, make const or use a pointer: vector<string>& v" [runtime/references] [2] +# src/sillycode.cpp:15: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:39: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:40: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:40: "If/else bodies with multiple statements require braces" [readability/braces] [4] +# src/sillycode.cpp:49: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:49: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:55: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:60: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:60: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:64: "public: should be indented +1 space inside class X" [whitespace/indent] [3] +# src/sillycode.cpp:65: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:65: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:66: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:66: "Single-parameter constructors should be marked explicit." [runtime/explicit] [5] +# src/sillycode.cpp:74: "public: should be indented +1 space inside class X2" [whitespace/indent] [3] +# src/sillycode.cpp:75: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:76: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:76: "Single-parameter constructors should be marked explicit." [runtime/explicit] [5] +# src/sillycode.cpp:80: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:80: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:84: "public: should be indented +1 space inside class X3" [whitespace/indent] [3] +# src/sillycode.cpp:85: "Constructors callable with one argument should be marked explicit." [runtime/explicit] [5] +# src/sillycode.cpp:86: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:86: "Lines should be <= 80 characters long" [whitespace/line_length] [2] +# src/sillycode.cpp:94: "public: should be indented +1 space inside class Foo" [whitespace/indent] [3] +# src/sillycode.cpp:100: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:110: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:111: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:111: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:113: "public: should be indented +1 space inside class Vector2" [whitespace/indent] [3] +# src/sillycode.cpp:118: "Is this a non-const reference? If so, make const or use a pointer: N::X& a" [runtime/references] [2] +# src/sillycode.cpp:118: "Is this a non-const reference? If so, make const or use a pointer: N::X& b" [runtime/references] [2] +# src/sillycode.cpp:119: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:120: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:122: "Weird number of spaces at line-start. Are you using a 2-space indent?" [whitespace/indent] [3] +# src/sillycode.cpp:123: "Is this a non-const reference? If so, make const or use a pointer: N::X& a" [runtime/references] [2] +# src/sillycode.cpp:123: "Is this a non-const reference? If so, make const or use a pointer: N::X& b" [runtime/references] [2] +# src/sillycode.cpp:124: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:125: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:125: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:126: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:143: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:144: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:149: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:150: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:155: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:156: "Missing spaces around =" [whitespace/operators] [4] +# src/sillycode.cpp:162: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:164: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:166: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:168: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:171: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:171: "Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size." [runtime/arrays] [1] +# src/sillycode.cpp:175: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:178: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:178: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:178: "Static/global string variables are not permitted." [runtime/string] [4] +# src/sillycode.cpp:179: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:179: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:184: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:184: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:190: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:190: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:195: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:195: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:197: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:197: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:199: "If an else has a brace on one side, it should have it on both" [readability/braces] [5] +# src/sillycode.cpp:202: "An else should appear on the same line as the preceding }" [whitespace/newline] [4] +# src/sillycode.cpp:202: "If an else has a brace on one side, it should have it on both" [readability/braces] [5] +# src/sillycode.cpp:208: "Static/global string variables are not permitted." [runtime/string] [4] +# src/sillycode.cpp:209: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:209: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:214: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:217: "{ should almost always be at the end of the previous line" [whitespace/braces] [4] +# src/sillycode.cpp:218: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:218: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:219: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:219: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:220: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:220: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:225: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:225: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:227: "Static/global string variables are not permitted." [runtime/string] [4] +# src/sillycode.cpp:228: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:228: "Using C-style cast. Use reinterpret_cast<double*>(...) instead" [readability/casting] [4] +# src/sillycode.cpp:236: "public: should be indented +1 space inside class derived2" [whitespace/indent] [3] +# src/sillycode.cpp:241: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:243: "Lines should be <= 80 characters long" [whitespace/line_length] [2] +# src/sillycode.cpp:243: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:243: "Using C-style cast. Use reinterpret_cast<derived2*>(...) instead" [readability/casting] [4] +# src/sillycode.cpp:244: "Lines should be <= 80 characters long" [whitespace/line_length] [2] +# src/sillycode.cpp:244: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:253: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:254: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:257: "Tab found; better to use spaces" [whitespace/tab] [1] +# src/sillycode.cpp:257: "At least two spaces is best between code and comments" [whitespace/comments] [2] +# src/sillycode.cpp:260: "Empty loop bodies should use {} or continue" [whitespace/empty_loop_body] [5] +# src/sillycode.cpp:260: "At least two spaces is best between code and comments" [whitespace/comments] [2] + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpplint-1.5.2/samples/simple-sample/main.cpp new/cpplint-1.5.4/samples/simple-sample/main.cpp --- old/cpplint-1.5.2/samples/simple-sample/main.cpp 2019-12-14 08:47:24.000000000 +0100 +++ new/cpplint-1.5.4/samples/simple-sample/main.cpp 2020-08-05 02:53:26.000000000 +0200 @@ -1,7 +1,7 @@ // Copyright 2020 foo #include <main.h> -int main(int argc, char** argv) { - char* h = "Hello"; +int main(int argc,char** argv) { + char* h = "Hello"; //test printf(h); return 0; }
