Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove this unnecessary cast to "XXX".
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Targeted languages:
      ABAP, Flex, JavaScript, PHP, Python, VB.Net
    • Covered Languages:
      C#, C, C++, Java, Objective-C
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Scope:
      Main Sources, Test Sources
    • ESLint:
      no-extra-boolean-cast
    • ReSharper:
      RedundantEnumerableCastCall, RedundantCast
    • Quick-fixes:
      Hide

      Remove redundant cast: remove the redundant cast with "OfType()", or "Cast()". The normal cast is handled by the IDE.

      Show
      Remove redundant cast: remove the redundant cast with "OfType()", or "Cast()". The normal cast is handled by the IDE.

      Description

      Unnecessary casting expressions make the code harder to read and understand.

        Attachments

          Issue Links

          1.
          Java RSPEC-1906 Language-Specification Active Unassigned
          2.
          C-Family RSPEC-2989 Language-Specification Active Unassigned
          3.
          C# RSPEC-3082 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ann.campbell.2 Ann Campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: