@@ -2548,6 +2548,7 @@ def generate_documentation_all_linters():
2548
2548
linters .sort (key = lambda x : x .linter_name )
2549
2549
table_header = [
2550
2550
"Linter" ,
2551
+ "Supported Platforms" ,
2551
2552
"Version" ,
2552
2553
"License" ,
2553
2554
"Popularity" ,
@@ -2715,9 +2716,15 @@ def generate_documentation_all_linters():
2715
2716
f"[]"
2716
2717
f"(https://github.com/{ repo } ){{target=_blank}}"
2717
2718
)
2719
+ supported_platforms = []
2720
+ # supported platforms
2721
+ if (hasattr (linter , "supported_platforms" ) and
2722
+ "platform" in linter .supported_platforms ):
2723
+ supported_platforms += linter .supported_platforms ["platform" ]
2718
2724
# line
2719
2725
table_line = [
2720
2726
linter .linter_name ,
2727
+ ", " .join (supported_platforms ),
2721
2728
linter_version ,
2722
2729
license ,
2723
2730
"N/A" ,
@@ -2734,6 +2741,7 @@ def generate_documentation_all_linters():
2734
2741
linter_doc_links += [link ]
2735
2742
md_table_line = [
2736
2743
md_linter_name ,
2744
+ "<br/> " .join (supported_platforms ),
2737
2745
linter_version ,
2738
2746
md_license ,
2739
2747
md_popularity ,
@@ -2774,10 +2782,10 @@ def generate_documentation_all_linters():
2774
2782
outfile .write ("<!-- markdownlint-disable -->\n \n " )
2775
2783
outfile .write ("# References\n \n " )
2776
2784
outfile .write (
2777
- "| Linter | Version | License | Popularity | Descriptors | Ref | URL |\n "
2785
+ "| Linter | Supported Platforms | Version | License | Popularity | Descriptors | Ref | URL |\n "
2778
2786
)
2779
2787
outfile .write (
2780
- "| :---- | :-----: | :-----: | :-----: | :--------- | :--------------: | :-: |\n "
2788
+ "| :---- | :-----: | :-----: | :-----: | :-----: | :----- ---- | :--------------: | :-: |\n "
2781
2789
)
2782
2790
for md_table_line in md_table_lines :
2783
2791
outfile .write ("| %s |\n " % " | " .join (md_table_line ))
0 commit comments