Sha256: f5365fecd5378c2909453b5e618d6e48f7d99351ec432ff8d0c6e96b0886cb03

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

r_args = []

helper("help", binding)
helper("rubocop", binding)
helper("args", binding)

summary "Lints commits and untracked files not yet pushed to upstream"
usage "rfix lint [opts] [path ..]"
description "Lint (read-only) files"

run do |opts, args, _cmd|
  opts[:dry] = true
  opts[:untracked] = true

  if main = opts[:"main-branch"]
    branch = Rfix::Branch::Name.new(main)
  else
    branch = Rfix::Branch::MAIN
  end

  setup(r_args, opts, args, files: args.each.to_a, reference: branch)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rfix-1.4.1 lib/rfix/commands/lint.rb
rfix-1.4.0.pre.201 lib/rfix/commands/lint.rb
rfix-1.4.0 lib/rfix/commands/lint.rb
rfix-1.3.0.pre.199 lib/rfix/commands/lint.rb
rfix-1.2.6.pre.198 lib/rfix/commands/lint.rb
rfix-1.2.6 lib/rfix/commands/lint.rb