Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/workflows/gui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ jobs:
run: npm install --save-dev --save-exact prettier
- name: Install Clippy
run: rustup component add clippy
- name: Install Clippy
run: rustup component add rustfmt
- name: Lint Markdown sources
run: npx prettier --check '*.md'
- name: Lint JavaScript sources
Expand Down
2 changes: 1 addition & 1 deletion build/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ commands.test.rust = async function(argv) {

commands.lint = command(`Lint the codebase`)
commands.lint.rust = async function() {
// We run clippy-preview due to https://github.com/rust-lang/rust-clippy/issues/4612
await run_cargo('cargo',['clippy','--','-D','warnings'])
await run_cargo('cargo',['fmt','--','--check'])
}


Expand Down
6 changes: 6 additions & 0 deletions build/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ let installClippy = {
run: "rustup component add clippy"
}

let installFmt = {
name: "Install Clippy",
run: "rustup component add rustfmt"
}

// Install fixed version to avoid upgrading to a breaking version.
// Should be removed once this has a better solution as described here:
// https://github.com/enso-org/ide/issues/1772
Expand Down Expand Up @@ -482,6 +487,7 @@ let workflow = {
installRust,
installPrettier,
installClippy,
installFmt,
lintMarkdown,
lintJavaScript,
lintRust
Expand Down
Loading