Skip to content
Permalink
Browse files

Update code count rules missed in 027c263.

  • Loading branch information...
dwsteele committed May 2, 2019
1 parent 0c816f9 commit 28359eea83206f6eeddd3fbc91a52cd42399e529
Showing with 17 additions and 4 deletions.
  1. +13 −1 test/code-count/file-type.yaml
  2. +4 −3 test/lib/pgBackRestTest/Common/CodeCountTest.pm
@@ -487,10 +487,14 @@ libc/xs/storage/storage.xs:
class: core
type: xs

src/Makefile:
src/Makefile.in:
class: build
type: make

src/build.auto.h.in:
class: core
type: c/h

src/command/archive/common.c:
class: core
type: c
@@ -1075,6 +1079,14 @@ src/config/protocol.h:
class: core
type: c/h

src/configure:
class: build
type: make

src/configure.ac:
class: build
type: make

src/info/info.c:
class: core
type: c
@@ -79,7 +79,8 @@ sub codeCountScan
{
$strClass = 'doc/core';
}
elsif ($strFile =~ '^build/' || $strFile =~ '^libc/build/' || $strFile eq 'libc/Makefile.PL' || $strFile eq 'src/Makefile')
elsif ($strFile =~ '^build/' || $strFile =~ '^libc/build/' || $strFile eq 'libc/Makefile.PL' ||
$strFile eq 'src/Makefile.in' || $strFile eq 'src/configure' || $strFile eq 'src/configure.ac')
{
$strClass = 'build';
}
@@ -109,7 +110,7 @@ sub codeCountScan
$strType = 'xs';
$strForceLang = 'XS';
}
elsif ($strFile =~ '\.h$' || $strFile =~ '\.xsh$')
elsif ($strFile =~ '\.h$' || $strFile =~ '\.h\.in$' || $strFile =~ '\.xsh$')
{
$strType = 'c/h';
$strForceLang = 'C/C++ Header';
@@ -129,7 +130,7 @@ sub codeCountScan
$strType = 'yaml';
$strForceLang = 'YAML';
}
elsif ($strFile =~ 'Makefile$')
elsif ($strFile =~ 'Makefile\.in$' || $strFile =~ '^src\/configure')
{
$strType = 'make';
$strForceLang = 'make';

0 comments on commit 28359ee

Please sign in to comment.
You can’t perform that action at this time.