Skip to content

Commit 0abb7f5

Browse files
committed
Add supported platforms to all_linters.md
1 parent 4675f8d commit 0abb7f5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.automation/build.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,6 +2544,7 @@ def generate_documentation_all_linters():
25442544
linters.sort(key=lambda x: x.linter_name)
25452545
table_header = [
25462546
"Linter",
2547+
"Supported Platforms",
25472548
"Version",
25482549
"License",
25492550
"Popularity",
@@ -2711,9 +2712,15 @@ def generate_documentation_all_linters():
27112712
f"[![GitHub stars](https://img.shields.io/github/stars/{repo}?cacheSeconds=3600)]"
27122713
f"(https://github.com/{repo}){{target=_blank}}"
27132714
)
2715+
supported_platforms = []
2716+
# supported platforms
2717+
if (hasattr(linter, "supported_platforms") and
2718+
"platform" in linter.supported_platforms):
2719+
supported_platforms += linter.supported_platforms["platform"]
27142720
# line
27152721
table_line = [
27162722
linter.linter_name,
2723+
", ".join(supported_platforms),
27172724
linter_version,
27182725
license,
27192726
"N/A",
@@ -2730,6 +2737,7 @@ def generate_documentation_all_linters():
27302737
linter_doc_links += [link]
27312738
md_table_line = [
27322739
md_linter_name,
2740+
"<br/> ".join(supported_platforms),
27332741
linter_version,
27342742
md_license,
27352743
md_popularity,
@@ -2770,10 +2778,10 @@ def generate_documentation_all_linters():
27702778
outfile.write("<!-- markdownlint-disable -->\n\n")
27712779
outfile.write("# References\n\n")
27722780
outfile.write(
2773-
"| Linter | Version | License | Popularity | Descriptors | Ref | URL |\n"
2781+
"| Linter | Supported Platforms | Version | License | Popularity | Descriptors | Ref | URL |\n"
27742782
)
27752783
outfile.write(
2776-
"| :---- | :-----: | :-----: | :-----: | :--------- | :--------------: | :-: |\n"
2784+
"| :---- | :-----: | :-----: | :-----: | :-----: | :--------- | :--------------: | :-: |\n"
27772785
)
27782786
for md_table_line in md_table_lines:
27792787
outfile.write("| %s |\n" % " | ".join(md_table_line))

0 commit comments

Comments
 (0)