|
2779 | 2779 | "type": "object", |
2780 | 2780 | "additionalProperties": false, |
2781 | 2781 | "properties": { |
2782 | | - "bool-compare": { |
2783 | | - "type": "object", |
2784 | | - "additionalProperties": false, |
2785 | | - "properties": { |
2786 | | - "ignore-custom-types": { |
2787 | | - "type": "boolean", |
2788 | | - "default": false |
2789 | | - } |
2790 | | - } |
2791 | | - }, |
2792 | 2782 | "enable-all": { |
2793 | 2783 | "description": "Enable all checkers.", |
2794 | 2784 | "type": "boolean", |
|
2811 | 2801 | "error-is-as", |
2812 | 2802 | "error-nil", |
2813 | 2803 | "expected-actual", |
2814 | | - "go-require", |
2815 | 2804 | "float-compare", |
| 2805 | + "go-require", |
2816 | 2806 | "len", |
| 2807 | + "negative-positive", |
2817 | 2808 | "nil-compare", |
2818 | 2809 | "require-error", |
2819 | 2810 | "suite-dont-use-pkg", |
2820 | 2811 | "suite-extra-assert-call", |
2821 | 2812 | "suite-thelper", |
2822 | 2813 | "useless-assert" |
2823 | 2814 | ] |
2824 | | - } |
| 2815 | + }, |
| 2816 | + "default": [ |
| 2817 | + "blank-import", |
| 2818 | + "bool-compare", |
| 2819 | + "compares", |
| 2820 | + "empty", |
| 2821 | + "error-is-as", |
| 2822 | + "error-nil", |
| 2823 | + "expected-actual", |
| 2824 | + "float-compare", |
| 2825 | + "go-require", |
| 2826 | + "len", |
| 2827 | + "negative-positive", |
| 2828 | + "nil-compare", |
| 2829 | + "require-error", |
| 2830 | + "suite-dont-use-pkg", |
| 2831 | + "suite-extra-assert-call", |
| 2832 | + "useless-assert" |
| 2833 | + ] |
2825 | 2834 | }, |
2826 | 2835 | "disable": { |
2827 | | - "description": "Enable specific checkers.", |
| 2836 | + "description": "Disable specific checkers.", |
2828 | 2837 | "type": "array", |
2829 | 2838 | "items": { |
2830 | 2839 | "enum": [ |
|
2835 | 2844 | "error-is-as", |
2836 | 2845 | "error-nil", |
2837 | 2846 | "expected-actual", |
2838 | | - "go-require", |
2839 | 2847 | "float-compare", |
| 2848 | + "go-require", |
2840 | 2849 | "len", |
| 2850 | + "negative-positive", |
2841 | 2851 | "nil-compare", |
2842 | 2852 | "require-error", |
2843 | 2853 | "suite-dont-use-pkg", |
2844 | 2854 | "suite-extra-assert-call", |
2845 | 2855 | "suite-thelper", |
2846 | 2856 | "useless-assert" |
| 2857 | + ], |
| 2858 | + "default": [ |
| 2859 | + "suite-thelper" |
2847 | 2860 | ] |
2848 | 2861 | } |
2849 | 2862 | }, |
| 2863 | + "bool-compare": { |
| 2864 | + "type": "object", |
| 2865 | + "additionalProperties": false, |
| 2866 | + "properties": { |
| 2867 | + "ignore-custom-types": { |
| 2868 | + "description": "To ignore user defined types (over builtin bool).", |
| 2869 | + "type": "boolean", |
| 2870 | + "default": false |
| 2871 | + } |
| 2872 | + } |
| 2873 | + }, |
2850 | 2874 | "expected-actual": { |
2851 | 2875 | "type": "object", |
2852 | 2876 | "additionalProperties": false, |
2853 | 2877 | "properties": { |
2854 | 2878 | "pattern": { |
2855 | 2879 | "description": "Regexp for expected variable name.", |
2856 | | - "type": "string" |
| 2880 | + "type": "string", |
| 2881 | + "default": "(^(exp(ected)?|want(ed)?)([A-Z]\\w*)?$)|(^(\\w*[a-z])?(Exp(ected)?|Want(ed)?)$)" |
| 2882 | + } |
| 2883 | + } |
| 2884 | + }, |
| 2885 | + "go-require": { |
| 2886 | + "type": "object", |
| 2887 | + "additionalProperties": false, |
| 2888 | + "properties": { |
| 2889 | + "ignore-http-handlers": { |
| 2890 | + "description": "To ignore HTTP handlers (like http.HandlerFunc).", |
| 2891 | + "type": "boolean", |
| 2892 | + "default": false |
2857 | 2893 | } |
2858 | 2894 | } |
2859 | 2895 | }, |
|
2862 | 2898 | "additionalProperties": false, |
2863 | 2899 | "properties": { |
2864 | 2900 | "fn-pattern": { |
2865 | | - "description": "Regexp for expected variable name.", |
2866 | | - "type": "string" |
| 2901 | + "description": "Regexp for assertions to analyze. If defined, then only matched error assertions will be reported.", |
| 2902 | + "type": "string", |
| 2903 | + "default": "" |
2867 | 2904 | } |
2868 | 2905 | } |
2869 | 2906 | }, |
|
2874 | 2911 | "mode": { |
2875 | 2912 | "description": "To require or remove extra Assert() call?", |
2876 | 2913 | "type": "string", |
2877 | | - "enum": ["remove", "require"] |
| 2914 | + "enum": ["remove", "require"], |
| 2915 | + "default": "remove" |
2878 | 2916 | } |
2879 | 2917 | } |
2880 | 2918 | } |
|
0 commit comments