package Ġorg . cq fn . di kt at . rule set . rules Ċ Ċ import Ġcom . p interest . kt lint . core . Kt Lint Ċ import Ġcom . p interest . kt lint . core . Rule Ċ import Ġcom . p interest . kt lint . core . Rule Set Ċ import Ġcom . p interest . kt lint . core . Rule Set Provider Ċ import Ġorg . cq fn . di kt at . common . config . rules . Rules Config Ċ import Ġorg . cq fn . di kt at . common . config . rules . Rules Config Reader Ċ import Ġorg . cq fn . di kt at . rule set . rules . comments . Comments Rule Ċ import Ġorg . cq fn . di kt at . rule set . rules . files . Blank Lines Rule Ċ import Ġorg . cq fn . di kt at . rule set . rules . files . FileSize Ċ import Ġorg . cq fn . di kt at . rule set . rules . files . File Structure Rule Ċ import Ġorg . cq fn . di kt at . rule set . rules . files . Indent ation Rule Ċ import Ġorg . cq fn . di kt at . rule set . rules . files . New lines Rule Ċ import Ġorg . cq fn . di kt at . rule set . rules . k doc . K doc Comments Ċ import Ġorg . cq fn . di kt at . rule set . rules . k doc . K doc Formatting Ċ import Ġorg . cq fn . di kt at . rule set . rules . k doc . K doc Methods Ċ import Ġorg . slf 4 j . LoggerFactory Ċ Ċ /** Ċ Ġ* Ġthis Ġconstant Ġwill Ġbe Ġused Ġeverywhere Ġin Ġthe Ġcode Ġto Ġmark Ġusage Ġof ĠD ik tat Ġrule set Ċ Ġ*/ Ċ const Ġval ĠDI KT AT _ RULE _ SET _ ID Ġ= Ġ" di kt at - rule set " Ċ Ċ class ĠRule Set D ik tat ( val Ġrules Config : ĠList < Rules Config >, Ġvar arg Ġrules : ĠRule ) Ġ: ĠRule Set ( DI KT AT _ RULE _ SET _ ID , Ġ* rules ) Ċ Ċ fun ĠK t Lint . Params . get D ik tat Config Rules (): ĠList < Rules Config > Ġ= Ġ( this . rule Sets . find Ġ{ Ġit . id Ġ== ĠDI KT AT _ RULE _ SET _ ID Ġ} Ġas ĠRule Set D ik tat ). rules Config Ċ Ċ class ĠD ik tat Rule Set Provider ( private Ġval Ġjson Rules Config : ĠString Ġ= Ġ" rules - config . json ") Ġ: ĠRule Set Provider Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget (): ĠRule Set Ġ{ ĊĠĠĠĠĠĠĠ Ġlog . debug (" Will Ġrun Ġ$ DI KT AT _ RULE _ SET _ ID Ġwith Ġ$ json Rules Config Ġ( it Ġcan Ġbe Ġplaced Ġto Ġthe Ġrun Ġdirectory Ġor Ġthe Ġdefault Ġfile Ġfrom Ġresources Ġwill Ġbe Ġused )") ĊĠĠĠĠĠĠĠ Ġreturn ĠRule Set D ik tat ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠRules Config Reader ( java Class . class Loader ). read Resource ( json Rules Config ) Ġ?: ĠlistOf (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠComments Rule (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK doc Comments (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK doc Methods (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK doc Formatting (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠFile Naming (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPackage Naming (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠFile Size (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠIdentifier Naming (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBr aces In Condition als And Lo ops Rule (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBlock Structure Br aces (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠEmpty Block (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLine Length (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBl ank Lines Rule (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠWhite Space Rule (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠFile Structure Rule (), Ġ Ġ// Ġthis Ġrule Ġshould Ġbe Ġright Ġbefore Ġindentation Ġbecause Ġit Ġshould Ġoperate Ġon Ġalready Ġvalid Ġcode ĊĠĠĠĠĠĠĠĠĠĠĠ ĠNew lines Rule (), Ġ Ġ// Ġnew lines Ġneed Ġto Ġbe Ġinserted Ġright Ġbefore Ġfixing Ġindentation ĊĠĠĠĠĠĠĠĠĠĠĠ ĠInd ent ation Rule () Ġ Ġ// Ġindentation Ġrule Ġshould Ġbe Ġthe Ġlast Ġbecause Ġit Ġfixes Ġformatting Ġafter Ġall Ġthe Ġchanges Ġdone Ġby Ġprevious Ġrules ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlog Ġ= ĠLoggerFactory . getLogger ( D ik tat Rule Set Provider :: class . java ) ĊĠĠĠ Ġ} Ċ } Ċ