mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update clang-tidy.yml
* Make sure clang-tidy action use .clang-tidy config file Use add-paths to instruct create-pull-request to a sub folder to avoid diff from Qt and vcpkg * Use empty() in macro to avoid clang-tidy warning * Add NOLINT to CAF_ASSERT * Add NOLINT to cvfAssert
This commit is contained in:
@@ -792,21 +792,17 @@ bool RifEclipseSummaryAddress::isValid() const
|
||||
return false;
|
||||
|
||||
case SummaryCategory::SUMMARY_REGION:
|
||||
if ( m_number0 == -1 ) return false;
|
||||
return true;
|
||||
return m_number0 != -1;
|
||||
|
||||
case SummaryCategory::SUMMARY_REGION_2_REGION:
|
||||
if ( m_number0 == -1 ) return false;
|
||||
if ( m_number1 == -1 ) return false;
|
||||
return true;
|
||||
return m_number1 != -1;
|
||||
|
||||
case SummaryCategory::SUMMARY_GROUP:
|
||||
if ( m_name.empty() ) return false;
|
||||
return true;
|
||||
return !m_name.empty();
|
||||
|
||||
case SummaryCategory::SUMMARY_WELL:
|
||||
if ( m_name.empty() ) return false;
|
||||
return true;
|
||||
return !m_name.empty();
|
||||
|
||||
case SummaryCategory::SUMMARY_WELL_COMPLETION:
|
||||
if ( m_name.empty() ) return false;
|
||||
@@ -817,8 +813,7 @@ bool RifEclipseSummaryAddress::isValid() const
|
||||
|
||||
case SummaryCategory::SUMMARY_WELL_LGR:
|
||||
if ( m_lgrName.empty() ) return false;
|
||||
if ( m_name.empty() ) return false;
|
||||
return true;
|
||||
return !m_name.empty();
|
||||
|
||||
case SummaryCategory::SUMMARY_WELL_COMPLETION_LGR:
|
||||
if ( m_lgrName.empty() ) return false;
|
||||
@@ -830,8 +825,7 @@ bool RifEclipseSummaryAddress::isValid() const
|
||||
|
||||
case SummaryCategory::SUMMARY_WELL_SEGMENT:
|
||||
if ( m_name.empty() ) return false;
|
||||
if ( m_number0 == -1 ) return false;
|
||||
return true;
|
||||
return m_number0 != -1;
|
||||
|
||||
case SummaryCategory::SUMMARY_BLOCK:
|
||||
if ( m_number0 == -1 ) return false;
|
||||
@@ -847,8 +841,7 @@ bool RifEclipseSummaryAddress::isValid() const
|
||||
return true;
|
||||
|
||||
case SummaryCategory::SUMMARY_AQUIFER:
|
||||
if ( m_number0 == -1 ) return false;
|
||||
return true;
|
||||
return m_number0 != -1;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user