You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --apply-global option for CSV validation (#148)
This update introduces a new 'apply-global' option in the CSV validation
command. This flag allows global schemas, those without a
'filename_pattern', to be applied to all CSV files being analyzed. This
addition increases flexibility and efficiency in the file validation
process.
-S, --skip-schema[=SKIP-SCHEMA] Skips schema validation for quicker checks when the schema's correctness is certain.
1447
+
Use any non-empty value or "yes" to activate
1448
+
[default: "no"]
1449
+
-G, --apply-global[=APPLY-GLOBAL] Apply global schemas (without `filename_pattern`) to all CSV files found. [default: "no"]
1450
+
-r, --report=REPORT Determines the report's output format.
1451
+
Available options: text, table, github, gitlab, teamcity, junit
1452
+
[default: "table"]
1453
+
-Q, --quick[=QUICK] Stops the validation process upon encountering the first error,
1454
+
accelerating the check but limiting error visibility.
1455
+
Returns a non-zero exit code if any error is detected.
1456
+
Enable by setting to any non-empty value or "yes".
1457
+
[default: "no"]
1458
+
--dump-schema Dumps the schema of the CSV file if you want to see the final schema after inheritance.
1459
+
--debug Intended solely for debugging and advanced profiling purposes.
1460
+
Activating this option provides detailed process insights,
1461
+
useful for troubleshooting and performance analysis.
1462
+
--no-progress Disable progress bar animation for logs. It will be used only for text output format.
1463
+
--mute-errors Mute any sort of errors. So exit code will be always "0" (if it's possible).
1464
+
It has major priority then --non-zero-on-error. It's on your own risk!
1465
+
--stdout-only For any errors messages application will use StdOut instead of StdErr. It's on your own risk!
1466
+
--non-zero-on-error None-zero exit code on any StdErr message.
1467
+
--timestamp Show timestamp at the beginning of each message.It will be used only for text output format.
1468
+
--profile Display timing and memory usage information.
1469
+
--output-mode=OUTPUT-MODE Output format. Available options:
1470
+
text - Default text output format, userfriendly and easy to read.
1471
+
cron - Shortcut for crontab. It's basically focused on human-readable logs output.
1472
+
It's combination of --timestamp --profile --stdout-only --no-progress -vv.
1473
+
logstash - Logstash output format, for integration with ELK stack.
1474
+
[default: "text"]
1475
+
--cron Alias for --output-mode=cron. Deprecated!
1476
+
-h, --help Display help for the given command. When no command is given display help for the list command
1477
+
-q, --quiet Do not output any message
1478
+
-V, --version Display this application version
1479
+
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
1480
+
-n, --no-interaction Do not ask any interactive question
1481
+
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
1476
1482
```
1477
1483
<!-- auto-update:/validate-csv-help -->
1478
1484
@@ -1873,7 +1879,6 @@ It's random ideas and plans. No promises and deadlines. Feel free to [help me!](
1873
1879
1874
1880
***Batch processing**
1875
1881
* If option `--csv` is not specified, then the STDIN is used. To build a pipeline in Unix-like systems.
1876
-
* Flag to ignore file name pattern. It's useful when you have a lot of files, and you don't want to validate the file name.
1877
1882
1878
1883
***Validation**
1879
1884
* Multi `filename_pattern`. Support list of regexs.
@@ -1914,11 +1919,11 @@ It's random ideas and plans. No promises and deadlines. Feel free to [help me!](
1914
1919
* Warnings about deprecated options and features.
1915
1920
* Add option `--recomendation` to show a list of recommended rules for the schema or potential issues in the CSV file or schema. It's useful when you are not sure what rules to use.
1916
1921
* Add option `--error=[level]` to show only errors with a specific level. It's useful when you have a lot of warnings and you want to see only errors.
1917
-
* S3 Storage support. Validate files in the S3 bucket? Hmm... Why not? But...
1918
1922
* More examples and documentation.
1919
1923
1920
1924
PS. [There is a file](tests/schemas/todo.yml) with my ideas and imagination. It's not valid schema file, just a draft.
1921
1925
I'm not sure if I will implement all of them. But I will try to do my best.
0 commit comments