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
fd1ed743
Commit
fd1ed743
authored
Mar 15, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence stylelint warnings on CI
parent
ab55c4f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
lefthook.yml
lefthook.yml
+9
-9
package.json
package.json
+2
-1
scripts/static-analysis
scripts/static-analysis
+1
-1
No files found.
lefthook.yml
View file @
fd1ed743
...
...
@@ -6,35 +6,35 @@ pre-push:
eslint
:
tags
:
frontend style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
*.{js,vue}"
glob
:
'
*.{js,vue}'
run
:
yarn run lint:eslint {files}
haml-lint
:
tags
:
view haml style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
*.html.haml"
glob
:
'
*.html.haml'
run
:
bundle exec haml-lint --config .haml-lint.yml {files}
markdownlint
:
tags
:
documentation style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
doc/*.md"
glob
:
'
doc/*.md'
run
:
yarn markdownlint {files}
stylelint
:
tags
:
stylesheet css style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
*.scss{,.css}"
run
:
yarn stylelint
-q
{files}
glob
:
'
*.scss{,.css}'
run
:
yarn stylelint {files}
prettier
:
tags
:
frontend style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
*.{js,vue,graphql}"
glob
:
'
*.{js,vue,graphql}'
run
:
yarn run prettier --check {files}
rubocop
:
tags
:
backend style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
*.rb"
glob
:
'
*.rb'
run
:
bundle exec rubocop --parallel --force-exclusion {files}
vale
:
# Requires Vale: https://docs.gitlab.com/ee/development/documentation/#install-linters
vale
:
# Requires Vale: https://docs.gitlab.com/ee/development/documentation/#install-linters
tags
:
documentation style
files
:
git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob
:
"
doc/*.md"
glob
:
'
doc/*.md'
run
:
if command -v vale 2> /dev/null; then vale --config .vale.ini --minAlertLevel error {files}; else echo "Vale not found. Install Vale"; fi
package.json
View file @
fd1ed743
...
...
@@ -12,6 +12,7 @@
"file-coverage"
:
"scripts/frontend/file_test_coverage.js"
,
"lint-docs"
:
"scripts/lint-doc.sh"
,
"internal:eslint"
:
"eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue"
,
"internal:stylelint"
:
"stylelint -q '{ee/,}app/assets/stylesheets/**/*.{css,scss}'"
,
"prejest"
:
"yarn check-dependencies"
,
"jest"
:
"jest --config jest.config.js"
,
"jest-debug"
:
"node --inspect-brk node_modules/.bin/jest --runInBand"
,
...
...
@@ -32,7 +33,7 @@
"lint:prettier:fix"
:
"yarn run prettier --write '**/*.{graphql,js,vue}'"
,
"lint:prettier:staged"
:
"scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --check"
,
"lint:prettier:staged:fix"
:
"scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --write"
,
"lint:stylelint"
:
"stylelint
-q
'{ee/,}app/assets/stylesheets/**/*.{css,scss}'"
,
"lint:stylelint"
:
"stylelint '{ee/,}app/assets/stylesheets/**/*.{css,scss}'"
,
"lint:stylelint:fix"
:
"yarn run lint:stylelint --fix"
,
"lint:stylelint:staged"
:
"scripts/frontend/execute-on-staged-files.sh stylelint '(css|scss)' -q"
,
"lint:stylelint:staged:fix"
:
"yarn run lint:stylelint:staged --fix"
,
...
...
scripts/static-analysis
View file @
fd1ed743
...
...
@@ -33,7 +33,7 @@ class StaticAnalysis
%w[bin/rake gitlab:sidekiq:all_queues_yml:check]
=>
13
,
(
Gitlab
.
ee?
?
%w[bin/rake gitlab:sidekiq:sidekiq_queues_yml:check]
:
nil
)
=>
13
,
%w[bin/rake config_lint]
=>
11
,
%w[yarn run
lint
:stylelint]
=>
9
,
%w[yarn run
internal
:stylelint]
=>
9
,
%w[scripts/lint-conflicts.sh]
=>
0.59
,
%w[yarn run block-dependencies]
=>
0.35
,
%w[scripts/lint-rugged]
=>
0.23
,
...
...
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