@@ -2548,6 +2548,7 @@ def generate_documentation_all_linters():
25482548 linters .sort (key = lambda x : x .linter_name )
25492549 table_header = [
25502550 "Linter" ,
2551+ "Supported Platforms" ,
25512552 "Version" ,
25522553 "License" ,
25532554 "Popularity" ,
@@ -2715,9 +2716,15 @@ def generate_documentation_all_linters():
27152716 f"[]"
27162717 f"(https://github.com/{ repo } ){{target=_blank}}"
27172718 )
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" ]
27182724 # line
27192725 table_line = [
27202726 linter .linter_name ,
2727+ ", " .join (supported_platforms ),
27212728 linter_version ,
27222729 license ,
27232730 "N/A" ,
@@ -2734,6 +2741,7 @@ def generate_documentation_all_linters():
27342741 linter_doc_links += [link ]
27352742 md_table_line = [
27362743 md_linter_name ,
2744+ "<br/> " .join (supported_platforms ),
27372745 linter_version ,
27382746 md_license ,
27392747 md_popularity ,
@@ -2774,10 +2782,10 @@ def generate_documentation_all_linters():
27742782 outfile .write ("<!-- markdownlint-disable -->\n \n " )
27752783 outfile .write ("# References\n \n " )
27762784 outfile .write (
2777- "| Linter | Version | License | Popularity | Descriptors | Ref | URL |\n "
2785+ "| Linter | Supported Platforms | Version | License | Popularity | Descriptors | Ref | URL |\n "
27782786 )
27792787 outfile .write (
2780- "| :---- | :-----: | :-----: | :-----: | :--------- | :--------------: | :-: |\n "
2788+ "| :---- | :-----: | :-----: | :-----: | :-----: | :----- ---- | :--------------: | :-: |\n "
27812789 )
27822790 for md_table_line in md_table_lines :
27832791 outfile .write ("| %s |\n " % " | " .join (md_table_line ))
0 commit comments