lib/tools/actions/create.rb
Avoid parameter lists longer than 5 parameters. [6/5] Open
Open
def initialize(manifest:, announce:, source:, output:, piece_size:, privacy:)
- Read upRead up
- Exclude checks
This cop checks for methods with too many parameters. The maximum number of parameters is configurable. Keyword arguments can optionally be excluded from the total count.
File.exists?
is deprecated in favor of File.exist?
. Open
Open
FileUtils.mkdir_p(output) unless File.exists?(output)
- Read upRead up
- Exclude checks
This cop checks for uses of the deprecated class method usages.
Example:
# bad
File.exists?(some_path)
Example:
# good
File.exist?(some_path)