diff --git a/modules/solid_mechanics/doc/sqa_reports.yml b/modules/solid_mechanics/doc/sqa_reports.yml index abe6bea2c3c4..5615c8ecfdfa 100644 --- a/modules/solid_mechanics/doc/sqa_reports.yml +++ b/modules/solid_mechanics/doc/sqa_reports.yml @@ -8,7 +8,7 @@ Applications: - ${MOOSE_DIR}/framework/doc/unregister.yml remove: - ${MOOSE_DIR}/framework/doc/remove.yml - log_stub_files: NONE + log_stub_files: WARNING Documents: software_quality_plan: sqa/inl_records.md#software_quality_plan @@ -34,4 +34,4 @@ Requirements: solid_mechanics: directories: - ${MOOSE_DIR}/modules/solid_mechanics - log_missing: NONE + log_missing: WARNING diff --git a/python/MooseDocs/commands/check.py b/python/MooseDocs/commands/check.py index 74bc084f154b..ffa840bfe90c 100644 --- a/python/MooseDocs/commands/check.py +++ b/python/MooseDocs/commands/check.py @@ -55,7 +55,8 @@ def _print_reports(title, reports, status): if reports: print(mooseutils.colorText('\n{0}\n{1} REPORT(S):\n{0}\n'.format('-'*80, title.upper()), 'MAGENTA'), end='', flush=True) for report in reports: - print(report.getReport(), '\n') + if report.status != 1 or report.show_warning: + print(report.getReport(), '\n') status = report.status if status < report.status else status return status diff --git a/python/moosesqa/SQAReport.py b/python/moosesqa/SQAReport.py index df9e7df9592a..ebe3d92ac8b7 100644 --- a/python/moosesqa/SQAReport.py +++ b/python/moosesqa/SQAReport.py @@ -28,7 +28,7 @@ class Status(enum.IntEnum): def __init__(self, **kwargs): self.title = kwargs.pop('title', '') - self.show_warning = kwargs.pop('show_warning', True) + self.show_warning = kwargs.pop('show_warning', False) self.show_error = kwargs.pop('show_error', True) self.show_critical = kwargs.pop('show_critical', True) self.status = kwargs.pop('status', SQAReport.Status.PASS) diff --git a/python/moosesqa/test/test_SQAReport.py b/python/moosesqa/test/test_SQAReport.py index ca8232130676..13a545b2e23b 100755 --- a/python/moosesqa/test/test_SQAReport.py +++ b/python/moosesqa/test/test_SQAReport.py @@ -39,17 +39,17 @@ def execute(self): self.assertIn('log_warning: 1', r) self.assertIn('log_error: 1', r) self.assertIn('log_critical: 1', r) - self.assertIn('warning message', r) + self.assertNotIn('warning message', r) self.assertIn('error message', r) self.assertIn('critical message', r) - report = TestReport(show_warning=False) + report = TestReport(show_warning=True) r = str(report.getReport()) self.assertEqual(report.status, SQAReport.Status.ERROR) self.assertIn('log_warning: 1', r) self.assertIn('log_error: 1', r) self.assertIn('log_critical: 1', r) - self.assertNotIn('warning message', r) + self.assertIn('warning message', r) self.assertIn('error message', r) self.assertIn('critical message', r) @@ -59,7 +59,7 @@ def execute(self): self.assertIn('log_warning: 1', r) self.assertIn('log_error: 1', r) self.assertIn('log_critical: 1', r) - self.assertIn('warning message', r) + self.assertNotIn('warning message', r) self.assertNotIn('error message', r) self.assertIn('critical message', r) @@ -69,7 +69,7 @@ def execute(self): self.assertIn('log_warning: 1', r) self.assertIn('log_error: 1', r) self.assertIn('log_critical: 1', r) - self.assertIn('warning message', r) + self.assertNotIn('warning message', r) self.assertIn('error message', r) self.assertNotIn('critical message', r)