rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Introduce rubocop-on-rbs

Open ksss opened this issue 1 year ago • 0 comments

I propose to introduce rubocop-on-rbs.

This is a lint tool for RBS file.

This tool automates trivial indentation and style remarks during review.

Examples of remarks from RuboCop

image

Departments

This PR enables RBS/Layout and RBS/Lint departments.

  • RBS/Layout provides feedback on indentation and spacing, which does not affect the semantics of RBS at all.
  • RBS/Lint points out important issues such as syntax errors and unused type variables.

See also all documentation. https://github.com/ksss/rubocop-on-rbs/blob/main/docs/modules/ROOT/pages/cops.adoc

This introduction does not use RBS/Style cops. RBS/Style will be discussed and introduced one by one later.

Notice

I'm not sure that running the RuboCop task on both head and 3.3 in CI. Probably for the purpose of running rubycw with head.

ksss avatar Jun 18 '24 08:06 ksss