We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create command-line util to lint projects that use Tokamak.
Todo:
Linter.md
Props is not Equatable
lintFile -> [LintError]
lintFolder
lintFile
TokamakLint
public
TokenVisitor
Rule
Reporter
PropsIsEquatableRule
Range
node.range.startRow = row node.range.startColumn = column node.range.endRow = row node.range.endColumn = column
processToken
kind
private func processToken(_ token: TokenSyntax) { var kind = "\(token.tokenKind)" if let index = kind.firstIndex(of: "(") { kind = String(kind.prefix(upTo: index)) } if kind.hasSuffix("Keyword") { kind = "keyword" } column += token.text.count }
walkAndGrab
private
if node.children.count > 0
SwiftCLI
TokamakCLI
tokamak
.executable(name: "tokamak", targets: ["TokamakCLI"])
swift-log
print
LogHandler
Long-term:
state
The text was updated successfully, but these errors were encountered:
Closing as outdated
Sorry, something went wrong.
hodovani
No branches or pull requests
Create command-line util to lint projects that use Tokamak.
Todo:
Linter.md
for linter documentationProps is not Equatable
lintFile -> [LintError]
lintFolder
uselintFile
TokamakLint
types access scope: removepublic
fromTokenVisitor
,Rule
,Reporter
,PropsIsEquatableRule
TokenVisitor
handling ofRange
, start and end are always equal to each other:processToken
,kind
variable is unused:walkAndGrab
, make itprivate
, removeif node.children.count > 0
conditionSwiftCLI
package can be used inTokamakCLI
moduleTokamakCLI
totokamak
in Package.swift for Swift 5.0 and 4.2swift-log
packageprint
, implement configurable output for stdout or files with a customLogHandler
implementation forswift-log
Long-term:
state
The text was updated successfully, but these errors were encountered: