Skip to content

SA1008 false positive on range expression with first operand in parentheses  #3894

@rotanov

Description

@rotanov
// This is fine
var rangeIsFine = 0..(1 + 0);
//                       +-- Warning SA1008: Opening parenthesis should not be preceded by a space.
//                       |
//                       v
var rangeFalsePositive = (0 + 0)..1;

version 1.2.0-beta.556

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @rotanov

      Issue actions

        SA1008 false positive on range expression with first operand in parentheses · Issue #3894 · DotNetAnalyzers/StyleCopAnalyzers