Skip to content

fix: make development environment use gemspec for better consistency

Sign in for the full log view
GitHub Actions / RuboCop Action failed Sep 12, 2024 in 0s

RuboCop Action

16 offense(s) found.

Annotations

Check notice on line 17 in lib/morandi/image_ops.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_ops.rb#L17

Remove unnecessary empty `initialize` method. [Style/RedundantInitialize]

Check notice on line 39 in lib/morandi/image_ops.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_ops.rb#L33-L39

Use `val.clamp(min, max)` instead of `if/elsif/else`. [Style/ComparableClamp]

Check notice on line 38 in lib/morandi/image_ops.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_ops.rb#L35-L38

Use `[val, max].min` instead. [Style/MinMaxComparison]

Check notice on line 116 in lib/morandi/image_processor.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_processor.rb#L116

Use `Comparable#clamp` instead. [Style/ComparableClamp]

Check notice on line 124 in lib/morandi/image_processor.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_processor.rb#L124

Use `Comparable#clamp` instead. [Style/ComparableClamp]

Check notice on line 178 in lib/morandi/image_processor.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/image_processor.rb#L178

Use string `','` as argument instead of regexp `/,/`. [Style/RedundantRegexpArgument]

Check notice on line 48 in lib/morandi/utils.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/utils.rb#L42-L48

Use `val.clamp(min, max)` instead of `if/elsif/else`. [Style/ComparableClamp]

Check notice on line 47 in lib/morandi/utils.rb

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

lib/morandi/utils.rb#L44-L47

Use `[val, max].min` instead. [Style/MinMaxComparison]

Check warning on line 36 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L7-L36

`metadata['rubygems_mfa_required']` must be set to `'true'`. [Gemspec/RequireMFA]

Check warning on line 19 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L19

Do not set `test_files` in gemspec. [Gemspec/DeprecatedAttributeAssignment]

Check notice on line 30 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L30

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]

Check notice on line 31 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L31

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]

Check notice on line 32 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L32

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]

Check notice on line 33 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L33

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]

Check notice on line 34 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L34

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]

Check notice on line 35 in morandi.gemspec

See this annotation in the file changed.

@github-actions github-actions / RuboCop Action

morandi.gemspec#L35

Specify development dependencies in Gemfile. [Gemspec/DevelopmentDependencies]