Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f0aa86d7
Commit
f0aa86d7
authored
May 21, 2021
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove static analysis linting files
parent
a7bc64f4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
19 deletions
+1
-19
.gitlab/ci/yaml.gitlab-ci.yml
.gitlab/ci/yaml.gitlab-ci.yml
+0
-1
scripts/lint-changelog-filenames
scripts/lint-changelog-filenames
+0
-12
scripts/static-analysis
scripts/static-analysis
+1
-2
spec/tooling/danger/project_helper_spec.rb
spec/tooling/danger/project_helper_spec.rb
+0
-2
tooling/danger/project_helper.rb
tooling/danger/project_helper.rb
+0
-2
No files found.
.gitlab/ci/yaml.gitlab-ci.yml
View file @
f0aa86d7
...
@@ -10,5 +10,4 @@ lint-yaml:
...
@@ -10,5 +10,4 @@ lint-yaml:
variables
:
variables
:
LINT_PATHS
:
.gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
LINT_PATHS
:
.gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
script
:
script
:
-
'
[[
!
-d
"ee/"
]]
||
export
LINT_PATHS="$LINT_PATHS
ee/changelogs"'
-
yamllint -f colored $LINT_PATHS
-
yamllint -f colored $LINT_PATHS
scripts/lint-changelog-filenames
deleted
100755 → 0
View file @
a7bc64f4
#!/bin/sh
lint_paths
=
"changelogs/unreleased"
[
-d
"ee/"
]
&&
lint_paths
=
"
$lint_paths
ee/changelogs/unreleased"
invalid_files
=
$(
find
$lint_paths
-type
f
-not
-name
"*.yml"
-not
-name
".gitkeep"
)
if
[
-n
"
$invalid_files
"
]
;
then
echo
"Changelog files must end in .yml, but these did not:"
echo
"
$invalid_files
"
|
sed
-e
"s/^/* /"
exit
1
fi
scripts/static-analysis
View file @
f0aa86d7
...
@@ -38,8 +38,7 @@ class StaticAnalysis
...
@@ -38,8 +38,7 @@ class StaticAnalysis
%w[yarn run block-dependencies]
=>
0.35
,
%w[yarn run block-dependencies]
=>
0.35
,
%w[scripts/lint-rugged]
=>
0.23
,
%w[scripts/lint-rugged]
=>
0.23
,
%w[scripts/gemfile_lock_changed.sh]
=>
0.02
,
%w[scripts/gemfile_lock_changed.sh]
=>
0.02
,
%w[scripts/frontend/check_no_partial_karma_jest.sh]
=>
0.01
,
%w[scripts/frontend/check_no_partial_karma_jest.sh]
=>
0.01
%w[scripts/lint-changelog-filenames]
=>
0.01
}.
reject
{
|
k
|
k
.
nil?
}.
sort_by
{
|
a
|
-
a
[
1
]
}.
to_h
.
keys
.
freeze
}.
reject
{
|
k
|
k
.
nil?
}.
sort_by
{
|
a
|
-
a
[
1
]
}.
to_h
.
keys
.
freeze
def
run_tasks!
def
run_tasks!
...
...
spec/tooling/danger/project_helper_spec.rb
View file @
f0aa86d7
...
@@ -162,8 +162,6 @@ RSpec.describe Tooling::Danger::ProjectHelper do
...
@@ -162,8 +162,6 @@ RSpec.describe Tooling::Danger::ProjectHelper do
'workhorse/main.go'
|
[
:workhorse
]
'workhorse/main.go'
|
[
:workhorse
]
'workhorse/internal/upload/upload.go'
|
[
:workhorse
]
'workhorse/internal/upload/upload.go'
|
[
:workhorse
]
'changelogs/foo'
|
[
:none
]
'ee/changelogs/foo'
|
[
:none
]
'locale/gitlab.pot'
|
[
:none
]
'locale/gitlab.pot'
|
[
:none
]
'FOO'
|
[
:unknown
]
'FOO'
|
[
:unknown
]
...
...
tooling/danger/project_helper.rb
View file @
f0aa86d7
...
@@ -38,8 +38,6 @@ module Tooling
...
@@ -38,8 +38,6 @@ module Tooling
%r{
\A
(ee/)?config/feature_flags/}
=>
:feature_flag
,
%r{
\A
(ee/)?config/feature_flags/}
=>
:feature_flag
,
%r{
\A
(ee/)?(changelogs/unreleased)(-ee)?/}
=>
:changelog
,
%r{
\A
doc/development/usage_ping/dictionary
\.
md
\z
}
=>
[
:docs
,
:product_intelligence
],
%r{
\A
doc/development/usage_ping/dictionary
\.
md
\z
}
=>
[
:docs
,
:product_intelligence
],
%r{
\A
doc/.*(
\.
(md|png|gif|jpg))
\z
}
=>
:docs
,
%r{
\A
doc/.*(
\.
(md|png|gif|jpg))
\z
}
=>
:docs
,
%r{
\A
(CONTRIBUTING|LICENSE|MAINTENANCE|PHILOSOPHY|PROCESS|README)(
\.
md)?
\z
}
=>
:docs
,
%r{
\A
(CONTRIBUTING|LICENSE|MAINTENANCE|PHILOSOPHY|PROCESS|README)(
\.
md)?
\z
}
=>
:docs
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment