@@ -2544,6 +2544,7 @@ def generate_documentation_all_linters():
2544
2544
linters .sort (key = lambda x : x .linter_name )
2545
2545
table_header = [
2546
2546
"Linter" ,
2547
+ "Supported Platforms" ,
2547
2548
"Version" ,
2548
2549
"License" ,
2549
2550
"Popularity" ,
@@ -2711,9 +2712,15 @@ def generate_documentation_all_linters():
2711
2712
f"[]"
2712
2713
f"(https://github.com/{ repo } ){{target=_blank}}"
2713
2714
)
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" ]
2714
2720
# line
2715
2721
table_line = [
2716
2722
linter .linter_name ,
2723
+ ", " .join (supported_platforms ),
2717
2724
linter_version ,
2718
2725
license ,
2719
2726
"N/A" ,
@@ -2730,6 +2737,7 @@ def generate_documentation_all_linters():
2730
2737
linter_doc_links += [link ]
2731
2738
md_table_line = [
2732
2739
md_linter_name ,
2740
+ "<br/> " .join (supported_platforms ),
2733
2741
linter_version ,
2734
2742
md_license ,
2735
2743
md_popularity ,
@@ -2770,10 +2778,10 @@ def generate_documentation_all_linters():
2770
2778
outfile .write ("<!-- markdownlint-disable -->\n \n " )
2771
2779
outfile .write ("# References\n \n " )
2772
2780
outfile .write (
2773
- "| Linter | Version | License | Popularity | Descriptors | Ref | URL |\n "
2781
+ "| Linter | Supported Platforms | Version | License | Popularity | Descriptors | Ref | URL |\n "
2774
2782
)
2775
2783
outfile .write (
2776
- "| :---- | :-----: | :-----: | :-----: | :--------- | :--------------: | :-: |\n "
2784
+ "| :---- | :-----: | :-----: | :-----: | :-----: | :----- ---- | :--------------: | :-: |\n "
2777
2785
)
2778
2786
for md_table_line in md_table_lines :
2779
2787
outfile .write ("| %s |\n " % " | " .join (md_table_line ))
0 commit comments