Skip to content

Commit 64236af

Browse files
chore: cleanup dockerfile & don't run on header files
1 parent 150f4ce commit 64236af

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @raghav-deepsource @srijan-deepsource @swarnim-deepsource @prajwal-deepsource

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG LLVM_VER=15
1414
RUN wget --no-verbose https://apt.llvm.org/llvm.sh
1515
RUN chmod +x ./llvm.sh \
1616
&& ./llvm.sh ${LLVM_VER} \
17-
&& apt-get -y install libclang-15-dev libclang-cpp15-dev --no-install-recommends \
17+
&& apt-get -y install libclang-${LLVM_VER}-dev libclang-cpp${LLVM_VER}-dev --no-install-recommends \
1818
&& apt-get clean \
1919
&& rm -rf /var/lib/apt/lists/*
2020

OWNERS

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ impl AnalyzerConfig {
1313
pub fn cxx_files(self) -> Vec<PathBuf> {
1414
self.files
1515
.into_iter()
16+
.filter(|f| !f.is_symlink())
1617
.filter(|f| f.is_file())
1718
.filter(|f| {
1819
f.extension()
19-
.map(|x| x.eq("cpp") | x.eq("c") | x.eq("h") | x.eq("hpp"))
20+
.map(|x| x.eq("cpp") | x.eq("c"))
2021
.unwrap_or_default()
2122
})
22-
.filter(|f| !f.is_symlink())
2323
// ignore files > ~25MB in size
2424
.filter(|f| {
2525
!f.metadata()
@@ -34,4 +34,5 @@ impl AnalyzerConfig {
3434
pub struct AnalyzerMeta {
3535
pub name: String,
3636
pub enabled: bool,
37+
// todo(swarnim): add misra_compliance: bool
3738
}

0 commit comments

Comments
 (0)