rubocop-rails-order_model_macros 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9910318653f0f4e74ea09b0c8ff74af711c57ec8
4
+ data.tar.gz: 67052e409250b6bb5ef0562ec0cfbe1978f5bb93
5
+ SHA512:
6
+ metadata.gz: fac171e9a0b679a4d2b89ed91c906c94022ede67bfa3e03ec18d91efcea02d8907476383f8f6dd302cb741a1eb9666532be01f29ff63635611d18117979488b1
7
+ data.tar.gz: 2243b42702576db4dd8e4523218a4fff0c1abb485b6557cd3431cd6922b9c579958243549ac917b28e1329ef04a6073af7bab85b727027fb68d128b1f7c2bed6
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.3
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at caroline.artz@centro.net. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rubocop-rails-order_model_declarative_methods.gemspec
4
+ # gem 'rubocop', git: "https://github.com/bbatsov/rubocop.git"
5
+ gem 'rubocop', '~> 0.47.1'
6
+ gem 'pry'
7
+ gemspec
8
+
9
+ gem "awesome_print", require: false
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+ =====================
3
+
4
+ Copyright (c) Joshua Hagins <hagins.josh@gmail.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
7
+ this software and associated documentation files (the "Software"), to deal in
8
+ the Software without restriction, including without limitation the rights to
9
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10
+ of the Software, and to permit persons to whom the Software is furnished to do
11
+ so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # RuboCop::Rails::OrderModelMacros
2
+
3
+ TODO: Add overview/docs
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'rubocop-rails-order_model_macros'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install rubocop-rails-order_model_macros
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubocop-rails-order_model_macros. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
39
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rubocop/rails/order_model_macros"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ Rails/OrderModelMacros:
2
+ Description: 'Sort macros methos in Rails models.'
3
+ Enabled: true
4
+ PreferredGroupOrdering:
5
+ - default_scope
6
+ - class_method
7
+ - enum
8
+ - association
9
+ - validation
10
+ - callback
11
+ - delegate
12
+ - rails
13
+ - gem
14
+ - custom
15
+ - scope
16
+ PreferredInnerGroupOrdering:
17
+ association:
18
+ - belongs_to
19
+ - has_one
20
+ - has_and_belongs_to_many
21
+ - has_many
22
+ validation:
23
+ - validates
24
+ - validate
25
+ - with_options
26
+ Rails:
27
+ - accepts_nested_attributes_for
28
+ - serialize
29
+ - store_accessor
30
+ Custom: null
31
+ Gem: null
@@ -0,0 +1,13 @@
1
+ require 'pathname'
2
+ require 'yaml'
3
+
4
+ require 'rubocop'
5
+ require 'rubocop/rails/order_model_macros'
6
+ require 'rubocop/rails/order_model_macros/configuration'
7
+ require 'rubocop/rails/order_model_macros/version'
8
+ require 'rubocop/rails/inject'
9
+
10
+ RuboCop::Rails::Inject.defaults!
11
+
12
+ # cops
13
+ require 'rubocop/cop/rails/order_model_macros'
@@ -0,0 +1,152 @@
1
+ module RuboCop
2
+ module Cop
3
+ module Rails
4
+ class OrderModelMacros < Cop
5
+ include RuboCop::Rails::OrderModelMacros::Configuration
6
+
7
+ MSG = "Macros are not properly sorted."
8
+ MSG_OUTER_GROUPS = "Macro method groups not sorted. Move %{group1} above %{group2}.".freeze
9
+ MSG_WITHIN_GROUP = "Not sorted within %{type}. Move %{method1} above %{method2}.".freeze
10
+
11
+ DEFAULT_SCOPE = :default_scope
12
+ CLASS_METHODS = /^[mc]attr_(reader|writer|accessor)/
13
+ ENUM = :enum
14
+ CALLBACKS = /^(before|around|after)_\w*/
15
+ DELEGATE = :delegate
16
+ SCOPE = :scope
17
+
18
+ GROUPED = %i(
19
+ association
20
+ validation
21
+ ).freeze
22
+
23
+ def on_class(node)
24
+ _name, superclass, body = *node
25
+
26
+ return unless body
27
+ return unless body.begin_type?
28
+ return unless %w(ActiveRecord ApplicationRecord).include?(superclass.descendants.first.const_name)
29
+
30
+ targets = target_methods(body)
31
+ return true if correct_grouping?(targets) && correct_within_groups?(targets)
32
+
33
+ add_offense(body, :expression, @message || MSG)
34
+ end
35
+
36
+ private
37
+
38
+ def target_types(targets)
39
+ targets.map { |target| method_type(target) }
40
+ end
41
+
42
+ def correct_within_groups?(targets)
43
+ grouped = targets
44
+ .group_by { |target| method_type(target) }
45
+ .keep_if { |type, _targets| GROUPED.include?(type) }
46
+
47
+ grouped.all? do |type, targets_for_type|
48
+ ordered_for_type = preferred_group_ordering[type]
49
+ squeezed = squeeze(targets_for_type.map(&:method_name))
50
+
51
+ a = (ordered_for_type & squeezed)
52
+ b = (squeezed & ordered_for_type)
53
+
54
+ a == b || (set_within_group_error_message(type, a, b) and false)
55
+ end
56
+ end
57
+
58
+ def plural_form(group)
59
+ group.to_s + "s"
60
+ end
61
+
62
+ def correct_grouping?(targets)
63
+ target_types = target_types(targets)
64
+ return false unless single_groups?(target_types)
65
+
66
+ type_order = preferred_group_ordering.keys
67
+ squeezed = squeeze(target_types)
68
+
69
+ a = type_order & squeezed
70
+ b = squeezed & type_order
71
+
72
+ a == b || (set_outer_group_error_message(a, b) and false)
73
+ end
74
+
75
+ def single_groups?(targets)
76
+ squeeze(targets) == targets.uniq
77
+ end
78
+
79
+ def squeeze(targets)
80
+ targets.each_with_object([]) do |el, squeezed|
81
+ squeezed << el unless squeezed.last == el
82
+ end
83
+ end
84
+
85
+ def target_methods(body)
86
+ body.children.compact.select do |child|
87
+ child.send_type? && matches_targets?(child.method_name)
88
+ end
89
+ end
90
+
91
+ def matches_targets?(declared)
92
+ all_targets[:regexps].any? { |regex| regex === declared } || all_targets[:names].include?(declared)
93
+ end
94
+
95
+ def all_targets
96
+ types = preferred_group_ordering
97
+ .values
98
+ .flatten
99
+ .partition { |target_type| target_type.is_a?(Regexp) }
100
+
101
+ {
102
+ regexps: types.first, # array of Regexps
103
+ names: types.last # array of Symbols
104
+ }
105
+ end
106
+
107
+ def target_mapping
108
+ {
109
+ default_scope: DEFAULT_SCOPE,
110
+ class_method: CLASS_METHODS,
111
+ enum: ENUM,
112
+ association: association_macros,
113
+ validation: validation_macros,
114
+ callback: CALLBACKS,
115
+ delegate: DELEGATE,
116
+ rails: rails_macros,
117
+ gem: gem_macros,
118
+ custom: custom_macros,
119
+ scope: SCOPE
120
+ }
121
+ end
122
+
123
+ def method_type(target)
124
+ case target.method_name
125
+ when DEFAULT_SCOPE then :default_scope
126
+ when CLASS_METHODS then :class_method
127
+ when ENUM then :enum
128
+ when CALLBACKS then :callback
129
+ when DELEGATE then :delegate
130
+ when SCOPE then :scope
131
+ when *association_macros then :association
132
+ when *custom_macros then :custom
133
+ when *gem_macros then :gem
134
+ when *rails_macros then :rails
135
+ when *validation_macros then :validation
136
+ else raise "Unreachable code"
137
+ end
138
+ end
139
+
140
+ def set_outer_group_error_message(a, b)
141
+ first_error = a.zip(b).find { |x, y| x != y }
142
+ @message = MSG_OUTER_GROUPS % {group1: plural_form(first_error.first), group2: plural_form(first_error.last)}
143
+ end
144
+
145
+ def set_within_group_error_message(type, a, b)
146
+ first_error = a.zip(b).find { |x, y| x != y }
147
+ @message = MSG_WITHIN_GROUP % {type: plural_form(type), method1: first_error.first, method2: first_error.last}
148
+ end
149
+ end
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,24 @@
1
+ # This file is copied from rubocop-rspec
2
+ require 'yaml'
3
+ require 'pry'
4
+
5
+ module RuboCop
6
+ module Rails
7
+ # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
8
+ # bit of our configuration.
9
+ module Inject
10
+ DEFAULT_FILE = File.expand_path(
11
+ '../../../../config/default.yml', __FILE__
12
+ )
13
+
14
+ def self.defaults!
15
+ hash = ConfigLoader.send(:load_yaml_configuration, DEFAULT_FILE)
16
+ config = Config.new(hash, DEFAULT_FILE)
17
+ puts "configuration from #{DEFAULT_FILE}" if ConfigLoader.debug?
18
+ config = ConfigLoader.merge_with_default(config, DEFAULT_FILE)
19
+
20
+ ConfigLoader.instance_variable_set(:@default_configuration, config)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,6 @@
1
+ module RuboCop
2
+ module Rails
3
+ module OrderModelMacros
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,36 @@
1
+ module RuboCop
2
+ module Rails
3
+ module OrderModelMacros
4
+ module Configuration
5
+ def preferred_group_ordering
6
+ @preferred_group_ordering ||= begin
7
+ groups = @config.for_cop('Rails/OrderModelMacros')['PreferredGroupOrdering'].map(&:to_sym) || []
8
+ groups.each_with_object({}) do |group, mapping|
9
+ mapping[group] = target_mapping[group]
10
+ end
11
+ end
12
+ end
13
+
14
+ def custom_macros
15
+ @custom_macros ||= (config = @config.for_cop('Rails/OrderModelMacros')['Custom'] and config.map(&:to_sym)) || []
16
+ end
17
+
18
+ def rails_macros
19
+ @rails_macros ||= (@config.for_cop('Rails/OrderModelMacros')['Rails'].map(&:to_sym) || [])
20
+ end
21
+
22
+ def gem_macros
23
+ @gem_macros ||= (config = @config.for_cop('Rails/OrderModelMacros')['Gem'] and config.map(&:to_sym)) || []
24
+ end
25
+
26
+ def association_macros
27
+ @association_macros ||= (@config.for_cop('Rails/OrderModelMacros')['PreferredInnerGroupOrdering']['association'].map(&:to_sym) || [])
28
+ end
29
+
30
+ def validation_macros
31
+ @validation_macros ||= (@config.for_cop('Rails/OrderModelMacros')['PreferredInnerGroupOrdering']['validation'].map(&:to_sym) || [])
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+
3
+ module RuboCop
4
+ module Rails
5
+ module OrderModelMacros
6
+ module Version
7
+ STRING = "0.1.1".freeze
8
+
9
+ def self.gem_version
10
+ Gem::Version.new(STRING)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'rubocop/rails/order_model_macros/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "rubocop-rails-order_model_macros"
9
+ spec.version = RuboCop::Rails::OrderModelMacros::Version::STRING
10
+ spec.authors = ["Caroline Artz"]
11
+ spec.email = ["ceartz@gmail.com"]
12
+
13
+ spec.summary = "Extension of RuboCop for ordering macro style methods in Rails models"
14
+ spec.description = "Extension of RuboCop for ordering macro style methods in Rails models"
15
+ spec.homepage = "https://github.com/carolineartz/rubocop-rails-order_model_macros"
16
+ spec.license = "MIT"
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'rubocop', '~> 0.47.1'
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.14"
24
+ spec.add_development_dependency "rake", "~> 10.4"
25
+ spec.add_development_dependency "rspec", "~> 3.4"
26
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-rails-order_model_macros
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Caroline Artz
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.47.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.47.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.4'
69
+ description: Extension of RuboCop for ordering macro style methods in Rails models
70
+ email:
71
+ - ceartz@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - MIT_LICENSE.md
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - config/default.yml
87
+ - lib/rubocop-rails-order_model_macros.rb
88
+ - lib/rubocop/cop/rails/order_model_macros.rb
89
+ - lib/rubocop/rails/inject.rb
90
+ - lib/rubocop/rails/order_model_macros.rb
91
+ - lib/rubocop/rails/order_model_macros/configuration.rb
92
+ - lib/rubocop/rails/order_model_macros/version.rb
93
+ - rubocop-rails-order_model_macros.gemspec
94
+ homepage: https://github.com/carolineartz/rubocop-rails-order_model_macros
95
+ licenses:
96
+ - MIT
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 2.4.5.1
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: Extension of RuboCop for ordering macro style methods in Rails models
118
+ test_files: []