Skip to main content

non-empty-file

Overview

This rule belongs to the input-file-validation ruleset and states that:

File contents must not be empty or null or inaccessible.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageFile contents are empty, null or inaccessible.
CodeINPUTFILE_V100
TypeValidation
Rule SystemSemantic
Broad CategoryFile I/O Content
Tagsapi specification api file validation content

Suggested Fixes

  • Make sure that the file is not empty
  • Make sure that the file contents are valid and do not contain any forbidden characters preventing read operations.