valid-file-path
Overview
This rule belongs to the import-validation
ruleset and states that:
The path provided to a file must be an absolute path and the specified file must exist at that path.
Property | Value |
---|---|
Severity | Blocking |
Message | File does not exist at the specified path. |
Code | IMPORT_V002 |
Type | Validation |
Rule System | Semantic |
Broad Category | File I/O Accessibility |
Tags | import api specification api file validation file path absolute path read |
Suggested Fixes
- Make sure that the path is valid.
- Make sure that the file name matches exactly with the name specified in the file path.
- Make sure that the file exists at the path specified.
- Make sure that the file path is accessible.