Skip to content

Commit

Permalink
Run clippy on workspace in CI (helix-editor#4614)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI authored and Shekhinah Memmel committed Dec 11, 2022
1 parent 1db72c7 commit 7871d2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
args: --workspace --all-targets -- -D warnings

- name: Run cargo doc
uses: actions-rs/cargo@v1
Expand Down
1 change: 1 addition & 0 deletions helix-core/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ pub fn plain(s: &str, selection: Selection) -> String {
}

#[cfg(test)]
#[allow(clippy::module_inception)]
mod test {
use super::*;

Expand Down
4 changes: 2 additions & 2 deletions xtask/src/querycheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub fn query_check() -> Result<(), DynError> {
let language_name = &language.language_id;
let grammar_name = language.grammar.as_ref().unwrap_or(language_name);
for query_file in query_files {
let language = get_language(&grammar_name);
let query_text = read_query(&language_name, query_file);
let language = get_language(grammar_name);
let query_text = read_query(language_name, query_file);
if let Ok(lang) = language {
if !query_text.is_empty() {
if let Err(reason) = Query::new(lang, &query_text) {
Expand Down

0 comments on commit 7871d2e

Please sign in to comment.