Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-15Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2023-01-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2022-10-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-10-26Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2021-01-06Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-15Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-02-04Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-01-29Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-01-15Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-19Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-05Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-01Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-28Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-07Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-10Add Scalability/FileUploads copAlessio Caiazza
This cop prevents you from using file in API, it points you to the development documentation about workhorse file acceleration.
2019-08-28Add Rubocop check to avoid using `be_success`Vitali Tatarintev
Prevent using `be_success` call in controller specs to avoid getting following deprecation warning: ``` DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful? as provided by Rack::Response::Helpers. ```
2019-08-24Adds cop to enforce string limits on migrationsMayra Cabrera
This cop will analyze migrations that add columns with string, and report an offense if the string has no limit enforced Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
2019-08-01Add RSpec/TopLevelDescribePath copSean McGivern
The RSpec/FilePath cop checks that a spec file's path is correct, but only if the file describes a constant. We want to check, for any file with a top-level `describe`, whether the file path ends in `_spec.rb`. We don't care what comes before that; just that it will be executed by RSpec at all.
2019-07-10Add a rubocop for Rails.loggerMayra Cabrera
Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-06-21Add a cop to ensure we authorize GraphQL typesBob Van Landuyt
2019-05-05Run rubocop -a on CE filesStan Hu
2019-04-29Add Rubocop rule to ban include ActionView::ContextStan Hu
2019-04-15Forbid the use of `#reload` and prefer `#reset`Kamil Trzciński
The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
2018-12-13Added Cop for injecting EE modulesYorick Peterse
This Cop enforces the rule that injecting EE modules (using prepend, include, or extend) is done by placing the injection on the last line of a file, instead of somewhere in the middle. By placing these lines at the very end, merge conflicts will not happen.
2018-11-22Add cop prohibiting params argument in url_forJarka Košanová
2018-10-15Add a new QA::ElementWithPattern copRémy Coutable
This cop forbids the use of `element :foo, 'pattern'` and `element :bar, /pattern/` in QA files. Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-24Applies the CE backport of EE#657Tiago Botelho
2018-09-21Fix leading slash in redirects and add copSanad Liaquat
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-09-11Added RuboCop cops to enforce code reuse rulesYorick Peterse
These Cops enforces the code reuse rules as defined in merge request https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21254.
2018-08-29Adds Rubocop rule to enforce class_methods over module ClassMethodsJacopo
2018-08-25Reject ruby interpolation in externalized stringsBob Van Landuyt
When using ruby interpolation in externalized strings, they can't be detected. Which means they will never be presented to be translated. To mix variables into translations we need to use `sprintf` instead. Instead of: _("Hello #{subject}") Use: _("Hello %{subject}) % { subject: 'world' }
2018-08-16Blacklist the use of "destroy_all"Yorick Peterse
This method usually has really bad performance implications, as it loads rows into memory and deletes them one by one.
2018-08-09Add rubocop check for add_reference to require index.Andreas Brandl
2018-06-20Add a cop for `FinderMethods`Bob Van Landuyt
This notifies developers when calling `find(_by!)` chained on `execute`. And suggests using the methods from `FinderMethods`. These will perform the correct authorization checks on the resource when it is found.
2018-04-18Revert the addition of goldiloaderYorick Peterse
This reverts the addition of the "goldiloader" Gem and all use of it. While this Gem is very promising it's causing a variety of problems on GitLab.com due to it eager-loading too much data in places where we don't expect/can handle this. At least for the time being this means we have to go back to manually fixing N+1 query problems, but at least those should not cause a negative impact on availability.
2018-04-18Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉
2018-04-09Add cop for has_many :through without disabled autoloadingSean McGivern
Goldiloader is great, but has several issues with has_many :through relations: * https://github.com/salsify/goldiloader/issues/12 * https://github.com/salsify/goldiloader/issues/14 * https://github.com/salsify/goldiloader/issues/18 Rather than try to figure out which applies in each case, we should just do the drudge work of manually disabling autoloading for all relations of this type. We can always use regular preloading for specific cases, but this way we avoid generating invalid queries through Goldiloader's magic.
2018-04-06Introduce a new FactoriesInMigrationSpecs copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-03-21Merge branch 'fj-15329-services-callbacks-ssrf' into 'security-10-6'Douwe Maan
Server Side Request Forgery in Services and Web Hooks See merge request gitlab/gitlabhq!2337
2018-03-08[CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto
2018-01-12Introduce PredicateMemoization cop and fix offensesLin Jen-Shin
with StrongMemoize
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉
2017-12-26Require our own custom cops; Remove missing copsLin Jen-Shin
Also try to use the same config from EE
2017-12-22Use gitlab-stylesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>