Sha256: 234ffa9f8614a4b4652aa7a878c64386b609ad90ae9e0e04e015c13be22a5372

Contents?: true

Size: 502 Bytes

Versions: 13

Compression:

Stored size: 502 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

13 entries across 13 versions & 1 rubygems

Version Path
rfix-1.2.2.pre.174 lib/rfix/commands/lint.rb
rfix-1.2.5 lib/rfix/commands/lint.rb
rfix-1.2.4 lib/rfix/commands/lint.rb
rfix-1.2.3.pre lib/rfix/commands/lint.rb
rfix-1.2.2.pre lib/rfix/commands/lint.rb
rfix-1.2.2.pre.172 lib/rfix/commands/lint.rb
rfix-1.2.2 lib/rfix/commands/lint.rb
rfix-1.1.0.pre.150 lib/rfix/commands/lint.rb
rfix-1.2.0 lib/rfix/commands/lint.rb
rfix-1.1.4.pre lib/rfix/commands/lint.rb
rfix-1.1.1.pre lib/rfix/commands/lint.rb
rfix-1.1.0.pre.149 lib/rfix/commands/lint.rb
rfix-1.1.0.pre.147 lib/rfix/commands/lint.rb