Skip to content

Commit e93a17b

Browse files
committed
Tweak Travis config.
1 parent 7b4d929 commit e93a17b

File tree

1 file changed

+95
-46
lines changed

1 file changed

+95
-46
lines changed

.scrutinizer.yml

+95-46
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,138 @@
1-
# language: ruby
21
checks:
32
ruby:
4-
style_guard_clause:
5-
min_body_length: '1'
3+
code_rating: true
4+
duplicate_code: true
5+
style_guard_clause: true
6+
style_while_until_do: true
7+
style_variable_name:
8+
enforced_style: snake_case
9+
style_variable_interpolation: true
10+
style_unneeded_percent_x: true
11+
style_unneeded_percent_q: true
12+
style_unless_else: true
13+
style_trailing_whitespace: true
14+
style_tab: true
15+
style_space_before_semicolon: true
16+
style_space_before_modifier_keyword: true
17+
style_space_before_comment: true
18+
style_space_before_block_braces:
19+
enforced_style: space
20+
style_space_around_equals_in_parameter_default:
21+
enforced_style: space
22+
style_space_after_semicolon: true
23+
style_space_after_not: true
24+
style_space_after_method_name: true
25+
style_space_after_control_keyword: true
26+
style_space_after_comma: true
27+
style_space_after_colon: true
28+
style_single_space_before_first_arg: true
29+
style_signal_exception:
30+
enforced_style: semantic
31+
style_single_line_block_params: true
32+
style_self_assignment: true
33+
style_rescue_modifier: true
34+
style_redundant_return:
35+
allow_multiple_return_values: false
36+
style_redundant_self: true
37+
style_redundant_begin: true
38+
style_proc: true
39+
style_predicate_name: true
40+
style_perl_backrefs: true
41+
style_percent_literal_delimiters: true
42+
style_parentheses_around_condition:
43+
allow_safe_assignment: true
44+
style_parameter_lists:
45+
max: '5'
46+
count_keyword_args: true
47+
style_not: true
48+
style_non_nil_check:
49+
include_semantic_changes: false
50+
style_nil_comparison: true
51+
style_nested_ternary_operator: true
52+
style_negated_while: true
53+
style_negated_if: true
54+
style_module_function: true
55+
style_method_name:
56+
enforced_style: snake_case
57+
style_method_def_parentheses:
58+
enforced_style: require_parentheses
59+
style_method_call_parentheses: true
60+
style_leading_comment_space: true
61+
style_indentation_width: true
62+
style_indentation_consistency: true
63+
style_indent_array: true
64+
style_indent_hash:
65+
enforced_style: consistent
666
style_global_vars: true
767
style_file_name: true
8-
style_flip_flop: true
9-
style_even_odd: true
1068
style_end_of_line: true
11-
style_encoding:
12-
enforced_style: always
1369
style_empty_literal: true
14-
style_each_with_object: true
70+
style_empty_lines_around_body: false
71+
style_empty_lines: true
72+
style_empty_line_between_defs:
73+
allow_adjacent_one_line_defs: true
74+
style_double_negation: true
75+
style_documentation: true
1576
style_deprecated_hash_methods: true
77+
style_def_with_parentheses: true
1678
style_constant_name: true
17-
style_class_vars: true
18-
style_class_methods: true
79+
style_comment_annotation: true
80+
style_collection_methods: true
1981
style_class_check:
2082
enforced_style: 'is_a?'
2183
style_class_and_module_camel_case: true
22-
style_character_literal: true
23-
style_auto_resource_cleanup: true
24-
style_attr: true
25-
style_ascii_identifiers: true
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:
84+
style_block_nesting:
3485
max: '3'
35-
rails_validation: true
36-
rails_timezone: true
37-
rails_scope_args: true
38-
rails_read_write_attribute: true
86+
style_ascii_identifiers: true
87+
style_align_parameters:
88+
enforced_style: with_first_parameter
89+
style_align_hash:
90+
enforced_hash_rocket_style: key
91+
enforced_colon_style: key
92+
enforced_last_argument_hash_style: always_inspect
93+
style_align_array: true
94+
style_accessor_method_name: false
3995
rails_output: 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+
rails_default_scope: true
5297
lint_useless_setter_call: true
5398
lint_useless_else_without_rescue: true
54-
lint_useless_comparison: true
5599
lint_useless_assignment: true
56100
lint_useless_access_modifier: true
57101
lint_unused_method_argument: true
58102
lint_unused_block_argument: true
59103
lint_unreachable_code: true
60104
lint_underscore_prefixed_variable_name: true
105+
lint_string_conversion_in_interpolation: true
106+
lint_space_before_first_arg: true
61107
lint_shadowing_outer_local_variable: true
62-
lint_require_parentheses: true
63-
lint_non_local_exit_from_iterator: true
108+
lint_rescue_exception: true
109+
lint_parentheses_as_grouped_expression: true
64110
lint_literal_in_interpolation: true
65111
lint_literal_in_condition: true
112+
lint_invalid_character_literal: true
66113
lint_handle_exceptions: true
67114
lint_eval: true
68115
lint_ensure_return: true
116+
lint_end_in_method: true
69117
lint_empty_interpolation: true
70118
lint_empty_ensure: true
71-
lint_each_with_object_argument: true
72-
lint_duplicate_methods: true
119+
lint_else_layout: true
73120
lint_deprecated_class_methods: true
74121
lint_debugger: true
122+
lint_condition_position: true
75123
lint_assignment_in_condition:
76124
allow_safe_assignment: true
77125
lint_ambiguous_regexp_literal: true
78126
lint_ambiguous_operator: true
79-
duplicate_code: true
80-
code_rating: true
127+
style_line_length:
128+
max: '120'
129+
allow_uri: true
81130

82131
build:
83132
tests:
84133
override:
85134
-
86-
command: 'bundle exec rake test'
135+
command: 'bundle exec rake'
87136
environment:
88137
'SCRUTINIZER_CC_FILE': 'my-coverage'
89138
coverage:

0 commit comments

Comments
 (0)