[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d46490a9 2/5: Rename an enumerator
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d46490a9 2/5: Rename an enumerator |
Date: |
Sun, 16 Apr 2023 21:32:32 -0400 (EDT) |
branch: master
commit d46490a985f0bf148ba887832b63b883449b43ab
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Rename an enumerator
'Doxyfile', soon to be added, fits the "text/plain" mimetype. So do
'INSTALL' and 'README*'. Rename their phylum more generically.
---
test_coding_rules.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index e2b55456..b1ca3227 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -78,7 +78,7 @@ enum enum_phylum
,e_rates = 1 << 14
,e_relax_ng = 1 << 15
,e_script = 1 << 16
- ,e_synopsis = 1 << 17
+ ,e_text_plain = 1 << 17
,e_touchstone = 1 << 18
,e_xml_input = 1 << 19
,e_xml_other = 1 << 20
@@ -222,8 +222,8 @@ file::file(std::string const& file_path)
: phyloanalyze("GNUmakefile$") ? e_make
: phyloanalyze("^Makefile") ? e_make
: phyloanalyze("^md5sums$") ? e_md5
- : phyloanalyze("^INSTALL$") ? e_synopsis
- : phyloanalyze("^README") ? e_synopsis
+ : phyloanalyze("^INSTALL$") ? e_text_plain
+ : phyloanalyze("^README") ? e_text_plain
// test file contents only if necessary
: begins_with(data(), "#!") ? e_script
// keep this last
@@ -1130,7 +1130,7 @@ void enforce_taboos(file const& f)
( !f.is_of_phylum(e_log)
&& !f.is_of_phylum(e_make)
&& !f.is_of_phylum(e_script)
- && !f.is_of_phylum(e_synopsis)
+ && !f.is_of_phylum(e_text_plain)
)
{
taboo(f, R"(\bexe\b)", pcre::regex::icase);
@@ -1205,7 +1205,7 @@ statistics statistics::analyze_file(file const& f)
|| f.is_of_phylum(e_patch)
|| f.is_of_phylum(e_touchstone)
|| f.is_of_phylum(e_xml_input)
- || f.is_of_phylum(e_synopsis)
+ || f.is_of_phylum(e_text_plain)
)
{
return z;