for task in tasks
Power through repetitive tasks
Catch and fix quality issues before they enter your code to have fewer bugs, greater velocity, and happier teams.
rules:
- id: filter-lambda-to-list-comprehension
pattern: |
list(filter(lambda ${arg}: ${expr}, ${items}))
replacement: |
[${arg} for ${arg} in ${items} if ${expr}]
description: |
Use list comprehensions instead of filter and lambda
match typeOfUser:
Simple, flexible pricing
For open source projects
Free
Feedback on open source code anytime, anywhere
For all projects
$10 per month
Improve any project with the full power of Sourcery
For teams
$30 per month
Streamlined code reviews and consistent code quality