Skip to content

Commit 3e2f863

Browse files
committed
refactor: pass along rule id
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 79520cc commit 3e2f863

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-expected-html-sections/lib

lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-expected-html-sections/lib/linter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function factory( options ) {
101101
if ( missingRoot.length > 0 ) {
102102
msg = 'Missing required root-level sections: `' + missingRoot.join( '`, `' ) + '`. Required sections are: `' + requiredRootSections.join( '`, `' ) + '`. missing-required-sections';
103103
debug( msg );
104-
file.message( msg, tree );
104+
file.message( msg, tree, 'remark-lint:expected-html-sections' );
105105
}
106106

107107
// If 'c' section exists, check its requirements:
@@ -119,7 +119,7 @@ function factory( options ) {
119119
if ( missingC.length > 0 ) {
120120
msg = 'Missing required sections in "c" section: `' + missingC.join( '`, `' ) + '`. Required C sections are: `' + requiredCSections.join( '`, `' ) + '`. missing-required-c-sections';
121121
debug( msg );
122-
file.message( msg, sectionsFound.root.c.node );
122+
file.message( msg, sectionsFound.root.c.node, 'remark-lint:expected-html-sections' );
123123
}
124124
}
125125

0 commit comments

Comments
 (0)