andrewpage/bt-tools

View on GitHub
lib/tools/actions/create.rb

Summary

Maintainability
A
0 mins
Test Coverage

Avoid parameter lists longer than 5 parameters. [6/5]
Open

      def initialize(manifest:, announce:, source:, output:, piece_size:, privacy:)
Severity: Minor
Found in lib/tools/actions/create.rb by rubocop

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

        FileUtils.mkdir_p(output) unless File.exists?(output)
Severity: Minor
Found in lib/tools/actions/create.rb by rubocop

This cop checks for uses of the deprecated class method usages.

Example:

# bad

File.exists?(some_path)

Example:

# good

File.exist?(some_path)

There are no issues that match your filters.

Category
Status