GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [kotlin] New Rule: LocalVariableShadowsParameter · Issue #6732 · pmd/pmd Closed Labels a:new-ruleProposal to add a new built-in rule Milestone DescriptionProposed Rule Name: Proposed Category: Best Practices Description: This rule also serves as a demonstration of the new Kotlin AST features: custom Code Sample: // violation - local variable 'result' shadows function parameter 'result' fun compute(result: Int): Int { val result = 42 return result } // no violation - different name fun compute2(input: Int): Int { val result = input + 1 return result } // violation - lambda explicit parameter shadows outer function parameter fun process(result: Int): Int { val transform = { result: Int -> result + 1 } return transform(result) } Possible Properties:
Not in scope / possible follow-up:
Related: Reacted by Jeroen Borgers Activity
MetadataMetadataAssigneesLabelsa:new-ruleProposal to add a new built-in rule TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |