Skip to content

Commit

Permalink
chore: add comment to codegenerated files
Browse files Browse the repository at this point in the history
Co-authored-by: ccoVeille <[email protected]>
  • Loading branch information
hougesen and ccoVeille committed Jan 20, 2025
1 parent a8483de commit 4a8d714
Show file tree
Hide file tree
Showing 254 changed files with 766 additions and 2 deletions.
9 changes: 7 additions & 2 deletions codegen/src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use convert_case::{Case, Casing};

const INDENT: &str = " ";

const GENERATED_FILE_COMMENT: &str =
"///\n/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY\n///";

#[derive(Debug, serde::Deserialize, schemars::JsonSchema, Hash, Clone)]
#[schemars(deny_unknown_fields)]
pub struct ToolCommandTest {
Expand Down Expand Up @@ -225,7 +228,8 @@ impl Tool {
};

let code = format!(
"use std::process::Command;
"{GENERATED_FILE_COMMENT}
use std::process::Command;

Check warning on line 232 in codegen/src/tools.rs

View check run for this annotation

Codecov / codecov/patch

codegen/src/tools.rs#L231-L232

Added lines #L231 - L232 were not covered by tests
use crate::{{error::MdsfError, execution::execute_command, runners::CommandType}};
Expand Down Expand Up @@ -374,7 +378,8 @@ impl AsRef<str> for Tooling {
as_ref_content.sort_unstable();

let mod_file_contents = format!(
"{}
"{GENERATED_FILE_COMMENT}
{}

Check warning on line 382 in codegen/src/tools.rs

View check run for this annotation

Codecov / codecov/patch

codegen/src/tools.rs#L381-L382

Added lines #L381 - L382 were not covered by tests
#[derive(serde::Serialize, serde::Deserialize, Hash)]
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/actionlint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/alejandra.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/ameba.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/ansible_lint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/asmfmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/astyle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/auto_optional.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/autocorrect.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/autoflake.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/autopep_8.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/beancount_black.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/beautysh.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/bibtex_tidy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/bicep_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/biome_check.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/biome_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/biome_lint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/black.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/blade_formatter.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/blue.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/bpfmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/brittany.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/brunette.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/bsfmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/bslint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/buf_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/buildifier.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cabal_fmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cabal_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cabal_prettify.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/caddy_fmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/caramel_fmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/clang_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/clang_tidy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cljfmt_fix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cljstyle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/cmake_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/codespell.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/crlfmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/crystal_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/csharpier.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/css_beautify.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/csscomb.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/csslint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/curlylint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/d_2_fmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/dart_fix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/dart_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/dcm_fix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/dcm_format.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/deadnix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
3 changes: 3 additions & 0 deletions mdsf/src/tools/deno_fmt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
///
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY
///
use std::process::Command;

use crate::{error::MdsfError, execution::execute_command, runners::CommandType};
Expand Down
Loading

0 comments on commit 4a8d714

Please sign in to comment.