Skip to content

Commit

Permalink
moved fix logic to class methods
Browse files Browse the repository at this point in the history
### Whats added:
 * corrected logic fix and warn String Template in LineLength rule
 * added logic fix and warn long Dot Qualified Expression and Safe Access Expression in LineLength rule
 * added logic fix and warn Value Arguments List in LineLength rule
 * added and corrected fix and warn tests in LineLength rule
 * moved fix logic to class methods
 * fix code with diktat:fix@diktat
 * added comments to classes and functions
 * corrected code with running detect
 * corrected commented code

 ### Issue (#1243)
  • Loading branch information
Arrgentum committed Jun 7, 2022
1 parent b743379 commit d1feaf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ fun List<RulesConfig>.isRuleEnabled(rule: Rule): Boolean {
* @return true if the code block is marked with annotation that is in `ignored list` in the rule
*/
fun List<RulesConfig>.isAnnotatedWithIgnoredAnnotation(rule: Rule, annotations: Set<String>): Boolean =
getRuleConfig(rule)
getRuleConfig(rule)
?.ignoreAnnotated
?.map { it.trim() }
?.map { it.trim('"') }
Expand Down

0 comments on commit d1feaf3

Please sign in to comment.