Skip to content

Commit

Permalink
Regenerate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpraxis committed Sep 29, 2024
1 parent 15fcef5 commit dd8dc84
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops.adoc
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
54 changes: 27 additions & 27 deletions docs/modules/ROOT/pages/cops_threadsafety.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -79,7 +54,7 @@ FileUtils.chdir("/var/run")
| -
|===
Avoid instance variables in class methods.
Avoid class instance variables.
=== Examples
Expand Down Expand Up @@ -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
|===
Expand Down

0 comments on commit dd8dc84

Please sign in to comment.