|
2397 | 2397 | },
|
2398 | 2398 | "additionalProperties": false
|
2399 | 2399 | },
|
2400 |
| - "result.state": { |
| 2400 | + "result.state.name": { |
2401 | 2401 | "type": "object",
|
2402 | 2402 | "properties": {
|
2403 | 2403 | "equals": {
|
2404 | 2404 | "description": "Check if value are equal.",
|
2405 |
| - "type": "boolean" |
| 2405 | + "type": "string" |
2406 | 2406 | },
|
2407 | 2407 | "=": {
|
2408 | 2408 | "description": "Check if value are equal.",
|
2409 |
| - "type": "boolean" |
| 2409 | + "type": "string" |
| 2410 | + }, |
| 2411 | + "lengthMin": { |
| 2412 | + "description": "Check the minimum string length.", |
| 2413 | + "type": "integer" |
| 2414 | + }, |
| 2415 | + "lengthMax": { |
| 2416 | + "description": "Check the maximum string length.", |
| 2417 | + "type": "integer" |
| 2418 | + }, |
| 2419 | + "starts": { |
| 2420 | + "description": "Check if a string contains a prefix.", |
| 2421 | + "type": "string" |
| 2422 | + }, |
| 2423 | + "notStarts": { |
| 2424 | + "description": "Check if a string not contains a prefix.", |
| 2425 | + "type": "string" |
| 2426 | + }, |
| 2427 | + "ends": { |
| 2428 | + "description": "Check if a string contains a suffix.", |
| 2429 | + "type": "string" |
| 2430 | + }, |
| 2431 | + "notEnds": { |
| 2432 | + "description": "Check if a string not contains a suffix.", |
| 2433 | + "type": "string" |
| 2434 | + }, |
| 2435 | + "contains": { |
| 2436 | + "description": "Check if a string contains a substring.", |
| 2437 | + "type": "string" |
2410 | 2438 | },
|
2411 | 2439 | "notEquals": {
|
2412 | 2440 | "description": "Check if value are not equal.",
|
2413 |
| - "type": "boolean" |
| 2441 | + "type": "string" |
2414 | 2442 | },
|
2415 | 2443 | "!=": {
|
2416 | 2444 | "description": "Check if value are not equal.",
|
| 2445 | + "type": "string" |
| 2446 | + }, |
| 2447 | + "equalsAny": { |
| 2448 | + "description": "Check if the field is equal to one of the values.", |
| 2449 | + "type": "array", |
| 2450 | + "items": { |
| 2451 | + "type": "string" |
| 2452 | + } |
| 2453 | + }, |
| 2454 | + "match": { |
| 2455 | + "description": "Check if a string match a regex.", |
| 2456 | + "type": "string" |
| 2457 | + }, |
| 2458 | + "isEmpty": { |
| 2459 | + "description": "Check if a value is empty.", |
2417 | 2460 | "type": "boolean"
|
| 2461 | + }, |
| 2462 | + "isCamelCase": { |
| 2463 | + "description": "Check if a string is camelCase.", |
| 2464 | + "type": "boolean" |
| 2465 | + }, |
| 2466 | + "isStudlyCase": { |
| 2467 | + "description": "Check if a string is StudlyCase.", |
| 2468 | + "type": "boolean" |
| 2469 | + }, |
| 2470 | + "isUpperCase": { |
| 2471 | + "description": "Check if a string is upper case.", |
| 2472 | + "type": "boolean" |
| 2473 | + }, |
| 2474 | + "isLowerCase": { |
| 2475 | + "description": "Check if a string is lower case.", |
| 2476 | + "type": "boolean" |
| 2477 | + }, |
| 2478 | + "isSnakeCase": { |
| 2479 | + "description": "Check if a string is snake_case.", |
| 2480 | + "type": "boolean" |
| 2481 | + }, |
| 2482 | + "isKebabCase": { |
| 2483 | + "description": "Check if a string is kebab-case.", |
| 2484 | + "type": "boolean" |
| 2485 | + }, |
| 2486 | + "linesMax": { |
| 2487 | + "description": "Check the maximum string lines.", |
| 2488 | + "type": "integer" |
| 2489 | + }, |
| 2490 | + "containsLine": { |
| 2491 | + "description": "Check if a string contains a line.", |
| 2492 | + "type": "string" |
2418 | 2493 | }
|
2419 | 2494 | },
|
2420 | 2495 | "additionalProperties": false
|
2421 | 2496 | },
|
| 2497 | + "result.state.value": { |
| 2498 | + "type": "object", |
| 2499 | + "properties": [], |
| 2500 | + "additionalProperties": false |
| 2501 | + }, |
2422 | 2502 | "result.notes": {
|
2423 | 2503 | "type": "object",
|
2424 | 2504 | "properties": {
|
|
2627 | 2707 | }
|
2628 | 2708 | }
|
2629 | 2709 | }
|
| 2710 | + }, |
| 2711 | + "linter": { |
| 2712 | + "type": "object", |
| 2713 | + "properties": { |
| 2714 | + "options": { |
| 2715 | + "type": "object", |
| 2716 | + "properties": { |
| 2717 | + "stop_on_failure": { |
| 2718 | + "type": "boolean", |
| 2719 | + "default": false |
| 2720 | + }, |
| 2721 | + "stop_on_warning": { |
| 2722 | + "type": "boolean", |
| 2723 | + "default": false |
| 2724 | + } |
| 2725 | + } |
| 2726 | + } |
| 2727 | + } |
2630 | 2728 | }
|
2631 | 2729 | },
|
2632 | 2730 | "definitions": {
|
|
3608 | 3706 | "rules_properties_@mr-linter_changed_files_limit": {
|
3609 | 3707 | "type": "object",
|
3610 | 3708 | "properties": {
|
| 3709 | + "critical": { |
| 3710 | + "type": "boolean", |
| 3711 | + "default": true |
| 3712 | + }, |
3611 | 3713 | "when": {
|
3612 | 3714 | "description": "Conditions that determine whether the rule should run.",
|
3613 | 3715 | "$ref": "#/definitions/rule_conditions"
|
|
3624 | 3726 | "rules_properties_@mr-linter_description_contains_links_of_any_domains": {
|
3625 | 3727 | "type": "object",
|
3626 | 3728 | "properties": {
|
| 3729 | + "critical": { |
| 3730 | + "type": "boolean", |
| 3731 | + "default": true |
| 3732 | + }, |
3627 | 3733 | "when": {
|
3628 | 3734 | "description": "Conditions that determine whether the rule should run.",
|
3629 | 3735 | "$ref": "#/definitions/rule_conditions"
|
|
3645 | 3751 | "rules_properties_@mr-linter_description_contains_links_of_all_domains": {
|
3646 | 3752 | "type": "object",
|
3647 | 3753 | "properties": {
|
| 3754 | + "critical": { |
| 3755 | + "type": "boolean", |
| 3756 | + "default": true |
| 3757 | + }, |
3648 | 3758 | "when": {
|
3649 | 3759 | "description": "Conditions that determine whether the rule should run.",
|
3650 | 3760 | "$ref": "#/definitions/rule_conditions"
|
|
3666 | 3776 | "rules_properties_@mr-linter_description_not_empty": {
|
3667 | 3777 | "type": "object",
|
3668 | 3778 | "properties": {
|
| 3779 | + "critical": { |
| 3780 | + "type": "boolean", |
| 3781 | + "default": true |
| 3782 | + }, |
3669 | 3783 | "when": {
|
3670 | 3784 | "description": "Conditions that determine whether the rule should run.",
|
3671 | 3785 | "$ref": "#/definitions/rule_conditions"
|
|
3676 | 3790 | "rules_properties_@mr-linter_has_all_labels": {
|
3677 | 3791 | "type": "object",
|
3678 | 3792 | "properties": {
|
| 3793 | + "critical": { |
| 3794 | + "type": "boolean", |
| 3795 | + "default": true |
| 3796 | + }, |
3679 | 3797 | "when": {
|
3680 | 3798 | "description": "Conditions that determine whether the rule should run.",
|
3681 | 3799 | "$ref": "#/definitions/rule_conditions"
|
|
3697 | 3815 | "rules_properties_@mr-linter_has_any_labels": {
|
3698 | 3816 | "type": "object",
|
3699 | 3817 | "properties": {
|
| 3818 | + "critical": { |
| 3819 | + "type": "boolean", |
| 3820 | + "default": true |
| 3821 | + }, |
3700 | 3822 | "when": {
|
3701 | 3823 | "description": "Conditions that determine whether the rule should run.",
|
3702 | 3824 | "$ref": "#/definitions/rule_conditions"
|
|
3707 | 3829 | "rules_properties_@mr-linter_has_any_labels_of": {
|
3708 | 3830 | "type": "object",
|
3709 | 3831 | "properties": {
|
| 3832 | + "critical": { |
| 3833 | + "type": "boolean", |
| 3834 | + "default": true |
| 3835 | + }, |
3710 | 3836 | "when": {
|
3711 | 3837 | "description": "Conditions that determine whether the rule should run.",
|
3712 | 3838 | "$ref": "#/definitions/rule_conditions"
|
|
3728 | 3854 | "rules_properties_@mr-linter_jira_has_issue_link": {
|
3729 | 3855 | "type": "object",
|
3730 | 3856 | "properties": {
|
| 3857 | + "critical": { |
| 3858 | + "type": "boolean", |
| 3859 | + "default": true |
| 3860 | + }, |
3731 | 3861 | "when": {
|
3732 | 3862 | "description": "Conditions that determine whether the rule should run.",
|
3733 | 3863 | "$ref": "#/definitions/rule_conditions"
|
|
3748 | 3878 | "rules_properties_@mr-linter_youtrack_has_issue_link": {
|
3749 | 3879 | "type": "object",
|
3750 | 3880 | "properties": {
|
| 3881 | + "critical": { |
| 3882 | + "type": "boolean", |
| 3883 | + "default": true |
| 3884 | + }, |
3751 | 3885 | "when": {
|
3752 | 3886 | "description": "Conditions that determine whether the rule should run.",
|
3753 | 3887 | "$ref": "#/definitions/rule_conditions"
|
|
3768 | 3902 | "rules_properties_@mr-linter_title_must_starts_with_any_prefix": {
|
3769 | 3903 | "type": "object",
|
3770 | 3904 | "properties": {
|
| 3905 | + "critical": { |
| 3906 | + "type": "boolean", |
| 3907 | + "default": true |
| 3908 | + }, |
3771 | 3909 | "when": {
|
3772 | 3910 | "description": "Conditions that determine whether the rule should run.",
|
3773 | 3911 | "$ref": "#/definitions/rule_conditions"
|
|
3789 | 3927 | "rules_properties_@mr-linter_has_changes": {
|
3790 | 3928 | "type": "object",
|
3791 | 3929 | "properties": {
|
| 3930 | + "critical": { |
| 3931 | + "type": "boolean", |
| 3932 | + "default": true |
| 3933 | + }, |
3792 | 3934 | "when": {
|
3793 | 3935 | "description": "Conditions that determine whether the rule should run.",
|
3794 | 3936 | "$ref": "#/definitions/rule_conditions"
|
|
3823 | 3965 | "rules_properties_custom": {
|
3824 | 3966 | "type": "object",
|
3825 | 3967 | "properties": {
|
| 3968 | + "critical": { |
| 3969 | + "type": "boolean", |
| 3970 | + "default": true |
| 3971 | + }, |
3826 | 3972 | "when": {
|
3827 | 3973 | "description": "Conditions that determine whether the rule should run.",
|
3828 | 3974 | "$ref": "#/definitions/rule_conditions"
|
|
3843 | 3989 | "rules_properties_@mr-linter_title_starts_with_task_number": {
|
3844 | 3990 | "type": "object",
|
3845 | 3991 | "properties": {
|
| 3992 | + "critical": { |
| 3993 | + "type": "boolean", |
| 3994 | + "default": true |
| 3995 | + }, |
3846 | 3996 | "when": {
|
3847 | 3997 | "description": "Conditions that determine whether the rule should run.",
|
3848 | 3998 | "$ref": "#/definitions/rule_conditions"
|
|
3859 | 4009 | "rules_properties_@mr-linter_branch_starts_with_task_number": {
|
3860 | 4010 | "type": "object",
|
3861 | 4011 | "properties": {
|
| 4012 | + "critical": { |
| 4013 | + "type": "boolean", |
| 4014 | + "default": true |
| 4015 | + }, |
3862 | 4016 | "when": {
|
3863 | 4017 | "description": "Conditions that determine whether the rule should run.",
|
3864 | 4018 | "$ref": "#/definitions/rule_conditions"
|
|
0 commit comments