Contents

gonzalonunez/ross

Ross is a Swift command-line tool to remove all comments from Swift code.

Basic usage

swift run ross <directory> [--remove-plain <remove-plain>]
ARGUMENTS:
  <directory>             The folder whose contents you want to remove comments from.

OPTIONS:
  --remove-plain <remove-plain>
                          Whether or not Ross should remove plain comments. (default: true)
  -h, --help              Show help information.

It is recommended to pair this with swift-format, specifically the "maximumBlankLines" rule, in order to deal with any extraneous newlines that may remain after comments are removed.

Why Ross?

Charles Ross, President Harry Truman's White House press secretary, was responsible for the first recorded usage of "no comment" as a stock answer to a question.

Package Metadata

Repository: gonzalonunez/ross

Default branch: main

README: README.md