|
| 1 | +# language: ruby |
1 | 2 | checks:
|
2 | 3 | ruby:
|
3 |
| - code_rating: true |
4 |
| - duplicate_code: true |
5 |
| - style_while_until_do: true |
6 |
| - style_variable_name: |
7 |
| - enforced_style: snake_case |
8 |
| - style_variable_interpolation: true |
9 |
| - style_unneeded_percent_x: true |
10 |
| - style_unneeded_percent_q: true |
11 |
| - style_unless_else: true |
12 |
| - style_trailing_whitespace: true |
13 |
| - style_tab: true |
14 |
| - style_space_before_semicolon: true |
15 |
| - style_space_before_modifier_keyword: true |
16 |
| - style_space_before_comment: true |
17 |
| - style_space_before_block_braces: |
18 |
| - enforced_style: space |
19 |
| - style_space_around_equals_in_parameter_default: |
20 |
| - enforced_style: space |
21 |
| - style_space_after_semicolon: true |
22 |
| - style_space_after_not: true |
23 |
| - style_space_after_method_name: true |
24 |
| - style_space_after_control_keyword: true |
25 |
| - style_space_after_comma: true |
26 |
| - style_space_after_colon: true |
27 |
| - style_single_space_before_first_arg: true |
28 |
| - style_signal_exception: |
29 |
| - enforced_style: semantic |
30 |
| - style_single_line_block_params: true |
31 |
| - style_self_assignment: true |
32 |
| - style_rescue_modifier: true |
33 |
| - style_redundant_return: |
34 |
| - allow_multiple_return_values: false |
35 |
| - style_redundant_self: true |
36 |
| - style_redundant_begin: true |
37 |
| - style_proc: true |
38 |
| - style_predicate_name: true |
39 |
| - style_perl_backrefs: true |
40 |
| - style_percent_literal_delimiters: true |
41 |
| - style_parentheses_around_condition: |
42 |
| - allow_safe_assignment: true |
43 |
| - style_parameter_lists: |
44 |
| - max: '5' |
45 |
| - count_keyword_args: true |
46 |
| - style_not: true |
47 |
| - style_non_nil_check: |
48 |
| - include_semantic_changes: false |
49 |
| - style_nil_comparison: true |
50 |
| - style_nested_ternary_operator: true |
51 |
| - style_negated_while: true |
52 |
| - style_negated_if: true |
53 |
| - style_module_function: true |
54 |
| - style_method_name: |
55 |
| - enforced_style: snake_case |
56 |
| - style_method_def_parentheses: |
57 |
| - enforced_style: require_parentheses |
58 |
| - style_method_call_parentheses: true |
59 |
| - style_leading_comment_space: true |
60 |
| - style_indentation_width: true |
61 |
| - style_indentation_consistency: true |
62 |
| - style_indent_array: true |
63 |
| - style_indent_hash: |
64 |
| - enforced_style: consistent |
| 4 | + style_guard_clause: |
| 5 | + min_body_length: '1' |
65 | 6 | style_global_vars: true
|
66 | 7 | style_file_name: true
|
| 8 | + style_flip_flop: true |
| 9 | + style_even_odd: true |
67 | 10 | style_end_of_line: true
|
| 11 | + style_encoding: |
| 12 | + enforced_style: always |
68 | 13 | style_empty_literal: true
|
69 |
| - style_empty_lines_around_body: false |
70 |
| - style_empty_lines: true |
71 |
| - style_empty_line_between_defs: |
72 |
| - allow_adjacent_one_line_defs: true |
73 |
| - style_double_negation: true |
74 |
| - style_documentation: true |
| 14 | + style_each_with_object: true |
75 | 15 | style_deprecated_hash_methods: true
|
76 |
| - style_def_with_parentheses: true |
77 | 16 | style_constant_name: true
|
78 |
| - style_comment_annotation: true |
79 |
| - style_collection_methods: true |
| 17 | + style_class_vars: true |
| 18 | + style_class_methods: true |
80 | 19 | style_class_check:
|
81 | 20 | enforced_style: 'is_a?'
|
82 | 21 | style_class_and_module_camel_case: true
|
83 |
| - style_block_nesting: |
84 |
| - max: '3' |
| 22 | + style_character_literal: true |
| 23 | + style_auto_resource_cleanup: true |
| 24 | + style_attr: true |
85 | 25 | style_ascii_identifiers: true
|
86 |
| - style_align_parameters: |
87 |
| - enforced_style: with_first_parameter |
88 |
| - style_align_hash: |
89 |
| - enforced_hash_rocket_style: key |
90 |
| - enforced_colon_style: key |
91 |
| - enforced_last_argument_hash_style: always_inspect |
92 |
| - style_align_array: true |
93 |
| - style_accessor_method_name: false |
| 26 | + style_ascii_comments: true |
| 27 | + style_array_join: true |
| 28 | + style_and_or: true |
| 29 | + style_alias: true |
| 30 | + style_accessor_method_name: true |
| 31 | + smell_line_length: |
| 32 | + max: '120' |
| 33 | + smell_block_nesting: |
| 34 | + max: '3' |
| 35 | + rails_validation: true |
| 36 | + rails_timezone: true |
| 37 | + rails_scope_args: true |
| 38 | + rails_read_write_attribute: true |
94 | 39 | rails_output: true
|
95 |
| - rails_default_scope: true |
| 40 | + rails_has_and_belongs_to_many: true |
| 41 | + rails_foreach: true |
| 42 | + rails_find_by: true |
| 43 | + rails_delegate: true |
| 44 | + rails_date: false |
| 45 | + performance_size: true |
| 46 | + performance_sample: true |
| 47 | + performance_reverse_each: true |
| 48 | + performance_flatmap: true |
| 49 | + performance_detect: true |
| 50 | + performance_count: true |
| 51 | + lint_void: true |
96 | 52 | lint_useless_setter_call: true
|
97 | 53 | lint_useless_else_without_rescue: true
|
| 54 | + lint_useless_comparison: true |
98 | 55 | lint_useless_assignment: true
|
99 | 56 | lint_useless_access_modifier: true
|
100 | 57 | lint_unused_method_argument: true
|
101 | 58 | lint_unused_block_argument: true
|
102 | 59 | lint_unreachable_code: true
|
103 | 60 | lint_underscore_prefixed_variable_name: true
|
104 |
| - lint_string_conversion_in_interpolation: true |
105 |
| - lint_space_before_first_arg: true |
106 | 61 | lint_shadowing_outer_local_variable: true
|
107 |
| - lint_rescue_exception: true |
108 |
| - lint_parentheses_as_grouped_expression: true |
| 62 | + lint_require_parentheses: true |
| 63 | + lint_non_local_exit_from_iterator: true |
109 | 64 | lint_literal_in_interpolation: true
|
110 | 65 | lint_literal_in_condition: true
|
111 |
| - lint_invalid_character_literal: true |
112 | 66 | lint_handle_exceptions: true
|
113 | 67 | lint_eval: true
|
114 | 68 | lint_ensure_return: true
|
115 |
| - lint_end_in_method: true |
116 | 69 | lint_empty_interpolation: true
|
117 | 70 | lint_empty_ensure: true
|
118 |
| - lint_else_layout: true |
| 71 | + lint_each_with_object_argument: true |
| 72 | + lint_duplicate_methods: true |
119 | 73 | lint_deprecated_class_methods: true
|
120 | 74 | lint_debugger: true
|
121 |
| - lint_condition_position: true |
122 | 75 | lint_assignment_in_condition:
|
123 | 76 | allow_safe_assignment: true
|
124 | 77 | lint_ambiguous_regexp_literal: true
|
125 | 78 | lint_ambiguous_operator: true
|
126 |
| - style_line_length: |
127 |
| - max: '120' |
128 |
| - allow_uri: true |
| 79 | + duplicate_code: true |
| 80 | + code_rating: true |
129 | 81 |
|
130 | 82 | build:
|
131 | 83 | tests:
|
|
0 commit comments