.gitattributes is failing to exclude HTML #6317
-
This is happening in https://github.com/zathras/jrpn . In .gitattributes,
but all of the generated HTML files in docs/ are being counted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
They're not 😁... and you don't even need the override for those files to be ignored as they're ignored by default. I suspect you're determing that these files are counting by clicking the HTML in the sidebar. As you'll note from the URL this is taking you to the search functionality which is independent of Linguist and will always return all files, regardless of your override as if it didn't, you'd never be able to find files excluded by overrides 😄. Analysing your repo locally we can see your HTML comes down to these ➜ github-linguist jrpn --breakdown
69.24% 2150800 HTML
27.70% 860474 Dart
1.50% 46496 C++
1.07% 33112 CMake
0.18% 5611 Ruby
0.13% 3884 Swift
0.09% 2850 C
0.07% 2118 Shell
0.02% 539 Java
0.01% 243 Kotlin
0.00% 76 Objective-C
[... truncated for brevity ...]
HTML:
shared/test/HP-15C_4.4.00_Programs/Conversion/Imperial to Metric.htm
shared/test/HP-15C_4.4.00_Programs/Date and Time/Delta Days.htm
shared/test/HP-15C_4.4.00_Programs/Date and Time/Julian Date from Gregorian Date.htm
shared/test/HP-15C_4.4.00_Programs/Finance/Time_Money.htm
shared/test/HP-15C_4.4.00_Programs/Games/Dice.htm
shared/test/HP-15C_4.4.00_Programs/Games/Display_Control.htm
shared/test/HP-15C_4.4.00_Programs/Games/Hamurabi.htm
shared/test/HP-15C_4.4.00_Programs/Games/Hanoi Towers.htm
shared/test/HP-15C_4.4.00_Programs/Games/Sudoku Solver.htm
shared/test/HP-15C_4.4.00_Programs/Games/Train.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Electrical Engineering/Impedance of a Ladder Network.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Electrical Engineering/Ohm's Law.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Electrical Engineering/Reactance Chart.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Electrical Engineering/Series-Parallel Resistor Adding.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Fun and Games/Biorhythms.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Fun and Games/Moonlanding.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Fun and Games/Nimb.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Geometry/Triangle Solutions.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Mechanical Engineering/Equations of Motion.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Mechanical Engineering/Kinetic Engergy.htm
shared/test/HP-15C_4.4.00_Programs/HP Applications Books/Thermal and Transport Science/Ideal Gas Equation of State.htm
shared/test/HP-15C_4.4.00_Programs/HP Journal/HP Journal - 08.1980 p23 - W.M. Kahan.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 013-016.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 018-021.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 034-038.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 051-055.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 056-058.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 067-069.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Advanced Functions Handbook/HP-15C Advanced Functions Handbook - Pages 069-072.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Advanced Functions Handbook - Page 100.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 138-140 general.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 138-140 random.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 138-140.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 157-159.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 163-168.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 169-171.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Matrix/HP-15C Owner's Handbook - Pages 177-179.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 014-016.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 070-074.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 093-094.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 102-103.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 104-104.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 181-184.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 184-186.htm
shared/test/HP-15C_4.4.00_Programs/HP-15C Owner's Handbook/HP-15C Owner's Handbook - Pages 189-190.htm
shared/test/HP-15C_4.4.00_Programs/Math/Bairstow's Method.htm
shared/test/HP-15C_4.4.00_Programs/Math/Big_Factorial.htm
shared/test/HP-15C_4.4.00_Programs/Math/BinaryToDecimal.htm
shared/test/HP-15C_4.4.00_Programs/Math/Calculating 208 digits of e.htm
shared/test/HP-15C_4.4.00_Programs/Math/Complex Number Utilities.htm
shared/test/HP-15C_4.4.00_Programs/Math/Convert to Fraction.htm
shared/test/HP-15C_4.4.00_Programs/Math/DecimalToBinary.htm
shared/test/HP-15C_4.4.00_Programs/Math/GCD_LCM.htm
shared/test/HP-15C_4.4.00_Programs/Math/Gamma function for complex numbers.htm
shared/test/HP-15C_4.4.00_Programs/Math/Gaussian Integration.htm
shared/test/HP-15C_4.4.00_Programs/Math/Halley's Method.htm
shared/test/HP-15C_4.4.00_Programs/Math/Little_Gauss.htm
shared/test/HP-15C_4.4.00_Programs/Math/LnGammaComplex.htm
shared/test/HP-15C_4.4.00_Programs/Math/Quadratic_Equation.htm
shared/test/HP-15C_4.4.00_Programs/Math/Sums of five lists.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/1D Perfectly Elastic Collisions.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Barker’s Equation.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Helmert’s Equation.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Hyperbolic Kepler’s Equation.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Kepler’s Equation.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Pendulum Period.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Projectile Problem.htm
shared/test/HP-15C_4.4.00_Programs/Users/D.G. Simpson/Reduction of an Angle.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Coordinates on an Ellipse.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Countdown.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Digital Root.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Extended Statistics Program.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Modulus Function.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Numerical Derivative.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Pascal's Triangle.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Prime Factor.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Prime Factorization.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Quadratic Equation with Complex Coefficients.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Quadratic formula.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Reactance chart solver.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Sign Function.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Summation.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/The Game of Bust.htm
shared/test/HP-15C_4.4.00_Programs/Users/Eddie Shore/Volume of a Cylinder.htm
shared/test/HP-15C_4.4.00_Programs/Users/Peter Sels/HigherLower_v1987.htm
shared/test/HP-15C_4.4.00_Programs/Users/Peter Sels/MasterMind2020.htm
shared/test/HP-15C_4.4.00_Programs/Users/Peter Sels/MasterMindGuessScoring.htm
$ As these don't appear to be your files, you probably want to mark that directory as vendored so they're not considered for the stats. |
Beta Was this translation helpful? Give feedback.
They're not 😁... and you don't even need the override for those files to be ignored as they're ignored by default.
I suspect you're determing that these files are counting by clicking the HTML in the sidebar. As you'll note from the URL this is taking you to the search functionality which is independent of Linguist and will always return all files, regardless of your override as if it didn't, you'd never be able to find files excluded by overrides 😄.
Analysing your repo locally we can see your HTML comes down to these
.htm
(note, nol
) files which your overrides are not accounting for: