devedbox/Commander

View on GitHub

Showing 375 of 376 total issues

File should contain 400 lines or less: currently contains 1110
Open

}

Function body should span 40 lines or less excluding comments and whitespace: currently spans 74 lines
Open

  internal func container(from commandLineArgs: [String]) throws -> ObjectFormat.Value {

Function name should start with a lowercase character: '_typeMismatch(at:expectation:reality:)'
Open

  fileprivate static func __typeMismatch(at path: [CodingKey], expectation: Any.Type, reality: Any?) -> DecodingError {

Opening braces should be preceded by a single space and on the same line as the declaration.
Open

    {

Opening braces should be preceded by a single space and on the same line as the declaration.
Open

    {

Lines should not have trailing whitespace.
Open

      

Lines should not have trailing whitespace.
Open

    

Lines should not have trailing whitespace.
Open

  

Lines should not have trailing whitespace.
Open

  

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.
Open

    public static let keys: [OptionKeys : Character] = [:]

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.
Open

    var arguments: [String: [ObjectFormat.Value]] = ["command-0":[]]

Line should be 120 characters or less: currently 129 characters
Open

        throw OptionsDecoder.Error.unrecognizedArguments(Array(validArguments.values.flatMap { $0 }).compactMap { $0.unwrapped })

Opening braces should be preceded by a single space and on the same line as the declaration.
Open

  {

Lines should not have trailing whitespace.
Open

    

Prefer != nil over let _ =
Open

        let _ = child.value as? OptionDescribable

Line should be 120 characters or less: currently 135 characters
Open

      return "Unrecognized options\(path == nil ? "" : " for command '\(path!.command.symbol)'"): '\(options.joined(separator: " "))'."
Severity: Minor
Found in Sources/Commander/Error.swift by swiftlint

Setter value is not used.
Open

    set { }

Lines should not have trailing whitespace.
Open

        
Severity: Minor
Found in Sources/Utility/String+.swift by swiftlint

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.
Open

    } else if value is [String : Any] {

Setter value is not used.
Open

    set { }
Severity
Category
Status
Source
Language