Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add checker to ensure that env variable doc is up to date #5091

Merged
merged 12 commits into from
Feb 13, 2021

Conversation

simster7
Copy link
Member

Checklist:

echo "Documented variable $x is not used anywhere";
exit 1;
fi;
done
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add reverse case: "Variable in use is not documented"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great to have! Thanks. Would you like to get #5080 merged so that we can test out the script in this PR?

@simster7 simster7 marked this pull request as ready for review February 12, 2021 15:44
@simster7 simster7 marked this pull request as draft February 12, 2021 15:51
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
Signed-off-by: Simon Behar <[email protected]>
@simster7 simster7 marked this pull request as ready for review February 12, 2021 16:42
@simster7 simster7 changed the title feat: Ensure that env variable doc is up to date feat: Add checker to ensure that env variable doc is up to date Feb 12, 2021
Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just some small nitpicks.

hack/check-env-doc.sh Outdated Show resolved Hide resolved
hack/check-env-doc.sh Outdated Show resolved Hide resolved
@@ -0,0 +1,33 @@
#!/bin/bash

echo "Checking env variables doc for completness..."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps be explicit about where the file is

hack/check-env-doc.sh Outdated Show resolved Hide resolved

echo "Checking docs/environment-variables.md for completeness..."

function check-used {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add -o

@simster7 simster7 merged commit 19b22f2 into argoproj:master Feb 13, 2021
alexec pushed a commit that referenced this pull request Feb 15, 2021
@simster7 simster7 mentioned this pull request Feb 16, 2021
33 tasks
@simster7 simster7 mentioned this pull request Feb 23, 2021
34 tasks
@simster7 simster7 mentioned this pull request Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants