• Greg Spencer's avatar
    Check sample links for malformed links (#137807) · f5a98353
    Greg Spencer authored
    ## Description
    
    This checks API doc strings for malformed links to examples. It prevents errors in capitalization, spacing, number of asterisks, etc.  It won't catch all errors, because it needs to have a minimally indicative string to know that it even is trying to be a link to an example.  At a minimum, the line needs to look like (literally, not as a regexp) `///*seecode.*` in order to be seen as a link to an example.
    
    Separately, I'm going to add a check to the snippets tool that checks to make sure that an `{@tool}` block includes either a link to a sample file or a dart code block.
    
    ## Tests
     - Added a test to make sure it catches some malformed links.
    f5a98353
Name
Last commit
Last update
..
test Loading commit data...
README.md Loading commit data...
accept_android_sdk_licenses.sh Loading commit data...
allowlist.dart Loading commit data...
analysis_options.yaml Loading commit data...
analyze.dart Loading commit data...
analyze_snippet_code.dart Loading commit data...
browser.dart Loading commit data...
check_code_samples.dart Loading commit data...
codelabs_build_test.sh Loading commit data...
docs.sh Loading commit data...
post_process_docs.dart Loading commit data...
prepare_package.dart Loading commit data...
pubspec.yaml Loading commit data...
run_command.dart Loading commit data...
service_worker_test.dart Loading commit data...
serviceaccount.enc Loading commit data...
test.dart Loading commit data...
tool_subsharding.dart Loading commit data...
unpublish_package.dart Loading commit data...
utils.dart Loading commit data...