I tried #1. Options, /#2 (closed) and /#3 (closed) requires specific new classes, which somehow, take value to the utility classes. I prefer to apply the style directly. More straight forward, in my opinion.
@tachyons-gitlab, I am sorry to bother you. There was a conflict with gitlab.pot just at the point of merge
I got this answer from Duo:
The base class OmniauthIdentityLinkerBase uses session = {} as the default, meaning it's treated as a plain Hash. So instance_double(Hash) is actually appropriate here — the production code only uses @session as a hash. The comment's suggestion of ActionDispatch::Request::Session would be over-specifying. The comment is wrong in this case.
noreferrer implies noopener, so rel='noreferrer' alone is sufficient. rel='noopener noreferrer' is redundant but commonly used for backwards compatibility with older browsers that didn't support noreferrer implying noopener.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/noreferrer#description
Fixed, thanks!
@GitLabDuo, I tried hard to use a utility class but it is ovewrriden by a more specific class from boostrap. This was the only way.
Eduardo Sanz García (302bbea9) at 17 Mar 16:12
Apply suggestion from reviewer
... and 1804 more commits
No problems, @tachyons-gitlab. Thanks for the approval!
Eduardo Sanz García (0188e070) at 17 Mar 15:55
Eduardo Sanz García (d115582d) at 17 Mar 15:54
Merge branch 'eduardosanz/check-param-numbers-translations' into 'm...
... and 1 more commit
Add Gettext/ParameterCount RuboCop cop
Adds a new cop that detects _() and s_() calls with more than 1
parameter, and n_() calls that do not have exactly 3 parameters.
This enforces the correct usage of gettext translation methods,
which accept a fixed number of arguments by convention.
Related to:
N/A
N/A
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Eduardo Sanz García (efcebee2) at 17 Mar 15:50
Eduardo Sanz García (80e6af1d) at 17 Mar 15:49
Merge branch 'eduardosanz/missing-namspace-correction-ruby-1' into ...
... and 1 more commit
Replace s_() for _() when namespace is missing
Automatic correction using the rule that will be introduce in !226732
On a second commit we make manual changes in a few strings related MemberRole namespace.
N/A
N/A
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
@ashmckenzie, I have fixed the undercoverage for the new cop (see last commit). However, I didn't fix the undercoverage for error_not_verified which was touched because of the translation change in app/services/service_desk/custom_email_verifications/base_service.rb. I am going to label pipeline:skip-undercoverage .
Please, could you re-review? Thanks!
Eduardo Sanz García (79a2bc1a) at 17 Mar 15:27
Fix undercoverage for new cop
... and 1039 more commits