From dd8dc84275ee52adab30567cf425dbb7bc36e5b0 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Sun, 29 Sep 2024 13:55:55 +0300 Subject: [PATCH] Regenerate documentation --- docs/modules/ROOT/pages/cops.adoc | 2 +- .../modules/ROOT/pages/cops_threadsafety.adoc | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/modules/ROOT/pages/cops.adoc b/docs/modules/ROOT/pages/cops.adoc index f868ec7..dcb236e 100644 --- a/docs/modules/ROOT/pages/cops.adoc +++ b/docs/modules/ROOT/pages/cops.adoc @@ -1,7 +1,7 @@ === Department xref:cops_threadsafety.adoc[ThreadSafety] * xref:cops_threadsafety.adoc#threadsafetyclassandmoduleattributes[ThreadSafety/ClassAndModuleAttributes] -* xref:cops_threadsafety.adoc#threadsafetyinstancevariableinclassmethod[ThreadSafety/InstanceVariableInClassMethod] +* xref:cops_threadsafety.adoc#threadsafetyclassinstancevariable[ThreadSafety/ClassInstanceVariable] * xref:cops_threadsafety.adoc#threadsafetymutableclassinstancevariable[ThreadSafety/MutableClassInstanceVariable] * xref:cops_threadsafety.adoc#threadsafetynewthread[ThreadSafety/NewThread] * xref:cops_threadsafety.adoc#threadsafetydirchdir[ThreadSafety/DirChdir] diff --git a/docs/modules/ROOT/pages/cops_threadsafety.adoc b/docs/modules/ROOT/pages/cops_threadsafety.adoc index 3ed2cee..f8151e8 100644 --- a/docs/modules/ROOT/pages/cops_threadsafety.adoc +++ b/docs/modules/ROOT/pages/cops_threadsafety.adoc @@ -42,32 +42,7 @@ end | Boolean |=== -== ThreadSafety/DirChdir - -|=== -| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed - -| Enabled -| Yes -| No -| - -| - -|=== - -Avoid using `Dir.chdir` due to its process-wide effect. - -=== Examples - -[source,ruby] ----- -# bad -Dir.chdir("/var/run") - -# bad -FileUtils.chdir("/var/run") ----- - -== ThreadSafety/InstanceVariableInClassMethod +== ThreadSafety/ClassInstanceVariable |=== | Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed @@ -79,7 +54,7 @@ FileUtils.chdir("/var/run") | - |=== -Avoid instance variables in class methods. +Avoid class instance variables. === Examples @@ -142,6 +117,31 @@ module Example end ---- +== ThreadSafety/DirChdir + +|=== +| Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed + +| Enabled +| Yes +| No +| - +| - +|=== + +Avoid using `Dir.chdir` due to its process-wide effect. + +=== Examples + +[source,ruby] +---- +# bad +Dir.chdir("/var/run") + +# bad +FileUtils.chdir("/var/run") +---- + == ThreadSafety/MutableClassInstanceVariable |===