diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-27 15:06:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-27 15:06:07 +0300 |
commit | 45482d5a2704da7fabe4ccf07f85d9be6e0a791a (patch) | |
tree | 838353cda1b2a06a08799e852f3a7f338c715b44 /doc/development/gotchas.md | |
parent | 20450649ca3132e55aea60436fa6117ca6c1ae5f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/gotchas.md')
-rw-r--r-- | doc/development/gotchas.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/development/gotchas.md b/doc/development/gotchas.md index 1a9ec7eb3e1..32efef2a9b3 100644 --- a/doc/development/gotchas.md +++ b/doc/development/gotchas.md @@ -144,13 +144,11 @@ refresh_service.execute(oldrev, newrev, ref) ## Do not `rescue Exception` -See ["Why is it bad style to `rescue Exception => e` in Ruby?"][Exception]. +See ["Why is it bad style to `rescue Exception => e` in Ruby?"](https://stackoverflow.com/questions/10048173/why-is-it-bad-style-to-rescue-exception-e-in-ruby). _**Note:** This rule is [enforced automatically by Rubocop](https://gitlab.com/gitlab-org/gitlab/blob/8-4-stable/.rubocop.yml#L911-914)._ -[Exception]: http://stackoverflow.com/q/10048173/223897 - ## Do not use inline JavaScript in views Using the inline `:javascript` Haml filters comes with a @@ -161,4 +159,4 @@ in an initializer._ ### Further reading -- Stack Overflow: [Why you should not write inline JavaScript](http://programmers.stackexchange.com/questions/86589/why-should-i-avoid-inline-scripting) +- Stack Overflow: [Why you should not write inline JavaScript](https://softwareengineering.stackexchange.com/questions/86589/why-should-i-avoid-inline-scripting) |