Skip to content

Commit 7b4d929

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

File tree

2 files changed

+47
-94
lines changed

2 files changed

+47
-94
lines changed

.scrutinizer.yml

+45-93
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,83 @@
1+
# language: ruby
12
checks:
23
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'
656
style_global_vars: true
667
style_file_name: true
8+
style_flip_flop: true
9+
style_even_odd: true
6710
style_end_of_line: true
11+
style_encoding:
12+
enforced_style: always
6813
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
7515
style_deprecated_hash_methods: true
76-
style_def_with_parentheses: true
7716
style_constant_name: true
78-
style_comment_annotation: true
79-
style_collection_methods: true
17+
style_class_vars: true
18+
style_class_methods: true
8019
style_class_check:
8120
enforced_style: 'is_a?'
8221
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
8525
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
9439
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
9652
lint_useless_setter_call: true
9753
lint_useless_else_without_rescue: true
54+
lint_useless_comparison: true
9855
lint_useless_assignment: true
9956
lint_useless_access_modifier: true
10057
lint_unused_method_argument: true
10158
lint_unused_block_argument: true
10259
lint_unreachable_code: true
10360
lint_underscore_prefixed_variable_name: true
104-
lint_string_conversion_in_interpolation: true
105-
lint_space_before_first_arg: true
10661
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
10964
lint_literal_in_interpolation: true
11065
lint_literal_in_condition: true
111-
lint_invalid_character_literal: true
11266
lint_handle_exceptions: true
11367
lint_eval: true
11468
lint_ensure_return: true
115-
lint_end_in_method: true
11669
lint_empty_interpolation: true
11770
lint_empty_ensure: true
118-
lint_else_layout: true
71+
lint_each_with_object_argument: true
72+
lint_duplicate_methods: true
11973
lint_deprecated_class_methods: true
12074
lint_debugger: true
121-
lint_condition_position: true
12275
lint_assignment_in_condition:
12376
allow_safe_assignment: true
12477
lint_ambiguous_regexp_literal: true
12578
lint_ambiguous_operator: true
126-
style_line_length:
127-
max: '120'
128-
allow_uri: true
79+
duplicate_code: true
80+
code_rating: true
12981

13082
build:
13183
tests:

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ sudo: false
1818

1919
bundler_args: "--without docs"
2020

21-
#before_script:
21+
before_script:
22+
- gem install bundler
2223

2324
script:
2425
- bundle install --without docs

0 commit comments

Comments
 (0)