Skip to content

shebang should be ignored by all rules #1294

Closed
@norio-nomura

Description

Current implementation detects two operator_usage_whitespace violations in shebang.
e.g:

$  echo '#!/usr/bin/env swift'|swiftlint lint --enable-all-rules --use-stdin
<nopath>:1:7: warning: Operator Usage Whitespace Violation: Operators should be surrounded by a single whitespace when they are being used. (operator_usage_whitespace)
<nopath>:1:11: warning: Operator Usage Whitespace Violation: Operators should be surrounded by a single whitespace when they are being used. (operator_usage_whitespace)
Done linting! Found 2 violations, 0 serious in 1 file.

screenshot 2017-02-08 19 24 04

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions