[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 707d406 1/3: Simplify
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 707d406 1/3: Simplify |
Date: |
Tue, 6 Mar 2018 08:33:43 -0500 (EST) |
branch: master
commit 707d406c877aa6b6fdc383a3e2d473dba35b3776
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Simplify
This wasn't a pure refactoring because these two regexen
/^INSTALL$/
/^INSTALL/
are not identical, but both match only one lmi file today.
---
test_coding_rules.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 81974e8..f4bb695 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -1119,8 +1119,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.phyloanalyze("^INSTALL")
- || f.phyloanalyze("^README")
+ || f.is_of_phylum(e_synopsis)
)
{
return z;